ScrollBehavior ClassDW.WPFToolkit Documentation
Brings the feature to modify the scroll position of an items control.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityScrollBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class ScrollBehavior : DependencyObject

The ScrollBehavior type exposes the following members.

Constructors

  NameDescription
Public methodScrollBehavior
Initializes a new instance of the ScrollBehavior class
Top
Methods

  NameDescription
Public methodStatic memberGetAutoScrollToLast
Gets a value that indicates if a list automaticaly have to scroll to the last item if the item collection changes.
Public methodStatic memberGetAutoScrollToSelected
Gets a value that indicates if a list automaticaly have to scroll to the selected item if the selection has been changed.
Public methodStatic memberGetScrollToItem
Gets the item to which it has to scroll in a list.
Public methodStatic memberSetAutoScrollToLast
Attaches a value that indicates if a list automaticaly have to scroll to the last item if the item collection changes.
Public methodStatic memberSetAutoScrollToSelected
Attaches a value that indicates if a list automaticaly have to scroll to the selected item if the selection has been changed.
Public methodStatic memberSetScrollToItem
Attaches the item to which it has to scroll in a list.
Top
Fields

  NameDescription
Public fieldStatic memberAutoScrollToLastProperty
Public fieldStatic memberAutoScrollToSelectedProperty
Public fieldStatic memberScrollToItemProperty
Top
Attached Properties

  NameDescription
Public attached propertyAutoScrollToLast
Public attached propertyAutoScrollToSelected
Public attached propertyScrollToItem
Top
Examples

XAML
<ListBox ItemsSource="{Binding LogEntries}"
         Interactivity:ScrollBehavior.AutoScrollToLast="True" />

<ListBox ItemsSource="{Binding LogEntries}"
         Interactivity:ScrollBehavior.ScrollToItem="{Binding ImportantEntry}" />
See Also

Reference