コード例 #1
0
 void VerticalScrollBarMargin_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (Visibility == Visibility.Visible)
     {
         RegisterEvents();
         UpdateMinMax();
         LargeChange  = scrollMap.ThumbSize;
         ViewportSize = scrollMap.ThumbSize;
         Value        = scrollMap.GetCoordinateAtBufferPosition(FirstVisibleLinePoint);
     }
     else
     {
         UnregisterEvents();
     }
 }
コード例 #2
0
 public double GetCoordinateAtBufferPosition(SnapshotPoint bufferPosition)
 {
     return(_scrollMap.GetCoordinateAtBufferPosition(bufferPosition));
 }