C# Class YALV.Common.ScrollSynchronizer

Refs: http://www.codeproject.com/Articles/39244/Scroll-Synchronization
Inheritance: System.Windows.DependencyObject
Afficher le fichier Open project: LukePet/YALV

Méthodes publiques

Свойство Type Description
ScrollGroupProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat string

SetScrollGroup() public static méthode

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.
Résultat void

Property Details

ScrollGroupProperty public_oe static_oe property

Identifies the attached property ScrollGroup
public static DependencyProperty,System.Windows ScrollGroupProperty
Résultat System.Windows.DependencyProperty