Table of Contents

Class SynchronizedScrollingBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

DependencyProperty

TargetProperty

This holds the target to synchronize to.

public static readonly DependencyProperty TargetProperty

Field Value

DependencyProperty

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

DependencyProperty

Properties

HorizontalAdjustment

The horizontal adjustment to apply between source and target.

public double HorizontalAdjustment { get; set; }

Property Value

double

Target

The target ScrollViewer to synchronize to

public UIElement Target { get; set; }

Property Value

UIElement

VerticalAdjustment

The vertical adjustment to apply between source and target.

public double VerticalAdjustment { get; set; }

Property Value

double

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.