Class
RadSelector

Represents a control that allows a user to select items from among its child elements.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class RadSelector : RadItemsControl

Inheritance: objectRadItemsControlRadSelector

Derived Classes: RadTabControlBase

Inherited Members RadItemsControl.PrepareContainerForItemOverride(DependencyObject, object)

Fields

IsSelectedProperty

Identifies the IsSelected attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

SelectedEvent

Identifies the Selected routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectedEvent

Field Value

RoutedEvent

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedIndexProperty

Field Value

DependencyProperty

SelectedItemProperty

Identifies the SelectedItem dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedItemProperty

Field Value

DependencyProperty

SelectedValuePathProperty

Identifies the SelectedValuePath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedValuePathProperty

Field Value

DependencyProperty

SelectedValueProperty

Identifies the SelectedValue dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedValueProperty

Field Value

DependencyProperty

SelectionChangedEvent

Identifies the SelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

UnselectedEvent

Identifies the Unselected routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent UnselectedEvent

Field Value

RoutedEvent

Properties

SelectedIndex

Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty. This is a dependency property.

Declaration

cs-api-definition
public int SelectedIndex { get; set; }

Property Value

int

SelectedItem

Gets or sets the first item in the current selection or returns null if the selection is empty. This is a dependency property.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

SelectedValue

Gets or sets ... This is a dependency property.

Declaration

cs-api-definition
public object SelectedValue { get; set; }

Property Value

object

SelectedValuePath

Gets or sets ... This is a dependency property.

Declaration

cs-api-definition
public string SelectedValuePath { get; set; }

Property Value

string

Methods

AddSelectedHandler(DependencyObject, RoutedEventHandler)

Adds a handler for the Selected attached event.

Declaration

cs-api-definition
public static void AddSelectedHandler(DependencyObject element, RoutedEventHandler handler)

Parameters

element

DependencyObject

Element that listens to this event.

handler

RoutedEventHandler

Event handler to add.

AddUnselectedHandler(DependencyObject, RoutedEventHandler)

Adds a handler for the Unselected attached event.

Declaration

cs-api-definition
public static void AddUnselectedHandler(DependencyObject element, RoutedEventHandler handler)

Parameters

element

DependencyObject

Element that listens to this event.

handler

RoutedEventHandler

Event handler to add.

GetIsSelected(DependencyObject)

Gets the value of the IsSelected attached property that indicates whether an item is selected.

Declaration

cs-api-definition
public static bool GetIsSelected(DependencyObject element)

Parameters

element

DependencyObject

Object to query concerning the IsSelected property.

Returns

bool

Boolean value, true if the IsSelected property is true.

OnItemsChanged(object)

Declaration

cs-api-definition
protected override void OnItemsChanged(object e)

Parameters

e

object

OnSelectedValueChanged(object, object)

Called when the SelectedValue property is changed.

Declaration

cs-api-definition
protected virtual void OnSelectedValueChanged(object oldValue, object newValue)

Parameters

oldValue

object

The old value of the SelectedValue property.

newValue

object

The new value of the SelectedValue property.

OnSelectedValuePathChanged(string, string)

Called when the SelectedValuePath property is changed.

Declaration

cs-api-definition
protected virtual void OnSelectedValuePathChanged(string oldValue, string newValue)

Parameters

oldValue

string

The old value of the SelectedValuePath property.

newValue

string

The new value of the SelectedValuePath property.

OnSelectionChanged(SelectionChangedEventArgs)

Called when the selection changes.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)

Parameters

e

SelectionChangedEventArgs

The event data.

RemoveSelectedHandler(DependencyObject, RoutedEventHandler)

Removes a handler for the Selected attached event.

Declaration

cs-api-definition
public static void RemoveSelectedHandler(DependencyObject element, RoutedEventHandler handler)

Parameters

element

DependencyObject

Element that listens to this event.

handler

RoutedEventHandler

Event handler to remove.

RemoveUnselectedHandler(DependencyObject, RoutedEventHandler)

Removes a handler for the Unselected attached event.

Declaration

cs-api-definition
public static void RemoveUnselectedHandler(DependencyObject element, RoutedEventHandler handler)

Parameters

element

DependencyObject

Element that listens to this event.

handler

RoutedEventHandler

Event handler to remove.

SetIsSelected(DependencyObject, bool)

Sets a property value that indicates whether an item in a Selector is selected.

Declaration

cs-api-definition
public static void SetIsSelected(DependencyObject element, bool isSelected)

Parameters

element

DependencyObject

Object on which to set the property.

isSelected

bool

Value to set.

Events

SelectionChanged

Occurs when the selection of a Selector changes.

Declaration

cs-api-definition
public event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler