ClassRadSelector
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:
public abstract class RadSelector : RadItemsControl
Inheritance: objectRadItemsControlRadSelector
Derived Classes:
Inherited Members
Fields
IsSelectedProperty
Identifies the IsSelected attached property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SelectedValuePathProperty
Identifies the SelectedValuePath dependency property.
Declaration
public static readonly DependencyProperty SelectedValuePathProperty
Field Value
DependencyProperty
SelectedValueProperty
Identifies the SelectedValue dependency property.
Declaration
public static readonly DependencyProperty SelectedValueProperty
Field Value
DependencyProperty
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
UnselectedEvent
Identifies the Unselected routed event.
Declaration
public static readonly RoutedEvent UnselectedEvent
Field Value
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.
SelectedItem
Gets or sets the first item in the current selection or returns null if the selection is empty. This is a dependency property.
SelectedValue
Gets or sets ... This is a dependency property.
SelectedValuePath
Gets or sets ... This is a dependency property.
Methods
AddSelectedHandler(DependencyObject, RoutedEventHandler)
Adds a handler for the Selected attached event.
Declaration
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
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
public static bool GetIsSelected(DependencyObject element)
Parameters
element
DependencyObject
Object to query concerning the IsSelected property.
Returns
Boolean value, true if the IsSelected property is true.
OnSelectedValueChanged(object, object)
Called when the SelectedValue property is changed.
OnSelectedValuePathChanged(string, string)
Called when the SelectedValuePath property is changed.
OnSelectionChanged(SelectionChangedEventArgs)
Called when the selection changes.
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The event data.
RemoveSelectedHandler(DependencyObject, RoutedEventHandler)
Removes a handler for the Selected attached event.
Declaration
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
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
public static void SetIsSelected(DependencyObject element, bool isSelected)
Parameters
element
DependencyObject
Object on which to set the property.
isSelected
Value to set.
Events
SelectionChanged
Occurs when the selection of a Selector changes.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Value