If I have a custom class called "VideoMedia" (which contains a standard Uri for the video path) and I have a DatatTemplate that I use to create a Video Player like control.
<DataTemplate DataType="{x:Type v:VideoMedia}">
<MyLib:VideoPlayer/>
</DataTemplate>
(The VideoPlayer class extends UserControl and simply controls the playback of a Video file)
How do I add an event handler into the VideoMedia class, so that it can contain a sort of "TimeStarted" property? I need it at runtime so I can tell if the video is running.
I am storing a IDictionart collection that I iterate over each 2 seconds to tell if the videos are playing. Is there a better way of doing it?