silverlight-4.0

Silverlight: how to handle standard assemblies

人盡茶涼 提交于 2019-12-01 12:16:31
问题 A usual Silverlight task: to make the size of xap-file smaller. There are a lot of hot-to-do manuals that explain how to make your application modular. But I didn't find anyone that explains how to make "modular" standard libraries. The biggest part of my xap-file (1.7Mb, when overall size is 1.8Mb) is occupied by standard assemblies: among them System.Windows.Controls.dll - 370Kb, System.Windows.Controls.Data.dll - 464Kb, etc... Could you please tell (or give a reference to manual) how to

Dynamically Changing Combobox to TextBox in datagrid inside Cell Editing Template in silverlight 4

血红的双手。 提交于 2019-12-01 12:13:52
I'm making an application in Silverlight 4. I am facing a problem, I need to change a particular combobox into textbox programmatically when a particular column value(using combobox) of the same row is changed.I need to change this on event cellEditEnded. Please note that I need to change celleditingtemplate combobox to textbox not celltemplate textblock. This my Column where I need to take the decision of its combo box selected value. <sdk:DataGridTemplateColumn Header="Instruction Type" CanUserResize="False" CanUserReorder="False"> <sdk:DataGridTemplateColumn.CellTemplate> <DataTemplate>

How to play swf file in silverlight?

北战南征 提交于 2019-12-01 11:36:31
问题 I am tring to play a .swf in silverlight5 page.I am using the ListBox control or Image Control Or Any Idea To Play swf File in Silvarlight <Image Grid.Row="0" Name="bottom_video" Height="80" Source="{Binding VodeoUrl,Mode=OneWay}" Margin="0,20,0,0" /> 回答1: You can see in the code below how to use Iframe on Silverlight: <Grid x:Name="LayoutRoot"> <HyperlinkButton Content="HyperlinkButton" Height="23" HorizontalAlignment="Left" Margin="44,20,0,0" Name="hyperlinkButton1" VerticalAlignment="Top"

Dynamically Changing Combobox to TextBox in datagrid inside Cell Editing Template in silverlight 4

六眼飞鱼酱① 提交于 2019-12-01 11:31:59
问题 I'm making an application in Silverlight 4. I am facing a problem, I need to change a particular combobox into textbox programmatically when a particular column value(using combobox) of the same row is changed.I need to change this on event cellEditEnded. Please note that I need to change celleditingtemplate combobox to textbox not celltemplate textblock. This my Column where I need to take the decision of its combo box selected value. <sdk:DataGridTemplateColumn Header="Instruction Type"

What are the default maximum RAM allotments for a Silverlight 4 app?

大兔子大兔子 提交于 2019-12-01 09:38:10
问题 Dealing with an issue where loading a large file into memory in a Silverlight 4 app leads to a an out of memory exception, and a crash. The file is ~100MB. I am trying to determine if Silverlight has some sort of default limit on RAM. 回答1: I can tell you only about Silverlight 5, as I'm having issue with it now. As some author has written here, on any machine (x86, or x64) for 32-bit process the memory limit by default is 2 GB. If special flag in .exe header is set (called IMAGE_FILE_LARGE

Silverlight is not liking my WCF MessageContract. Why?

吃可爱长大的小学妹 提交于 2019-12-01 08:42:38
I am attempting to upload a file through a Silverlight client using the following MessageContract : [MessageContract] public class CategoryClientFileTransferMC : IDisposable { /// <summary> /// CategoryID - Category identity. /// </summary> [MessageHeader(MustUnderstand = true)] public int CategoryID; /// <summary> /// ID - File identifier. /// </summary> [MessageHeader(MustUnderstand = true)] public string ID; /// <summary> /// Length - File length in bytes. /// </summary> [MessageHeader(MustUnderstand = true)] public long Length; /// <summary> /// FileByteStream - File stream. /// </summary>

Failed to download a platform extension: System.Windows.Data.zip in Silverlight

房东的猫 提交于 2019-12-01 08:39:41
We are running a silverlight asp.net appliction and we get the following error: Line: 64 Error: Unhandled Error in Silverlight Application Code: 2152 Category: InitializeError Message: Failed to download a platform extension: System.Windows.Data.zip What do I need to do to fix this?? Any ideas and suggestions are appreciated! You will need to turn off the "Reduce XAP size by using application library caching" option in order to run the app as standalone. 来源: https://stackoverflow.com/questions/9474517/failed-to-download-a-platform-extension-system-windows-data-zip-in-silverlight

How do I compile C++/CLI code for Silverlight?

こ雲淡風輕ζ 提交于 2019-12-01 07:39:24
I have a C++/CLI library that I would like to use in a Silverlight application. It is supposed to be possible to write code for Silverlight in any .NET language, but so far I've only worked out how to compile C#. Silverlight does not seem to be able to use DLLs compiled for .NET. I'm using Visual Studio 2010 and Silverlight 4. The only new projects available for Silverlight are C# projects. Porting the code to C# is not a practical option. How do I compile C++/CLI code for Silverlight? I think I may have gotten a VS2010 C++/CLI class library project to build with references to (only)

Failed to download a platform extension: System.Windows.Data.zip in Silverlight

隐身守侯 提交于 2019-12-01 07:39:21
问题 We are running a silverlight asp.net appliction and we get the following error: Line: 64 Error: Unhandled Error in Silverlight Application Code: 2152 Category: InitializeError Message: Failed to download a platform extension: System.Windows.Data.zip What do I need to do to fix this?? Any ideas and suggestions are appreciated! 回答1: You will need to turn off the "Reduce XAP size by using application library caching" option in order to run the app as standalone. 来源: https://stackoverflow.com

Why does ManualResetEvent fail to work in this synchronous call using Silverlight 4?

非 Y 不嫁゛ 提交于 2019-12-01 05:54:47
Let's put aside for the moment, the question of whether synchronous-like operations should even be attempted within the context of a Silverlight app. If I use ManualResetEvent as in the following code: static string result; static AutoResetEvent are = new AutoResetEvent(false); static ManualResetEvent mre = new ManualResetEvent(false); public static string AsyncCall() { string url = "https://stackoverflow.com/feeds/tag/silverlight"; WebClient w = new WebClient(); w.DownloadStringCompleted += new DownloadStringCompletedEventHandler(w_DownloadStringCompleted); w.DownloadStringAsync(new Uri(url),