Click here to Skip to main content
15,886,611 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I want to give source(uri) to Media element from another class.
Here Media element control is in the Main window added through Xaml. Now from another class i want to give source to the Media element.

Plz any one give me example how can we do it. Any help can be much appreciated.

Thanks
Posted
Updated 11-Oct-11 19:25pm
v3
Comments
Sergey Alexandrovich Kryukov 10-Oct-11 15:07pm    
Does it even compile? You manner of writing all in low-case might not be approved by the compiler :-).
Perhaps, you did not copy your code fragment from your real code. Is copy/paste a problem?
--SA
Sergey Alexandrovich Kryukov 10-Oct-11 15:08pm    
How do I know that your media element is even inserted in your UI, visible, etc?
--SA
KiranBabu M 11-Oct-11 0:37am    
Media element is added in UI through Xaml.
Sergey Alexandrovich Kryukov 12-Oct-11 2:03am    
OK, good, but now you removed any code. How could anyone see where you screw up?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900