Ejemplo n.º 1
0
 /// <summary>
 /// Occurs when the control handles a <see cref="ScrollViewer.ScrollChangedEvent"/> routed event.
 /// </summary>
 private static void HandleScrollChanged(DependencyObject dobj, ScrollChangedRoutedEventData data)
 {
     if (!MathUtil.IsApproximatelyZero(data.ViewportHeightChange))
     {
         ((TextBox)dobj).UpdateScrollViewerSize();
     }
     data.Handled = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Occurs when the control handles a <see cref="ScrollViewer.ScrollChangedEvent"/> routed event.
 /// </summary>
 private static void HandleScrollChanged(DependencyObject dobj, ScrollChangedRoutedEventData data)
 {
     if (!MathUtil.IsApproximatelyZero(data.ViewportHeightChange))
     {
         ((TextBox)dobj).UpdateScrollViewerSize();
     }
     data.Handled = true;
 }