silverlight

How can I handle an event when pressed Start button (Windows Phone)

寵の児 提交于 2020-01-13 12:07:52
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

How can I handle an event when pressed Start button (Windows Phone)

ぐ巨炮叔叔 提交于 2020-01-13 12:07:22
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

Silverlight ClientHttp WebRequest timeout

一个人想着一个人 提交于 2020-01-13 10:25:10
问题 I have a silverlight 4 application using the ClientHttp stack to make a WebRequest which serves a binary stream. I then read from this stream and do stuff. However, I have the following problem: the server buffers the data that it sends down, so that the send process is like send-pause-send-pause-send... Sometimes the server takes a little longer pause (around 20 seconds), at which point the connection seems to somehow break. I don't get any exception in Silverlight, actually to the code it

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

坚强是说给别人听的谎言 提交于 2020-01-13 10:05:02
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

点点圈 提交于 2020-01-13 10:04:26
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

EF5 Code First and RIA Services Silverlight “Object reference not set to an instance of an object” error building client

夙愿已清 提交于 2020-01-13 10:04:16
问题 I am working on setting up a new project using Code First for entity framework 5 in silverlight using RIA services. I have created a test project due to some issues I have encountered and will post the code below. Namely, I get an 'Object reference not set to an instance of an object' error anytime I attempt to build the silverlight client project which should generate the client proxy classes. Just to be clear, this error is not while running or debugging the application, but when building

Why System.Core fails to load when adding Coded UI support for Silverlight 5 application?

你。 提交于 2020-01-13 07:32:07
问题 I'm having the following problem: Trying to add support for creating coded UI test for Silverlight 5 application ([MSDN][1]). First step is to reference assembly Microsoft.VisualStudio.TestTools.UITest.Extension.SilverlightUIAutomationHelper.dll in Silverlight 5 project. Unfortunately, after the reference has been added, projects stops to compile with a number of similar errors: > Error 25 Cannot resolve reference assemblies. Please check the reference assemblies. Could not load file or

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

佐手、 提交于 2020-01-13 06:42:49
问题 I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage , but the image still didn't display. So I finally realized that I could capture loading errors with the ImageFailed event. What I get is an AG_E_NETWORK_ERROR . I looked at Silverlight's URL Access Restrictions and the table states that

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

北城以北 提交于 2020-01-13 06:42:48
问题 I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage , but the image still didn't display. So I finally realized that I could capture loading errors with the ImageFailed event. What I get is an AG_E_NETWORK_ERROR . I looked at Silverlight's URL Access Restrictions and the table states that

Silverlight control not being garbage collected because of command

扶醉桌前 提交于 2020-01-13 06:21:09
问题 My control is being kept alive because of command it is bound to. How can I break this reference? This is causing a major memory leak in my application. The control is inside of a DataTemplate so I have no direct access to it. Here is my ANTS memory profile: How on earth do I break this connection? 回答1: Though I incorporated WeakEventListener , I discovered that my problem was with the control I was using to wrap up my images. I was hooking it up to DownloadProgress , ImageOpened , and