Class SynchronizedScrollingBehavior
This behavior tracks two ScrollViewer based controls and keeps their Horizontal and Vertical positions synchronized.
public class SynchronizedScrollingBehavior : Behavior<UIElement>, IAnimatable, IAttachedObject
- Inheritance
-
SynchronizedScrollingBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
HorizontalAdjustmentProperty
This dependency property holds the horizontal adjustment factor when two ScrollViewer instances do not have the same size or elements.
public static readonly DependencyProperty HorizontalAdjustmentProperty
Field Value
TargetProperty
This holds the target to synchronize to.
public static readonly DependencyProperty TargetProperty
Field Value
VerticalAdjustmentProperty
This dependency property holds the vertical adjustment factor when two ScrollViewer instances do not have the same size or elements.
public static readonly DependencyProperty VerticalAdjustmentProperty
Field Value
Properties
HorizontalAdjustment
The horizontal adjustment to apply between source and target.
public double HorizontalAdjustment { get; set; }
Property Value
Target
The target ScrollViewer to synchronize to
public UIElement Target { get; set; }
Property Value
VerticalAdjustment
The vertical adjustment to apply between source and target.
public double VerticalAdjustment { get; set; }
Property Value
Methods
OnAttached()
Called after the behavior is attached to an AssociatedObject.
protected override void OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
protected override void OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.