silverlight-5.0

Silverlight 5 AccessViolationException

旧城冷巷雨未停 提交于 2019-12-01 23:36:10
问题 I installed the Silverlight 5 VS 2010 tools and the 64-bit Developer runtime and now I get a System.AccessViolationException when I do a specific action. The projects are still Silverlight 4, I haven't upgraded them. I verified on another developer's computer (who doesn't have SL5 installed yet) that the same code still works in SL4. The message is: {System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.} and it

Silverlight 5 AccessViolationException

拥有回忆 提交于 2019-12-01 20:31:15
I installed the Silverlight 5 VS 2010 tools and the 64-bit Developer runtime and now I get a System.AccessViolationException when I do a specific action. The projects are still Silverlight 4, I haven't upgraded them. I verified on another developer's computer (who doesn't have SL5 installed yet) that the same code still works in SL4. The message is: {System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.} and it kills IE. It's happening after a delete confirmation ChildWindow's ok button is clicked and my

Cross domain policy file over net.tcp for WCF servicehost and Silverlight 5

大城市里の小女人 提交于 2019-12-01 11:55:27
问题 I have a locally hosted WCF service and a silverlight 5 app that communicates with it. By default silverlight tries to obtain the cross domain policy file over HTTP when making calls to the WCF service. I need to change this so that the policy file is served over net.tcp port 943 instead. I have setup a local tcp listener that serves up the policy file over port 943 and i have followed this technique whereby i make a dummy socket connection in order to obtain the policy file over tcp as it is

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"

C1RichTextBox with custom copy/paste behavior

自闭症网瘾萝莉.ら 提交于 2019-12-01 10:31:57
When using C1RichTextBox in Silverlight 5 with IE 10, I am facing two major issues: During a clipboard paste operation, how can I detect if the content was copied from another C1RichTextBox in my Silverlight application or from an external application? From external applications, only text should be pasted without formatting. Copy/Pasting large inline images from one C1RichTextBox to another does not work. The <img> elements have the image content stored in their data URL. If the image becomes too large (approx 1MB), the src attribute is dropped when copied to the clipboard. The solution

C1RichTextBox with custom copy/paste behavior

我们两清 提交于 2019-12-01 08:42:06
问题 When using C1RichTextBox in Silverlight 5 with IE 10, I am facing two major issues: During a clipboard paste operation, how can I detect if the content was copied from another C1RichTextBox in my Silverlight application or from an external application? From external applications, only text should be pasted without formatting. Copy/Pasting large inline images from one C1RichTextBox to another does not work. The <img> elements have the image content stored in their data URL. If the image

Disposing of ViewModels in Caliburn Micro and Castle Windsor

≯℡__Kan透↙ 提交于 2019-12-01 06:06:17
I'm using Castle-Windsor as my container in a Caliburn-Micro Silverlight app. My ViewModel objects are reasonably chunky as they call WCF services and a bunch of other stuff. Therefore, when a window is closed I want to call container.Release(viewModel) so Castle can manage the whole decommission/disposal process, respecting the various lifecycles configured (as outlined in this post ). In my AppBootstrapper I have overridden GetInstance as follows: protected override object GetInstance(Type serviceType, string key) { if (string.IsNullOrEmpty(key)) return container.Resolve(serviceType); return

Chrome does not show network traffic of Silverlight RIA services messages after update to version 32.0.1700.76 m

核能气质少年 提交于 2019-12-01 05:15:13
Couple days ago Google Chrome automatically updated from version 31.* to version 32.0.1700.76 m. After that happened it does not show in DevTools network traffic request/responses of "application/msbin1" type anymore. These requests are visible in all other browsers' dev tools (FireFox, IE) and in Fiddler, but not in Chrome. Also Chrome's popup menu in this version is very glitchy. I don't see the way to downgrade Chrome to previous version. Please help I don't want to uninstall Chrome. Network traffic does not even show resources (XAP file) a page loads. Example: http://www.microsoft.com

Using Unity to inject objects into IValueConverter instance

不羁岁月 提交于 2019-12-01 04:27:20
I have an instance of IValueConverter in a Silverlight 5 project, which converts custom data into different colors. I need to read the actual color values from a database (as these can be edited by the user). Since Silverlight uses asynchronous calls to load the data through Entity Framework from the database, I created a simple repository, which holds the values from the db. The interface: public interface IConfigurationsRepository { string this[string key] { get; } } The implementation: public class ConfigurationRepository : IConfigurationsRepository { private readonly TdTerminalService

Disposing of ViewModels in Caliburn Micro and Castle Windsor

泪湿孤枕 提交于 2019-12-01 03:02:42
问题 I'm using Castle-Windsor as my container in a Caliburn-Micro Silverlight app. My ViewModel objects are reasonably chunky as they call WCF services and a bunch of other stuff. Therefore, when a window is closed I want to call container.Release(viewModel) so Castle can manage the whole decommission/disposal process, respecting the various lifecycles configured (as outlined in this post). In my AppBootstrapper I have overridden GetInstance as follows: protected override object GetInstance(Type