예제 #1
0
        public static bool GetAlwaysScrollToEnd(ScrollViewer scroll) {
            if (scroll == null) {
                throw new ArgumentNullException("scroll");
            }

            return (bool)scroll.GetValue(AlwaysScrollToEndProperty);
        }
 public static void SetAutoScrollToEnd(ScrollViewer instance, bool value) {
     var oldHandler = (ScrollViewerAutoScrollToEndHandler) instance.GetValue(AutoScrollHandlerProperty);
     if (oldHandler != null) {
         oldHandler.Dispose();
         instance.SetValue(AutoScrollHandlerProperty, null);
     }
     instance.SetValue(AutoScrollProperty, value);
     if (value)
         instance.SetValue(AutoScrollHandlerProperty, new ScrollViewerAutoScrollToEndHandler(instance));
 }
 public static MouseWheelScroller GetMouseWheelScroller(ScrollViewer element) { return (MouseWheelScroller)element.GetValue(MouseWheelScrollerProperty); }
예제 #4
0
 public static object GetAutoScrollToEndOnPropertyOrCollectionChanged(ScrollViewer element)
 {
     return element.GetValue(AutoScrollToEndOnPropertyOrCollectionChangedProperty);
 }
 public static bool GetAutoScrollToEnd(ScrollViewer instance) {
     return (bool) instance.GetValue(AutoScrollProperty);
 }
예제 #6
0
 public static bool GetVerticalScrollBarOnLeftSide(ScrollViewer obj)
 {
     return (bool)obj.GetValue(VerticalScrollBarOnLeftSideProperty);
 }
    internal static Transform GetStoredFixedTransform( ScrollViewer obj )
    {
      Transform actualValue = ( Transform )obj.GetValue( TableViewScrollViewer.StoredFixedTransformProperty );

      if( actualValue == null )
      {
        actualValue = TableViewScrollViewer.CreateFixedPanelTransform( obj );
        TableViewScrollViewer.SetStoredFixedTransform( obj, actualValue );
      }

      return actualValue;
    }
예제 #8
0
		public static bool GetPreventViewUpdate(ScrollViewer scrollViewer)
		{
			return (bool)scrollViewer.GetValue(PreventViewUpdateProperty);
		}
 private static double GetHorizontalOffset(ScrollViewer element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     return (double)element.GetValue(HorizontalOffsetProperty);
 }
예제 #10
0
 private static double GetVerticalOffset(ScrollViewer element)
 {
     if (element == null)
         throw new ArgumentNullException("element");
     return (double)element.GetValue(ScrollViewerExtensions.VerticalOffsetProperty);
 }
예제 #11
0
 public static bool GetAutoScrollToBottom(System.Windows.Controls.ScrollViewer element) => (bool)element.GetValue(AutoScrollToBottomProperty);
예제 #12
0
 public static bool GetBoundaryFeedbackFix(ScrollViewer element)
 {
     return (bool)element.GetValue(BoundaryFeedbackFixProperty);
 }