silverlight

CIL: “Operation could destabilize the runtime” exception

蹲街弑〆低调 提交于 2019-12-24 07:28:07
问题 I've been playing with PostSharp a bit and I ran into a nasty problem. Following IL in Silverlight assembly: .method public hidebysig specialname newslot virtual final instance void set_AccountProfileModifiedAt(valuetype [mscorlib]System.DateTime 'value') cil managed { .maxstack 2 .locals ( [0] bool ~propertyHasChanged, [1] bool CS$4$0000) L_0000: nop L_0001: nop L_0002: ldarg.0 L_0003: call instance valuetype [mscorlib]System.DateTime Accounts.AccountOwner::get_AccountProfileModifiedAt() L

Share WCF RIA Services Library between Silverlight Applications

女生的网名这么多〃 提交于 2019-12-24 07:24:21
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

Share WCF RIA Services Library between Silverlight Applications

让人想犯罪 __ 提交于 2019-12-24 07:22:09
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

Share WCF RIA Services Library between Silverlight Applications

半腔热情 提交于 2019-12-24 07:22:04
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

silverlight save textbox to xml

感情迁移 提交于 2019-12-24 07:18:20
问题 my project looks like this, http://s23.postimg.org/mrhuocn4b/asd.png and I already can save a textbox to xml file, using this code: private void SaveFile(object sender, RoutedEventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.DefaultExt = "xml"; saveFileDialog.Filter = "XML Files (*.xml)|*.xml|All files (*.*)|*.*"; saveFileDialog.FilterIndex = 1; if (saveFileDialog.ShowDialog() == true) { using (Stream stream = saveFileDialog.OpenFile()) { StreamWriter sw =

embedding silverlight, anything like flash?

房东的猫 提交于 2019-12-24 07:16:33
问题 So if I have a flash object, like a youtube video, I can embed that on a website pretty easily (I think because that's flash, not necassarily youtube, maybe I'm wrong?). I'd like to be be able to drop a silverlight object/embed tag (no javascript) on a static html page (like my blog, which is not the site with the xap file), and be done with it. Basically it seems like there is zero way to do this unless you can add custom javascript to your site. I've found this link: http://msdn.microsoft

Caliburn.Micro Conductor: Trigger/Action firing more than exptected

拥有回忆 提交于 2019-12-24 06:58:08
问题 I'm trying to put together a very simple example app, but it is not working as intented. Here is the scenario: Caliburn.Micro, MVVM, Silverlight 5.0 - simple Conductor example from https://caliburnmicro.codeplex.com/wikipage?title=Screens%2c%20Conductors%20and%20Composition&referringTitle=Documentation (Simple Navigation) I just put together a live example: https://db.tt/kTIjKvRx -> hit enter in textbox (messagebox displays 1x) -> go to master and go back to login -> hit enter in textbox

Removing markers from silverlight line or area series

岁酱吖の 提交于 2019-12-24 06:47:06
问题 Is it possible to easily remove the data point markers from a line series or area series chart. I am using the Silverlight Toolkit charts. 回答1: Found it: <chartingToolkit:AreaSeries ItemsSource="{Binding Path=ChartData}" DependentValuePath="used" IndependentValuePath="date" IsSelectionEnabled="True"> <chartingToolkit:AreaSeries.DataPointStyle> <Style TargetType="Control"> <Setter Property="Visibility" Value="Collapsed" /> </Style> </chartingToolkit:AreaSeries.DataPointStyle> 来源: https:/

Draggable AND clickable pushpin in silverlight bing map

情到浓时终转凉″ 提交于 2019-12-24 06:43:09
问题 I'm trying to create a pushpin in a Silverlight Bing Map that is both draggable as well as clickable. I found some code here http://pietschsoft.com/post/2010/05/30/Draggable-Pushpins-using-Bing-Maps-Silverlight-Control.aspx to achieve the draggable part. I've mapped mouseclick on the map to drop a pin. However, the problem (and this exists with the default pushpin as well) is that clicking on the pushpin seems to be handled by the map control first so I end up dropping another pin, instead of

Cannot add any control on the workspace [Catastrophic failure]

天涯浪子 提交于 2019-12-24 06:36:14
问题 There is a problem with my developer machine when I created a project on Silverlight. At the moment I add a control on the grid it shows an exception and the layout is destroyed. Here are the steps to replicate the problem. Create New Silverlight Application Uncheck Host the Silverlight application in a new Web site Choose Silverlight Version: Silverlight 5 and it successfully creates blank project file When I tried to add this code inside Grid <Button Content="Button" HorizontalAlignment=