本文整理汇总了C#中System.Windows.Controls.ScrollViewer.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ScrollViewer.GetValue方法的具体用法?C# ScrollViewer.GetValue怎么用?C# ScrollViewer.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.ScrollViewer
的用法示例。
在下文中一共展示了ScrollViewer.GetValue方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetAlwaysScrollToEnd
public static bool GetAlwaysScrollToEnd(ScrollViewer scroll) {
if (scroll == null) {
throw new ArgumentNullException("scroll");
}
return (bool)scroll.GetValue(AlwaysScrollToEndProperty);
}
示例2: SetAutoScrollToEnd
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));
}
示例3: GetMouseWheelScroller
public static MouseWheelScroller GetMouseWheelScroller(ScrollViewer element) { return (MouseWheelScroller)element.GetValue(MouseWheelScrollerProperty); }
示例4: GetAutoScrollToEndOnPropertyOrCollectionChanged
public static object GetAutoScrollToEndOnPropertyOrCollectionChanged(ScrollViewer element)
{
return element.GetValue(AutoScrollToEndOnPropertyOrCollectionChangedProperty);
}
示例5: GetAutoScrollToEnd
public static bool GetAutoScrollToEnd(ScrollViewer instance) {
return (bool) instance.GetValue(AutoScrollProperty);
}
示例6: GetVerticalScrollBarOnLeftSide
public static bool GetVerticalScrollBarOnLeftSide(ScrollViewer obj)
{
return (bool)obj.GetValue(VerticalScrollBarOnLeftSideProperty);
}
示例7: GetStoredFixedTransform
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: GetPreventViewUpdate
public static bool GetPreventViewUpdate(ScrollViewer scrollViewer)
{
return (bool)scrollViewer.GetValue(PreventViewUpdateProperty);
}
示例9: GetHorizontalOffset
private static double GetHorizontalOffset(ScrollViewer element)
{
if (element == null)
{
throw new ArgumentNullException("element");
}
return (double)element.GetValue(HorizontalOffsetProperty);
}
示例10: GetVerticalOffset
private static double GetVerticalOffset(ScrollViewer element)
{
if (element == null)
throw new ArgumentNullException("element");
return (double)element.GetValue(ScrollViewerExtensions.VerticalOffsetProperty);
}
示例11: GetBoundaryFeedbackFix
public static bool GetBoundaryFeedbackFix(ScrollViewer element)
{
return (bool)element.GetValue(BoundaryFeedbackFixProperty);
}