Table of Contents

Class ScrollingPreviewBehavior

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

Displays a ToolTip next to the ScrollBar thumb while it is being dragged.
This code was taken from an MSDN sample - see http://code.msdn.microsoft.com/getwpfcode/Release/ProjectReleases.aspx?ReleaseId=1445 for the original source code and project.

public class ScrollingPreviewBehavior : Behavior<Control>, IAnimatable, IAttachedObject
Inheritance
ScrollingPreviewBehavior
Implements
Inherited Members
Extension Methods

Fields

HorizontalScrollingPreviewTemplateProperty

Allows for specifying a ContentTemplate for a ToolTip that will appear next to the horizontal ScrollBar while dragging the thumb.

public static readonly DependencyProperty HorizontalScrollingPreviewTemplateProperty

Field Value

DependencyProperty

VerticalScrollingPreviewTemplateProperty

Allows for specifying a ContentTemplate for a ToolTip that will appear next to the vertical ScrollBar while dragging the thumb.

public static readonly DependencyProperty VerticalScrollingPreviewTemplateProperty

Field Value

DependencyProperty

Properties

HorizontalScrollingPreviewTemplate

Gets the horizontal scrolling preview template

public DataTemplate HorizontalScrollingPreviewTemplate { get; set; }

Property Value

DataTemplate

VerticalScrollingPreviewTemplate

Retrieves the vertical scrolling preview template

public DataTemplate VerticalScrollingPreviewTemplate { get; set; }

Property Value

DataTemplate

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.