private void Window_Loaded(object sender, RoutedEventArgs e)
{
_timer.Interval = TimeSpan.FromMilliseconds(1000);
_timer.Tick += new EventHandler(sinchronyzeSliderAndVideoSession);
_timer.Start();
}
private void sinchronyzeSliderAndVideoSession(object sender, EventArgs e)
{
VideoSlider.Value = VideoPlayer.Position.TotalSeconds;
}