Class LoopingSelector
LoopingSelector is a Windows.UI.Xaml.Controls.Control, that allow the user to select the items based the the State. It is touch friendly and resembles the Windows phone looping selector.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls
Assembly: Syncfusion.SfShared.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class LoopingSelector : Control, IDisposable
Constructors
LoopingSelector()
Initializes a new instance of the LoopingSelector class.
Declaration
[ClassReference(IsReviewed = false)]
public LoopingSelector()
Fields
_state
Represents a variable for the State
Declaration
public State _state
Field Value
Type |
---|
State |
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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.DependencyProperty |
IsExpandedProperty
The IsExpanded DependencyProperty.
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
Type |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
AccentBrush
Gets or sets the background for the LoopingSelector.
Declaration
[ClassReference(IsReviewed = false)]
public Brush AccentBrush { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The default value is null. |
DataSource
Gets or sets the data source that the control is displaying data for.
Declaration
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
public Style ItemContainerStyle { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Style | The default value is null. |
ItemHeight
Gets or sets the height of the items.
Declaration
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
public Thickness ItemMargin { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Thickness | The default value is null. |
See Also
ItemTemplate
Gets or sets the Windows.UI.Xaml.Controls.DataTemplate used to display each item.
Declaration
[ClassReference(IsReviewed = false)]
public DataTemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.Controls.DataTemplateSelector |
ItemWidth
Gets or sets the width of the items.
Declaration
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
public Brush SelectedForeground { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.Brush | The default value is null. |
See Also
State
Declaration
[ClassReference(IsReviewed = false)]
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 LoopingSelector control.
Declaration
protected override void OnApplyTemplate()
UpdateItemTemplate()
Updates the template for the item
Declaration
public void UpdateItemTemplate()
Events
IsExpandedChanged
Occurs when the IsExpanded is changed.
Declaration
[ClassReference(IsReviewed = false)]
public event DependencyPropertyChangedEventHandler IsExpandedChanged
Event Type
Type |
---|
Windows.UI.Xaml.DependencyPropertyChangedEventHandler |