silverlight

Silverlight Out-of-Browser application will not close using MainWindow.Close method

纵饮孤独 提交于 2019-12-22 04:14:09
问题 I have a Silverlight 5.1.10411.0 Out-of-Browser application that is NOT trusted and I am trying to close the application using the App.Current.MainWindow.Close method. According to the documentation I can only use this mechanism if one of these conditions is true: It is a trusted application (not true for my application) Before the Application.Startup event has completed (not true for my application) In response to a user-initiated action, for example, in a button Click event handler (This is

Debugging Silverlight in Visual Studio 2010 freezes when using keyboard

允我心安 提交于 2019-12-22 04:10:34
问题 First I'd like to head off the "wait a minute" questions. Yes, I've read every thread with similar titles and subjects on SO and beyond. Yes, I'm using the very latest version of SP1 and any potential hotfixes that might be related to this problem. So, with specificity, here is my problem: When I'm debugging Silverlight applications and it hits a breakpoint, everything works just fine as long as I use the mouse. I can continue, step, stop debugging, disable and enable breakpoints all just

Debugging Silverlight in Visual Studio 2010 freezes when using keyboard

梦想的初衷 提交于 2019-12-22 04:10:03
问题 First I'd like to head off the "wait a minute" questions. Yes, I've read every thread with similar titles and subjects on SO and beyond. Yes, I'm using the very latest version of SP1 and any potential hotfixes that might be related to this problem. So, with specificity, here is my problem: When I'm debugging Silverlight applications and it hits a breakpoint, everything works just fine as long as I use the mouse. I can continue, step, stop debugging, disable and enable breakpoints all just

HashSet<T> on Windows Phone 7

我的梦境 提交于 2019-12-22 03:22:42
问题 Is there no System.Collections.Generic.HashSet on Windows Phone 7? 回答1: The Windows Phone 7 .NET libraries are comparable to what is provided in Silverlight 3.0 (which doesn't have HashSet ). You can build something like a HashSet using a Dictionary . For example, see this MSDN forum post: http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/e1dd3571-dfb8-4abe-b63a-62106d6a4965/ 回答2: It is not supported on Windows Phone. Windows Phone version of Silverlight contains some

Large File Download

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 03:15:50
问题 Internet Explorer has a file download limit of 4GB (2 GB on IE6). Firefox does not have this problem (haven't tested safari yet) (More info here: http://support.microsoft.com/kb/298618) I am working on a site that will allow the user to download very large files (up to and exceeding 100GB) What is the best way to do this without using FTP . The end user must be able to download the file from there browser using HTTP. I don't think Flash or Silverlight can save files to the client so as far as

How to do Radio Streaming in Windows Phone 7

你说的曾经没有我的故事 提交于 2019-12-22 01:16:17
问题 I want to do radio streaming in my application.For that i have tried following code.But this code is not working.Can anyone tell me what i am missing? First i have added following reference in .xaml file xmlns:smooth="clr-namespace:Microsoft.Web.Media.SmoothStreaming;assembly=Microsoft.Web.Media.SmoothStreaming" and then i have added following code <smooth:SmoothStreamingMediaElement x:Name="streamer" AutoPlay="True" Source="http://208.53.158.48:8364"/> but it is not streaming. If you copy

Display locations based on KML file in Bing Windows Phone 7

故事扮演 提交于 2019-12-22 00:50:34
问题 Currently i am using the following code to display locations on a map in my application: //Bustop 8448 – Pushpin BusStop8448 = new Pushpin(); BusStop8448.Background = new SolidColorBrush(Colors.Red); BusStop8448.Location = new GeoCoordinate(-36.934608, 174.73016); BusStop8448.Content = "Bus Stop: 8448 "; BusStop8448.MouseLeftButtonUp += new MouseButtonEventHandler(BusStop8448_MouseLeftButtonUp); var BusStop8448Press = sender as Pushpin; this.Map.Children.Add(BusStop8448); This is very tedious

Use TripleDESCryptoServiceProvider class in Silverlight Application

≡放荡痞女 提交于 2019-12-22 00:24:14
问题 I use a web service to authenticate. And this web service use the TripleDes algorithm to encrypt to user name and password. Im my silverlight application I have to encrypt these value for calling web service but I can not add reference of System.Security.Cryptography dll. How can I use this dll file for Silverlight application? 回答1: There is no such thing as a System.Security.Cryptography dll. System.Security.Cryptography is a namespace present in several assemblies that Microsoft ships. In

How do I dynamically construct a predicate method from an expression tree?

廉价感情. 提交于 2019-12-22 00:19:06
问题 Here's the scenario: Silverlight 4.0, DataGrid, PagedCollectionView itemssource. The objective is to apply a Filter to the PCV. The filter needs to be a Predicate<object>(Method) - where Method implements some logic against the object and returns true/false for inclusion. What I have is a need to optionally include 3 different criteria in the filter logic and explicit code quickly gets ugly. We don't want that, do we? So I see that there is a way to build an expression tree using

Live streaming with silverlight 4

倖福魔咒の 提交于 2019-12-21 23:35:06
问题 Greeting, Is there a live streaming server for silverlight 4 from Microsoft like Flash Media Server from Adobe that support live streaming for Flash??? I know that there are many open source live streaming server that support silverlight 4 but I did not find some one good as Flash Media Server which support Flash!!! please tell me if Microsoft has a media server for live streaming or if there is a good open source server for that. I'm working in building web conference system using