Class SelectorService
An attached behavior that enhances the functionality of a Selector for example by enabling infinite scrolling (carousel) or item selection on scroll.
Inherited Members
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Wpf.dll
Syntax
public class SelectorService : DependencyObject
Fields
| Improve this Doc View SourceIsInfiniteScrollEnabledProperty
Enable carousel mode for a Selector.
Declaration
public static readonly DependencyProperty IsInfiniteScrollEnabledProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsSelectOnScrollEnabledProperty
Enable select on scroll behavior for a Selector.
Declaration
public static readonly DependencyProperty IsSelectOnScrollEnabledProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Methods
| Improve this Doc View SourceGetIsInfiniteScrollEnabled(DependencyObject)
The get method for the attached property IsInfiniteScrollEnabledProperty.
Declaration
public static bool GetIsInfiniteScrollEnabled(DependencyObject attachingElement)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | attachingElement | The attaching element. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the behavior is enabled or false if it is disabled. |
GetIsSelectOnScrollEnabled(DependencyObject)
The get method for the attached property IsSelectOnScrollEnabledProperty.
Declaration
public static bool GetIsSelectOnScrollEnabled(DependencyObject attachingElement)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | attachingElement | The attaching element. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the behavior is enabled or false if it is disabled. |
SetIsInfiniteScrollEnabled(DependencyObject, Boolean)
The set method for the attached property IsInfiniteScrollEnabledProperty.
Declaration
public static void SetIsInfiniteScrollEnabled(DependencyObject attachingElement, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | attachingElement | The attaching element. |
| Boolean | value | true to enable the behavior or false to disable it. |
SetIsSelectOnScrollEnabled(DependencyObject, Boolean)
The set method for the attached property IsSelectOnScrollEnabledProperty.
Declaration
public static void SetIsSelectOnScrollEnabled(DependencyObject attachingElement, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | attachingElement | The attaching element. |
| Boolean | value | true to enable the behavior or false to disable it. |