pradhakrishna284:I am using silverlight2.0 for user interface but the functionality should be in C#. For example the code for "Play button" should be written in C#.
You can use MediaElement to display the video. You can add the button as "play button" and you can manually play the video from C# code.
For example:
XAML
<MediaElement
x:Name="butterflyMediaElement"
Source="sampleMedia/Butterfly.wmv" IsMuted="True"
Opacity="0.0" IsHitTestVisible="False" />
C#
public void PlayMedia(object sender, MouseEventArgs e)
{
butterflyMediaElement.Play();
}
Please take a look this doc.
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)
Best Regards,
Michael Sync
Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed