c# - how to change MediaElement source when ListPicker_SelectionChanged? -


I am trying to bind the MediaElement source from the list picker when the user stores my problem list in Tagore etem I want to change I Bleep. SourcePicker_SelectionChanged source but how is my problem chosen and how it has been removed?

  Private Zero List Picture / Signature Switch (Object Sender, System. Windows Control. Modified Changed Ententage E) {// TODO: Add Event Handler Implement here. Bleep.Source = lp_sound.SelectedItem.ToString (); } & Lt; Grid x: Name = "ContentPanel" grid. Line = "1" margin = "12,0,12,0" & gt; & Lt; Media element x: name = "bleed" source = "sound files \ road .wow" autoplay = "wrong" visibility = "short" /> & Lt; Button x: name = "buttonplay" content = "play" horizontal alignment = "left" margin = "170,404,0,0" vertical alignment = "top" click = "buttonplay_click" /> & Lt; Toolkit: ListPicker x: name = "lp_sound" horizontal alignment = "left" margin = "10,10,0,0" vertical alignment = "top" width = "408" selection = changed "listing picture check selection" ; & Lt; Toolkit: List PickerItem x: name = "basterwidth" content = "sound 1" tag = "sound files \ ror. Vow" & gt; & Lt; / Toolkit: List PictureEdit & gt; & Lt; / Toolkit: ListPicker & gt; & Lt; / Grid & gt;    

You can do this to get results. I have assumed that you have used the local media file in your litcrack.

  Private Zero List Picture / Signature Switched (Object Sender, System. Windows Control. Select Selected Eventires E) {ListPickerItem item = lp_sound.SelectedItem ListPickerItem; If (item! = Null) bleed. Source = new uri (convert to.testring (item tag), uricind. Relativat); }   

Hope this will help.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -