menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Selector - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Selector

    Represents a class for defining the selection properties.

    Inheritance
    System.Object
    Selector
    DocumentTabControl
    SfCarousel
    SfTileView
    TabControlBase
    SfTabControl
    Namespace: Syncfusion.UI.Xaml.Primitives
    Assembly: Syncfusion.SfShared.UWP.dll
    Syntax
    public class Selector : ItemsControl

    Constructors

    Selector()

    Declaration
    public Selector()

    Fields

    SelectedIndexProperty

    Using a DependencyProperty as the backing store for SelectedIndex. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedIndexProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedItemProperty

    Using a DependencyProperty as the backing store for SelectedItem. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedItemProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    SelectedIndex

    Gets or sets the index for the selected item.

    Declaration
    public int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is -1

    SelectedItem

    Gets or sets the selected item.

    Declaration
    public object SelectedItem { get; set; }
    Property Value
    Type
    System.Object

    Methods

    OnApplyTemplate()

    Initializes the SelectedItem property.

    Declaration
    protected override void OnApplyTemplate()

    OnSelectedIndexChanged(DependencyPropertyChangedEventArgs)

    Called when the Selector SelectedIndex Property changed.

    Declaration
    protected void OnSelectedIndexChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args

    The DependencyPropertyChangedEventArgs instance containing the event data.

    OnSelectedItemChanged(DependencyPropertyChangedEventArgs)

    Called when the Selector SelectedItem Property changed.

    Declaration
    protected void OnSelectedItemChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args

    The DependencyPropertyChangedEventArgs instance containing the event data.

    OnSelectionChanged(DependencyPropertyChangedEventArgs)

    Called when the Selector SelectedItem Property changed.

    Declaration
    protected virtual void OnSelectionChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args

    The DependencyPropertyChangedEventArgs instance containing the event data.

    Events

    SelectionChanged

    Occurs when the selection has changed

    Declaration
    public event SelectionChangedEventHandler SelectionChanged
    Event Type
    Type
    Windows.UI.Xaml.Controls.SelectionChangedEventHandler

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved