silverlight-2.0

how to get datetime in silverlight?

故事扮演 提交于 2019-12-11 14:13:10
问题 from title it appears a stupid question :) i know but i have a silverlight application that needs to send datetime to a 3rdparty web method and based on datetime populate some client side controls... now i know how to get datetime from client but problem is that client time could be wrong........ one method is to use a webservice to get datetime any other idea? 回答1: If you need the reliability of the server's time, then yeah -- a web service would suffice. I ran into a limitation with

Silverlight 2 Does not render content on IE7 IE8 Firefox 3

≡放荡痞女 提交于 2019-12-11 05:32:55
问题 I have a very simple silverlight xaml page displays textbox and a button. When i run my application on IE6 it works fine. But for IE7 IE8 and FF3 - it does not display any content. The page is rendering blank. <div style="height: 100%; width:100%;"> <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/test.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" HtmlAccess="Enabled" /> </div> Does anyone has any idea what silverlight content is not rendering ? 回答1: I found an

silverlight: How to set attached properties Programmatically

倾然丶 夕夏残阳落幕 提交于 2019-12-09 04:42:37
问题 Suppose I have a grid with some row definitions, and a child control in that grid. How would I go about setting the Grid.Row property of the child control programatically? 回答1: To set the value: textBlock.SetValue(Grid.RowProperty, 3); To reset the value: textBlock.SetValue(Grid.RowProperty, null); 回答2: Actually to clear a value you should use this: textBlock.ClearValue(Grid.RowProperty); 回答3: I'm not 100% sure this is in SilverLight, but in WPF you call a static method (called SetX, where X

calling https wcf service from silverlight

半城伤御伤魂 提交于 2019-12-08 03:17:11
问题 i am trying to access a https wcf service from silverlight. the clientaccesspolicy is placed on service root and i have validated through silverlightspy its showing it as valid and calls allowed. i am able to call that webservice successfully from desktop client but when tries to call from silverlight it throws an error that call to .... service failed may be cross domain poliecy etc is not valid.... any ideas???? here is the service cross domain policy too: <?xml version="1.0" encoding="utf

Silverlight WCF Authentication (Help going from WPF to Silverlight)

£可爱£侵袭症+ 提交于 2019-12-08 00:57:35
问题 I have an existing working WPF Application in which I have implemented my own custom authentication to a backend WCF service. When I access this service from WPF, setup the ServiceProxy as follows: proxy.ClientCredentials.UserName.UserName = "test"; proxy.ClientCredentials.UserName.Password = "pass"; and because I'm using HTTPS the uid/pwd is secure. In Silverlight 2 there is no .ClientCredentials object on the proxy. The only option I've found is to add two string parameters to EVERY WCF

.net Runtime - Silverlight Runtime =?

纵饮孤独 提交于 2019-12-07 17:00:37
问题 I've googled around a bit, and I haven't been able to find a good listing of what classes from the .net CLR are not included in the 'CoreCLR' aka Silverlight. What is Silverlight missing from the Windows .net Framework? Also, is there anything that the Silverlight runtime has that the .net Framework doesn't? 回答1: Silverlight Runtime (Silverlight CLR) is essentially a mini-mini CLR :). Microsoft did the work of removing many dependencies to .NET Framework assemblies not part of the Silverlight

Change background color of Datagrid Header in Silverlight

断了今生、忘了曾经 提交于 2019-12-07 00:55:41
问题 I want to change background color of Datagrid header in Silverlight. 回答1: Although the DataGrid does not expose a Header Background property, it does have a property for the ColumnHeaderStyle. Using the technique that DaniCE has previously suggested for a single column we can replace the header template for all header columns including the empty space on the right hand side. The down side with replacing the entire template for a header is that we lose the sorting arrows and separators which

calling https wcf service from silverlight

孤街浪徒 提交于 2019-12-06 20:38:49
i am trying to access a https wcf service from silverlight. the clientaccesspolicy is placed on service root and i have validated through silverlightspy its showing it as valid and calls allowed. i am able to call that webservice successfully from desktop client but when tries to call from silverlight it throws an error that call to .... service failed may be cross domain poliecy etc is not valid.... any ideas???? here is the service cross domain policy too: <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="SOAPAction">

Silverlight WCF Authentication (Help going from WPF to Silverlight)

笑着哭i 提交于 2019-12-06 13:39:36
I have an existing working WPF Application in which I have implemented my own custom authentication to a backend WCF service. When I access this service from WPF, setup the ServiceProxy as follows: proxy.ClientCredentials.UserName.UserName = "test"; proxy.ClientCredentials.UserName.Password = "pass"; and because I'm using HTTPS the uid/pwd is secure. In Silverlight 2 there is no .ClientCredentials object on the proxy. The only option I've found is to add two string parameters to EVERY WCF Exposed method for Uid/Pwd. That sounds like insanity to me, there MUST be a better way, no? Unfortunately

.net Runtime - Silverlight Runtime =?

大兔子大兔子 提交于 2019-12-06 01:32:54
I've googled around a bit, and I haven't been able to find a good listing of what classes from the .net CLR are not included in the 'CoreCLR' aka Silverlight. What is Silverlight missing from the Windows .net Framework? Also, is there anything that the Silverlight runtime has that the .net Framework doesn't? Silverlight Runtime (Silverlight CLR) is essentially a mini-mini CLR :). Microsoft did the work of removing many dependencies to .NET Framework assemblies not part of the Silverlight release Silverlight CLR is a subset of the .NET Framework that contains components and libraries, including