C# Class YALV.Common.ScrollSynchronizer

Refs: http://www.codeproject.com/Articles/39244/Scroll-Synchronization
Inheritance: System.Windows.DependencyObject
显示文件 Open project: LukePet/YALV

Public Properties

Property Type Description
ScrollGroupProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetScrollGroup ( DependencyObject obj ) : string

Gets the value of the attached property ScrollGroup.

SetScrollGroup ( DependencyObject obj, string scrollGroup ) : void

Sets the value of the attached property ScrollGroup.

Private Methods

Method Description
HorizontalScrollBar_Scroll ( object sender, System.Windows.Controls.Primitives.ScrollEventArgs e ) : void

Occurs, when the horizontal scroll bar was moved.

HorizontalScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Occurs, when the horizontal scroll bar was moved.

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

Occurs, when the ScrollGroupProperty has changed.

Scroll ( ScrollViewer changedScrollViewer, bool verticalChange, bool horizontalChange ) : void

Scrolls all scroll viewers of a group to the position of the selected scroll viewer.

ScrollViewer_Loaded ( object sender, RoutedEventArgs e ) : void

Occurs, when the scroll viewer is loaded.

ScrollViewer_ScrollChanged ( object sender, System.Windows.Controls.ScrollChangedEventArgs e ) : void

Occurs, when the scroll offset of one scrollviewer has changed.

VerticalScrollBar_Scroll ( object sender, System.Windows.Controls.Primitives.ScrollEventArgs e ) : void

Occurs, when the vertical scroll bar was moved.

VerticalScrollBar_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Occurs, when the vertical scroll bar was moved.

Method Details

GetScrollGroup() public static method

Gets the value of the attached property ScrollGroup.
public static GetScrollGroup ( DependencyObject obj ) : string
obj System.Windows.DependencyObject Object for which the property should be read.
return string

SetScrollGroup() public static method

Sets the value of the attached property ScrollGroup.
public static SetScrollGroup ( DependencyObject obj, string scrollGroup ) : void
obj System.Windows.DependencyObject Object on which the property should be applied.
scrollGroup string Value of the property.
return void

Property Details

ScrollGroupProperty public_oe static_oe property

Identifies the attached property ScrollGroup
public static DependencyProperty,System.Windows ScrollGroupProperty
return System.Windows.DependencyProperty