Problem setting position in control

i use this line to set the position of the media element

OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position); 

but he remains 00:00 why he cannot go to the position value

+4
source share
1 answer

You must wait for the MediaOpened event before trying to set the Position

 OurElement.MediaOpened += (s, args) => { OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position); } 
+5
source

Source: https://habr.com/ru/post/1315051/


All Articles