Class ScrollingPreviewBehavior
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
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
Properties
HorizontalScrollingPreviewTemplate
Gets the horizontal scrolling preview template
public DataTemplate HorizontalScrollingPreviewTemplate { get; set; }
Property Value
VerticalScrollingPreviewTemplate
Retrieves the vertical scrolling preview template
public DataTemplate VerticalScrollingPreviewTemplate { 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.