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); }
public static object GetAutoScrollToEndOnPropertyOrCollectionChanged(ScrollViewer element) { return element.GetValue(AutoScrollToEndOnPropertyOrCollectionChangedProperty); }
public static bool GetAutoScrollToEnd(ScrollViewer instance) { return (bool) instance.GetValue(AutoScrollProperty); }
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; }
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); }
private static double GetVerticalOffset(ScrollViewer element) { if (element == null) throw new ArgumentNullException("element"); return (double)element.GetValue(ScrollViewerExtensions.VerticalOffsetProperty); }
public static bool GetAutoScrollToBottom(System.Windows.Controls.ScrollViewer element) => (bool)element.GetValue(AutoScrollToBottomProperty);
public static bool GetBoundaryFeedbackFix(ScrollViewer element) { return (bool)element.GetValue(BoundaryFeedbackFixProperty); }