c# - Building a progress bar for Silverlight MediaElement -


i want simple progress bar , time label shows current position of movie. google gave me few examples using javascript: don't want that. key thing keep progress bar , time updated througout movie. can find event?

there no event hook into.

instead user timer periodically check mediaelement.position mediaelement's current position , update progress bar.

something like:

private void timer_tick(object sender, eventargs e) {     timespan currentposition = media1.position;             this.slider1.value == currentposition.totalseconds } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -