silverlight-5.0

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

感情迁移 提交于 2019-12-01 02:59:43
问题 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.

Where does business logic sit in MVVM?

五迷三道 提交于 2019-11-30 12:59:50
I am used to developing with N-Tier architecture, i.e. Data Access Layer, Business Logic Layer, etc Can anyone provide any advice or links about the best location for my business logic? Do I put all of this into classes within the Models folder of my Silverlight application? Paul Business logic, as well as the data, is typically part of the Model layer in MVVM. The View is the visuals, and the ViewModel is the "glue" that lets you work with the business specific logic and data. Anything that's specific to the domain or business should be reusable by other applications, using other

Silverlight 5 Trusted Mode. Accessing FileSystem and Local drives

你说的曾经没有我的故事 提交于 2019-11-29 08:07:27
Is there any way, any chance at all to access entire filesystem in SL app with elevated trust? That will work both in Windows and Mac? Through AutomationFactory , PInvoke or unmanaged code? I need an app that could read local drives, folders and files. UDP: Ok, seems it's possible to read folders and files using classes of System.IO from mscorlib. Although you still can't get information about local mounted drives. There is no DriveInfo in Silverlight's mscorlib :( Ok I have an idea about this. It is straightforward enough with Windows, to get the list of the local drives you can use

Silverlight 5 + AutoCompleteBox = Bug

孤街醉人 提交于 2019-11-28 13:54:50
Just installed SL5 and the toolkit, that were released few days ago. The bug happens when you set the Text property of the AutoCompleteBox to string.Empty. It causes the AutoCompleteBox to be in a buggy state. To reproduce the bug: add an AutoCompleteBox and a Button to the main page. Register to the TextChanged and Click events. This is the code-behind: public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); } private void button1_Click(object sender, RoutedEventArgs e) { auto.Text = string.Empty; } private void auto_TextChanged(object sender, RoutedEventArgs

Silverlight 5 Trusted Mode. Accessing FileSystem and Local drives

时间秒杀一切 提交于 2019-11-28 01:52:26
问题 Is there any way, any chance at all to access entire filesystem in SL app with elevated trust? That will work both in Windows and Mac? Through AutomationFactory , PInvoke or unmanaged code? I need an app that could read local drives, folders and files. UDP: Ok, seems it's possible to read folders and files using classes of System.IO from mscorlib. Although you still can't get information about local mounted drives. There is no DriveInfo in Silverlight's mscorlib :( 回答1: Ok I have an idea

Serial Communication with Silverlight 5 (COM port)

依然范特西╮ 提交于 2019-11-27 22:34:59
I'm working on an ASP.NET website in which I'll need to access an usb device from the client side. I've seen that Silverlight 5, through the use of P/Invoke, allows us to access dlls on the client machine. I plan to add a silverlight control in one of my page that will interact with my usb Device. This, way, each customer using this kind of device, will only need to connect on my website and start working with it. Nonetheless, being a beginner at that kind of interaction with an usb device, how can I manage to do this ? Which windows dll will provide me with a good way of interacting with an

SimpleIoc - can it provide new instance each time required?

流过昼夜 提交于 2019-11-27 09:13:10
So far as I understand, SimpleIoc uses GetInstance method to retrieve an instance of a class that is registered. If the instance doesnt exist, it will create it. However, this instance is cached and always retrieved, which mimics the singleton pattern. My thinking is that there is no need to keep an instance of ViewModel in a memory if there is a small possibility that this ViewModel will be needed twice, so I would like to create new instance of it each time that is needed. If we have are having a factory for ViewModels, we will have a property like this: public MyViewMOdel MyViewModel { get

Task<> does not contain a definition for 'GetAwaiter'

﹥>﹥吖頭↗ 提交于 2019-11-27 08:32:59
Client iGame Channel = new ChannelFactory<iGame> ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( "http://localhost:58597/Game.svc" ) ) ) . CreateChannel ( ); public Task<SerializableDynamicObject> Client ( SerializableDynamicObject Packet ) { return Task<SerializableDynamicObject> . Factory . FromAsync ( Channel . BeginConnection , Channel . EndConnection , Packet , null ); } Contract [OperationContract ( AsyncPattern = true )] IAsyncResult BeginConnection ( SerializableDynamicObject Message , AsyncCallback Callback , object State );

Serial Communication with Silverlight 5 (COM port)

北战南征 提交于 2019-11-26 23:12:51
问题 I'm working on an ASP.NET website in which I'll need to access an usb device from the client side. I've seen that Silverlight 5, through the use of P/Invoke, allows us to access dlls on the client machine. I plan to add a silverlight control in one of my page that will interact with my usb Device. This, way, each customer using this kind of device, will only need to connect on my website and start working with it. Nonetheless, being a beginner at that kind of interaction with an usb device,

Task<> does not contain a definition for &#39;GetAwaiter&#39;

老子叫甜甜 提交于 2019-11-26 14:10:15
问题 Client iGame Channel = new ChannelFactory<iGame> ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( "http://localhost:58597/Game.svc" ) ) ) . CreateChannel ( ); public Task<SerializableDynamicObject> Client ( SerializableDynamicObject Packet ) { return Task<SerializableDynamicObject> . Factory . FromAsync ( Channel . BeginConnection , Channel . EndConnection , Packet , null ); } Contract [OperationContract ( AsyncPattern = true )] IAsyncResult