Class LoopingSelector
LoopingSelector is a Windows.UI.Xaml.Controls.Control, that allow the user to select the items based the the Syncfusion.UI.Xaml.Controls.State. It is touch friendly and resembles the Windows phone looping selector.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public class LoopingSelector : Control, IDisposable
Constructors
LoopingSelector()
Initializes a new instance of the Syncfusion.UI.Xaml.Controls.LoopingSelector class.
Declaration
public LoopingSelector()
Fields
AccentBrushProperty
Using a DependencyProperty as the backing store for AccentBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AccentBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DataSourceProperty
Using a DependencyProperty as the backing store for DataSource. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DataSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsExpandedProperty
The IsExpanded DependencyProperty.
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemContainerStyleProperty
Using a DependencyProperty as the backing store for ItemContainerStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemHeightProperty
Using a DependencyProperty as the backing store for ItemHeight. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemMarginProperty
Using a DependencyProperty as the backing store for ItemMargin. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemMarginProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemTemplateProperty
Using a DependencyProperty as the backing store for ItemTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemTemplateSelectorProperty
Using a DependencyProperty as the backing store for ItemTemplateSelector. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemWidthProperty
Using a DependencyProperty as the backing store for ItemWidth. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedForegroundProperty
Using a DependencyProperty as the backing store for AccentBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AccentBrush
Gets or sets the background for the Syncfusion.UI.Xaml.Controls.LoopingSelector.
Declaration
public Brush AccentBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is null. |
DataSource
Gets or sets the data source that the control is displaying data for.
Declaration
public ILoopingSelectorDataSource DataSource { get; set; }
Property Value
Type | Description |
---|---|
ILoopingSelectorDataSource | The default value is null. |
IsExpanded
Gets or sets a value indicating whether this instance the looping selector is expanded .
Declaration
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the looping selector is open; otherwise, false. |
ItemContainerStyle
Gets or sets the style that is applied to the container element generated for each item.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The default value is null. |
ItemHeight
Gets or sets the height of the items.
Declaration
public double ItemHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
ItemMargin
Gets or sets margin around the items, to be a part of the touchable area.
Declaration
public Thickness ItemMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Thickness | The default value is null. |
See Also
ItemTemplate
Gets or sets the Windows.UI.Xaml.Controls.DataTemplate used to display each item.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | The default value is null. |
See Also
ItemTemplateSelector
Gets or sets the Template selector for the item
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
ItemWidth
Gets or sets the width of the items.
Declaration
public double ItemWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
SelectedForeground
Gets or sets the background for Syncfusion.UI.Xaml.Controls.Input.LoopingSelector.
Declaration
public Brush SelectedForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is null. |
See Also
State
Gets the state
Declaration
public State State { get; }
Property Value
Type |
---|
State |
Methods
Dispose()
Disposes the control while unloading
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the control while unloading
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.LoopingSelector control.
Declaration
public override void OnApplyTemplate()
OnManipulationCompleted(ManipulationCompletedEventArgs)
Declaration
protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationCompletedEventArgs | e |
OnManipulationDelta(ManipulationDeltaEventArgs)
Declaration
protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationDeltaEventArgs | e |
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)
Declaration
protected override void OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationInertiaStartingEventArgs | e |
OnManipulationStarted(ManipulationStartedEventArgs)
Declaration
protected override void OnManipulationStarted(ManipulationStartedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationStartedEventArgs | e |
OnManipulationStarting(ManipulationStartingEventArgs)
Declaration
protected override void OnManipulationStarting(ManipulationStartingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationStartingEventArgs | e |
UpdateItemTemplate()
Updates the template for the item
Declaration
public void UpdateItemTemplate()
Events
IsExpandedChanged
Occurs when the Syncfusion.UI.Xaml.Controls.LoopingSelector.IsExpanded is changed.
Declaration
public event DependencyPropertyChangedEventHandler IsExpandedChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |