C# Class GnomeSurferPro.Util.ScrollViewerBinding

显示文件 Open project: igemsoftware/BU_Wellesley_Software_2011

Public Properties

Property Type Description
HorizontalOffsetProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetHorizontalOffset ( DependencyObject depObj ) : double

Gets the horizontal offset value

SetHorizontalOffset ( DependencyObject depObj, double value ) : void

Sets the horizontal offset value

Private Methods

Method Description
GetScrollBar ( FrameworkElement fe, Orientation orientation ) : System.Windows.Controls.Primitives.ScrollBar

Searches the descendants of the given element, looking for a scrollbar with the given orientation.

GetScrollBarsForScrollViewer ( ScrollViewer scrollViewer ) : void

Attempts to extract the scrollbars that are within the scrollviewers visual tree. When extracted, event handlers are added to their ValueChanged events.

OnHorizontalOffsetPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when the Horizontal attached property changes

Method Details

GetHorizontalOffset() public static method

Gets the horizontal offset value
public static GetHorizontalOffset ( DependencyObject depObj ) : double
depObj System.Windows.DependencyObject
return double

SetHorizontalOffset() public static method

Sets the horizontal offset value
public static SetHorizontalOffset ( DependencyObject depObj, double value ) : void
depObj System.Windows.DependencyObject
value double
return void

Property Details

HorizontalOffsetProperty public_oe static_oe property

Horizontal attached property
public static DependencyProperty,System.Windows HorizontalOffsetProperty
return System.Windows.DependencyProperty