Exemplo n.º 1
0
 private void AdjustSlider()   //set the slider's value to make sure the ui elems are always in the right places (we use this when the window gets resized and when the window's launched)
 {
     if (TimeLineSlider != null && this != null)
     {
         Point timeLineOrigin = TimeLineCanvas.TransformToAncestor(this).Transform(new Point(0, 0));
         TimeLineSlider.Minimum = timeLineOrigin.X - 5;
         TimeLineSlider.Maximum = timeLineOrigin.X + TimeLineCanvas.ActualWidth - 5;
     }
 }
Exemplo n.º 2
0
 private void ScrollViewer_Loaded(object sender, RoutedEventArgs e)
 {
     TimeLineCanvas.AddHandler(MouseWheelEvent, new RoutedEventHandler(TimeGrid_MouseWheel), true);
 }