silverlight

Thumbnail image of Silverlight video

假装没事ソ 提交于 2019-12-19 04:54:05
问题 For the popular video player, like sl2videoplayer, http://www.codeplex.com/sl2videoplayer, my question is how is the thumbnail image of Siverlight video is displayed before we click play (in the scenario of non-autoplay). thanks in advance, George 回答1: the MediaElement that the Video Player uses will show a thumbnail image of the frame at the current position. Otherwise, tools like Expression Encoder create thumbnail images (JPEGs or PNGs) that will be used for the video thumbnails and

WPF PropertyGrid - adding support for collections

痞子三分冷 提交于 2019-12-19 04:43:10
问题 I am working on wpf PropertyGrid (PG) control and I want the PG to support collection type( IList , ObservableCollection etc.) properties. I am bit confused on how to keep track of selected item(of that collection) and pass that to client. Any ideas? If the solution makes use of the Open Source WPF PropertyGrid (http://www.codeplex.com/wpg) I will implement the changes /additions back into the control. 回答1: No answers proves that there is no straight forward way of doing this. So I

How to replace link to hyperlink in RichTextBox (Windows phone)

时光怂恿深爱的人放手 提交于 2019-12-19 04:23:29
问题 I have a text: Download it directly to the <a href="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</a> or <a href="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</a>. The application is launched for Swedish app store. I know how to show a hyperlink in RichTextBox: http://msdn.microsoft.com/en-us/library/ee681613%28v=vs.95%29.aspx But how can I make this for everyone link in this code? 回答1: You should parse the string maybe with

How to replace link to hyperlink in RichTextBox (Windows phone)

▼魔方 西西 提交于 2019-12-19 04:23:12
问题 I have a text: Download it directly to the <a href="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</a> or <a href="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</a>. The application is launched for Swedish app store. I know how to show a hyperlink in RichTextBox: http://msdn.microsoft.com/en-us/library/ee681613%28v=vs.95%29.aspx But how can I make this for everyone link in this code? 回答1: You should parse the string maybe with

How to publish Windows Phone 8.1 Silverlight app to Windows Phone store?

五迷三道 提交于 2019-12-19 04:09:17
问题 I created Windows Phone 8.1 Silverlight app, and I can't to upload it into WP store. I want to use Create App Packages tool in Visual Studio 2013 Professional, but it's impossible for Silverlight apps. I read many guides on dev.windows.com. It's necessary to upload only .appx , .appxbundle or .appxupload files, but I have .xap file only in Bin\ARM\Release folder. May anyone help me? 回答1: I'm having the same problem, which I just solved. WP8.1 Silverlight application may not be packaged with

Grab-to-pan in Silverlight app

匆匆过客 提交于 2019-12-19 04:08:28
问题 I have a Canvas inside a ScrollViewer. I want to have the user to be able to grab the canvas and move it around, with the thumbs on the scrollbars updating appropriately. My initial implementation calculates the offset on each mouse move, and updates the scrollbars: // Calculate the new drag distance Point newOffsetPos = e.GetPosition(MapCanvas); System.Diagnostics.Debug.WriteLine(" newOffsetPos : " + newOffsetPos.X + " " + newOffsetPos.Y); double deltaX = newOffsetPos.X - _offsetPosition.X ;

jquery webcam plugin with asp.net mvc 3

三世轮回 提交于 2019-12-19 03:25:13
问题 has anyone gotten this http://www.xarg.org/project/jquery-webcam-plugin/, to work with aps.net mvc 3? I can't seem to decode the image, using the WebImage class or BitmapImage. I've tired to do this with Silverlight, but I'm really unsure on how to upload the image. I do not need to save the image, I just want to process it, what im really looking to do is read a bar-code via web app. I just can't seem to find a good guide to uploading an image from Silverlight or flash to my MVC app. Thanks

How can I realize SelectionChanged in MVVM ListBox Silverlight

主宰稳场 提交于 2019-12-19 03:14:35
问题 The ListBox control does not implement a Command property. I have to attach some functionality to the SelectionChanged event. Somebody knows how can I do it? Please help me 回答1: I prefer using a binding to the SelectedItem and implementing any functionality in the setting of the binding property. <ListBox ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" /> ... public class ViewModel { public IEnumerable<Item> Items { get; set; } private Item selectedItem; public Item

Value does not fall within the expected range

被刻印的时光 ゝ 提交于 2019-12-18 21:56:32
问题 I am using the following code to update a listbox, this recieving a list from a Web service: client.userKeywordsCompleted += new EventHandler<userKeywordsCompletedEventArgs>(client_userKeywordsCompleted); client.userKeywordsAsync(); Using: void client_userKeywordsCompleted(object sender, userKeywordsCompletedEventArgs e) { string result = System.Convert.ToString(e.Result); for (int i = 0; i < e.Result.Count; i++) { ListBoxItem lbitem = new ListBoxItem(); lbitem.Name = "lb_" + i; lbitem

Value does not fall within the expected range

流过昼夜 提交于 2019-12-18 21:54:23
问题 I am using the following code to update a listbox, this recieving a list from a Web service: client.userKeywordsCompleted += new EventHandler<userKeywordsCompletedEventArgs>(client_userKeywordsCompleted); client.userKeywordsAsync(); Using: void client_userKeywordsCompleted(object sender, userKeywordsCompletedEventArgs e) { string result = System.Convert.ToString(e.Result); for (int i = 0; i < e.Result.Count; i++) { ListBoxItem lbitem = new ListBoxItem(); lbitem.Name = "lb_" + i; lbitem