Class LoopingSelectorItem
LoopingSelectorItem is a Windows.UI.Xaml.Controls.ContentControl. It is a selectable item inside the Syncfusion.UI.Xaml.Controls.LoopingSelector.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public class LoopingSelectorItem : ContentControl, IDisposable
Constructors
LoopingSelectorItem()
Initializes a new instance of the Syncfusion.UI.Xaml.Controls.LoopingSelectorItem class.
Declaration
public LoopingSelectorItem()
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 |
AlternativeBackgroundProperty
Using a DependencyProperty as the backing store for AlternativeBackground. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AlternativeBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AlternativeBorderBrushProperty
Using a DependencyProperty as the backing store for AlternativeBorderBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AlternativeBorderBrushProperty
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 |
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 brush that is applied as the background of the item.
Declaration
public Brush AccentBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
AlternativeBackground
Gets or sets the brush that is applied as the background.
Declaration
public Brush AlternativeBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
AlternativeBorderBrush
Gets or sets the brush that is applied as the Border.
Declaration
public Brush AlternativeBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
ItemTemplate
Gets or sets the ItemTemplate.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
ItemTemplateSelector
Gets or sets the ItemTemplateSelector.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
SelectedForeground
Gets or sets the brush that is applied as the background of the item.
Declaration
public Brush SelectedForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
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.LoopingSelectorItem control.
Declaration
public override void OnApplyTemplate()
OnManipulationCompleted(ManipulationCompletedEventArgs)
Declaration
protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationCompletedEventArgs | e |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e |
SetState(LoopingSelectorItem.State, Boolean)
Sets the state Syncfusion.UI.Xaml.Controls.LoopingSelectorItem.State
Declaration
public void SetState(LoopingSelectorItem.State newState, bool useTransitions)
Parameters
Type | Name | Description |
---|---|---|
LoopingSelectorItem.State | newState | new state |
System.Boolean | useTransitions | indicates need to use transitions or not |
Events
Click
The Click event. This is needed because there is no gesture for touch-down, pause longer than the Hold time, and touch-up. Tap will not be raise, and Hold is not adequate.
Declaration
public event EventHandler<EventArgs> Click
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |