silverlight-5.0

Can't install Silverlight Developer runtime

纵然是瞬间 提交于 2019-12-03 02:09:58
问题 I have installed VS 2010 professional with full installation in Windows 7. I have installed Silverlight 5.0 separately. When I create silverlight application, it asks for installing silverlight Developer runtime. You need to install the latest Silverlight Developer runtime before creating a Silverlight project After downloading the runtime when I tried to install it prompted that newer version of Silverlight is already installed So I cant install runtime and I cant create siverlight

Can't install Silverlight Developer runtime

佐手、 提交于 2019-12-02 17:14:55
I have installed VS 2010 professional with full installation in Windows 7. I have installed Silverlight 5.0 separately. When I create silverlight application, it asks for installing silverlight Developer runtime. You need to install the latest Silverlight Developer runtime before creating a Silverlight project After downloading the runtime when I tried to install it prompted that newer version of Silverlight is already installed So I cant install runtime and I cant create siverlight application. I tried to install Silverlight 5 tools, but it ask to install service pack 1 for visual studio.

Which version of Silverlight Supports Task parallel Library

时光总嘲笑我的痴心妄想 提交于 2019-12-02 12:16:28
问题 Though TPL is widely accepted as a feature of C# 4.0 , but heard that it is not supported on SL4, but SL5. Could not find any solid evidence of it. So why the do MicroSoft implemented a feature in WPF but not Silverlight, though both sl4 and wpf4 released around same time. 回答1: If you need TCL in Silverlight 4 you can add the "Microsoft.Bcl" and "Microsoft.Bcl.Async" nuGet packages to your project. They implement part of what TCL delivers in .net. More info can be found here Don't forget you

How to save an image in bitmap format along with rectangle which is drawn on that image

拟墨画扇 提交于 2019-12-02 10:44:39
问题 I am new to Silverlight 5. I am developing a Silverlight application to capture an image through a webcam and assign that image to an image control. Now after assigning the image to the image control it allows the user to draw a shape, for example a rectangle. Now the problem is that when I am trying to save that image, along with rectangle, the rectangle is not saved (only image is saved). Please let me know the solution for this problem. 回答1: To edit images, it is probably easiest to use

Scientific notation XAML

喜你入骨 提交于 2019-12-02 08:37:04
I'm using scientific notation in XAML. I do: <TextBox Text="{Binding Path=CELULARIDAD_CFU, StringFormat='e6'}"/> The problem is that for 1710000 is showing: 1.710000e+006, which is correct but I would like to see 1.71e+6. How is this specified in XAML? (Not in code) I believe you should use the G format specifier to get (almost) what you want. <TextBox Text="{Binding Path=CELULARIDAD_CFU, StringFormat='G'}"/> Within a certain range (different for different number types, see link) the number will then be displayed in normal notation. For large or small enough values, the values will be

'windows-1255' is not a supported encoding name

只谈情不闲聊 提交于 2019-12-02 07:25:19
I'm writing a silverlight 5 application in which I need to read a text file from the user. Here is a snippet of my code: using (StreamReader reader = new StreamReader(fileStream, Encoding.GetEncoding("windows-1255"))) But I get the exception: "'windows-1255' is not a supported encoding name". Why is that? And then, how do I read a file in the "windows-1255" encoding? (Hebrew) There are not many supported encodings in Silverlight. Basically, you get UTF8 and UTF16, see http://msdn.microsoft.com/en-us/library/t9a3kf7c%28VS.95%29.aspx You can read your file as binary then convert yourself to UTF

How to save an image in bitmap format along with rectangle which is drawn on that image

前提是你 提交于 2019-12-02 07:14:29
I am new to Silverlight 5. I am developing a Silverlight application to capture an image through a webcam and assign that image to an image control. Now after assigning the image to the image control it allows the user to draw a shape, for example a rectangle. Now the problem is that when I am trying to save that image, along with rectangle, the rectangle is not saved (only image is saved). Please let me know the solution for this problem. To edit images, it is probably easiest to use the WriteableBitmap class. You can create a WriteableBitmap instance from any BitmapSource . To then edit the

Which version of Silverlight Supports Task parallel Library

守給你的承諾、 提交于 2019-12-02 06:28:01
Though TPL is widely accepted as a feature of C# 4.0 , but heard that it is not supported on SL4, but SL5. Could not find any solid evidence of it. So why the do MicroSoft implemented a feature in WPF but not Silverlight, though both sl4 and wpf4 released around same time. If you need TCL in Silverlight 4 you can add the " Microsoft.Bcl " and "Microsoft.Bcl.Async" nuGet packages to your project. They implement part of what TCL delivers in .net. More info can be found here Don't forget you have to use the TaskEx class instead. Hoped it helped. 来源: https://stackoverflow.com/questions/18396139

Object deep copy in Silverlight

☆樱花仙子☆ 提交于 2019-12-02 04:55:46
问题 I was trying to create copy of objects in silverligth 5 where interfaces like IFormatters and IcCloanble do not support. * My objects are like this: (Note that these obkjects are obtained on deserializing xml): I tried to do copy like this: [XmlRoot(ElementName = "component")] public class Component { [XmlElement("attributes")] public Attributes Attributes { get; set; } [XmlIgnore] public Attributes atrbtOrginal = new Attributes(); [XmlIgnore] public Attributes atrbtCopy{ get; set; } } public

Object deep copy in Silverlight

て烟熏妆下的殇ゞ 提交于 2019-12-02 00:26:08
I was trying to create copy of objects in silverligth 5 where interfaces like IFormatters and IcCloanble do not support. * My objects are like this: (Note that these obkjects are obtained on deserializing xml): I tried to do copy like this: [XmlRoot(ElementName = "component")] public class Component { [XmlElement("attributes")] public Attributes Attributes { get; set; } [XmlIgnore] public Attributes atrbtOrginal = new Attributes(); [XmlIgnore] public Attributes atrbtCopy{ get; set; } } public Component() { atrbtCopy= atrbtOrginal ; } Sure it will not work then i got this code on seraching on