silverlight-4.0

How to display HTML in Silverlight application?

前提是你 提交于 2019-12-05 06:29:25
I would need to display some basic HTML (just some paragraphs, unordered lists and hyperlinks) in my Silverlight application. How would I go about that? Which control to use? Gone Coding Try this link for starters: http://www.wintellect.com/CS/blogs/jprosise/archive/2009/12/22/silverlight-4-s-new-html-hosting-support.aspx Here is the relevant part: Another of the new capabilities that Silverlight 4 brings to the platform is the ability to host HTML content inside a Silverlight control. This support isn't limited to static HTML content; the content can be interactive and can include script. It

Silverlight: how to handle standard assemblies (part 2)

巧了我就是萌 提交于 2019-12-05 04:50:28
问题 It is necessary to move 'standard' assemblies out of the xap-file (Silverlight 4 application). I had a similar problem (Silverlight: how to handle standard assemblies) and got a good link with deep explanations. But not all is clear there. After I've switched on the 'Reduce XAP size by using application library caching" the size of my xap-file was decreased in twice, the following assemblies were moved out into separate zip-files: System.ComponentModel.DataAnnotations; System.Windows.Controls

How to Deserialize from web service JSON array or object?

爷,独闯天下 提交于 2019-12-05 02:25:49
问题 I created one web service application in windows phone 7. this is JSON array get from belowed uri. ...[{"id":4,"name":"Bangalore"},{"id":1,"name":"Chennai"},{"id":3,"name":"Hyderabad"},{"id":2,"name":"Mumbai"}]... List item = (List)ds.ReadObject(msnew); In this line one bug(it says while run). There was an error deserializing the object of type.Data at the root level is invalid. Line 1, position 1. coding: public MainPage() { InitializeComponent(); } [DataContract] public class Item {

Why is WPF loosing terrain with Silverlight 4 coming? [duplicate]

被刻印的时光 ゝ 提交于 2019-12-05 02:06:43
问题 This question already has answers here : Closed 10 years ago . Possible Duplicates: What does WPF still have to offer over Silverlight 4? Why change from WPF to Silverlight 4 I'm working on a WPF application. We considered using Silverlight instead of WPF, but decided we want a full blown desktop application with the whole unique desktop application feeling and advantages that gives. However, starting today there has been a lot of buzz out there about Silverlight 4 being announced at PDC09,

How to parse the JSON Array value in C# (Windows phone 7)?

余生长醉 提交于 2019-12-05 02:01:42
问题 I'm working in WP7. I need to parse JSON array value in to list box. Somebody said, use Serializer and Deserializer but i dont know how to parse those values in to combo box or list box using serilizer and deserializer? 回答1: I would suggest using JSON.NET - I've used that with no problems in Windows Phone 7. Don't focus on the list box to start with - focus on converting from JSON to your own type. Then separately deal with how to show a collection of objects of that type in your list box.

Silverlight local storage

你说的曾经没有我的故事 提交于 2019-12-05 01:34:05
问题 As you may know Silverlight has support for local storage. We are looking at creating Sl application that will work in off line mode. This application may require quite a bit of data to be cached on the client side. Obvious solution - use local storage with some sort of XMl based structure won't work as our PoC showed due to performance issues. We are looking at several 3rd party solutions that implement light database engines on top of SL local storage. If you have solved this problem in the

Why can I not bind the Visiblity of a DataGridTemplateColumn in Silverlight 4?

柔情痞子 提交于 2019-12-05 01:01:51
It seems that it is not possible to bind the visibility property of a DataGridTemplateColumn in Silverlight 4 still. I did some Googling and there seem to be a few posts suggesting it was to do with the fact that it was not a DependencyObject and how this would change in SL4 but it does not seem to be the case. To work around it, I do it in the code behind of the datagrid loaded event, but I am curious as to why this is the case? Here is the error message I get (with a converter that returns a Visibility value): {System.ArgumentException: Object of type 'System.Windows.Data.Binding' cannot be

Can I define CellTemplate of DataGrid as a Resource so that it can be reused in multiple columns?

北城余情 提交于 2019-12-05 00:19:04
问题 I want a specific template for all my columns in DataGrid. The usual method is I will replicate the entire XAML for DataTemplate multiple times in the DataGrid in each of the Column. Is there any way I can define the CellTemplate globally as a resource and then just pass the the "Path" property of "Binding" to it, so that it displays the correct item from the DataContext ? Is this possible ? 回答1: Create DataTemplate in App.Xaml file with key/name. <DataTemplate x:Name="myTemplate" TargetType=

Upgrade From Silverlight 4 to Silverlight 5 causing AccessViolationException

浪子不回头ぞ 提交于 2019-12-04 23:47:10
问题 We have upgraded our project from Silverlight 4 to Silverlight 5 and now we are experiencing AccessViolationException from time to time in different places in the code, this exception is also causing the browser to crash. Is there any guideline how to prevent this from happening? I am adding the stack trace where the AccessViolationException was popped: [Managed to Native Transition] System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase obj, System.Windows