ScrollToRequestEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for scroll-to-item requests in items views.
public ref class ScrollToRequestEventArgs : EventArgs
public class ScrollToRequestEventArgs : EventArgs
type ScrollToRequestEventArgs = class
inherit EventArgs
Public Class ScrollToRequestEventArgs
Inherits EventArgs
- Inheritance
-
ScrollToRequestEventArgs
Remarks
This event args class contains information needed to scroll to a specific item or position in CollectionView and related controls. It supports two modes: scrolling by index position or by item reference, as indicated by the Mode property.
Constructors
| Name | Description |
|---|---|
| ScrollToRequestEventArgs(Int32, Int32, ScrollToPosition, Boolean) |
Initializes a new instance of the ScrollToRequestEventArgs class for scrolling by position index. |
| ScrollToRequestEventArgs(Object, Object, ScrollToPosition, Boolean) |
Initializes a new instance of the ScrollToRequestEventArgs class for scrolling by item reference. |
Properties
| Name | Description |
|---|---|
| Group |
Gets the group object containing the item to scroll to. |
| GroupIndex |
Gets the zero-based index of the group containing the item to scroll to. |
| Index |
Gets the zero-based index of the item to scroll to. |
| IsAnimated |
Gets a value indicating whether the scrolling should be animated. |
| Item |
Gets the data item to scroll to. |
| Mode |
Gets the scroll mode indicating whether to scroll by position or by element reference. |
| ScrollToPosition |
Gets the position where the target item should be positioned within the visible area. |