Beispiel #1
0
 /// <summary>
 /// Make the given visual at the given bounds visible.
 /// </summary>
 /// <param name="visual">The visual that will become visible</param>
 /// <param name="rectangle">The bounds of that visual</param>
 /// <returns>The bounds that is actually visible.</returns>
 public Rect MakeVisible(Visual visual, Rect rectangle)
 {
     if (_zoom != null && visual != this)
     {
         return(_zoom.ScrollIntoView(visual as FrameworkElement));
     }
     return(rectangle);
 }