Class HeaderedSelector
Represents a control that contains multiple selectable items and has a header.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.MediaPlayer.dll
Syntax
public class HeaderedSelector : HeaderedItemsControl
Fields
IsSelectedProperty
Identifies the IsSelected attached property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
RoutedEvent
|
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
System.Windows.DependencyProperty
|
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
System.Windows.DependencyProperty
|
SelectedValuePathProperty
Identifies the SelectedValuePath dependency property.
Declaration
public static readonly DependencyProperty SelectedValuePathProperty
Field Value
System.Windows.DependencyProperty
|
SelectedValueProperty
Identifies the SelectedValue dependency property.
Declaration
public static readonly DependencyProperty SelectedValueProperty
Field Value
System.Windows.DependencyProperty
|
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
RoutedEvent
|
UnselectedEvent
Identifies the Unselected routed event.
Declaration
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
[SRCategory("Appearance")]
public int SelectedIndex { get; set; }
Property Value
System.Int32
|
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
[SRCategory("Appearance")]
public object SelectedItem { get; set; }
Property Value
System.Object
|
SelectedValue
Gets or sets ... This is a dependency property.
Declaration
public object SelectedValue { get; set; }
Property Value
System.Object
|
SelectedValuePath
Gets or sets ... This is a dependency property.
Declaration
public string SelectedValuePath { get; set; }
Property Value
System.String
|
Methods
add_SelectionChanged(SelectionChangedEventHandler)
Declaration
public void add_SelectionChanged(SelectionChangedEventHandler value)
Parameters
SelectionChangedEventHandler
value
|
AddSelectedHandler(DependencyObject, RoutedEventHandler)
Adds a handler for the Selected attached event.
Declaration
public static void AddSelectedHandler(DependencyObject element, RoutedEventHandler handler)
Parameters
System.Windows.DependencyObject
element
Element that listens to this event. |
System.Windows.RoutedEventHandler
handler
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
System.Windows.DependencyObject
element
Element that listens to this event. |
System.Windows.RoutedEventHandler
handler
Event handler to add. |
ClearContainerForItemOverride(DependencyObject, Object)
Clear selector containers.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
|
System.Object
item
|
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
System.Windows.DependencyObject
element
Object to query concerning the IsSelected property. |
Returns
System.Boolean
Boolean value, true if the IsSelected property is true. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Invoked when the System.Windows.Controls.ItemsControl.Items property changes.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
Information about the change. |
Overrides
OnSelectedValueChanged(Object, Object)
Called when the SelectedValue property is changed.
Declaration
protected virtual void OnSelectedValueChanged(object oldValue, object newValue)
Parameters
System.Object
oldValue
The old value of the SelectedValue property. |
System.Object
newValue
The new value of the SelectedValue property. |
OnSelectedValuePathChanged(String, String)
Called when the SelectedValuePath property is changed.
Declaration
protected virtual void OnSelectedValuePathChanged(string oldValue, string newValue)
Parameters
System.String
oldValue
The old value of the SelectedValuePath property. |
System.String
newValue
The new value of the SelectedValuePath property. |
OnSelectionChanged(SelectionChangedEventArgs)
Called when the selection changes.
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
System.Windows.Controls.SelectionChangedEventArgs
e
The event data. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the selector containers.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
|
System.Object
item
|
Overrides
remove_SelectionChanged(SelectionChangedEventHandler)
Declaration
public void remove_SelectionChanged(SelectionChangedEventHandler value)
Parameters
SelectionChangedEventHandler
value
|
RemoveSelectedHandler(DependencyObject, RoutedEventHandler)
Removes a handler for the Selected attached event.
Declaration
public static void RemoveSelectedHandler(DependencyObject element, RoutedEventHandler handler)
Parameters
System.Windows.DependencyObject
element
Element that listens to this event. |
System.Windows.RoutedEventHandler
handler
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
System.Windows.DependencyObject
element
Element that listens to this event. |
System.Windows.RoutedEventHandler
handler
Event handler to remove. |
SetIsSelected(DependencyObject, Boolean)
Sets a property value that indicates whether an item in a HeaderedSelector is selected.
Declaration
public static void SetIsSelected(DependencyObject element, bool isSelected)
Parameters
System.Windows.DependencyObject
element
Object on which to set the property. |
System.Boolean
isSelected
Value to set. |
Events
SelectionChanged
Occurs when the selection of a HeaderedSelector changes.
Declaration
[SRCategory("Behavior")]
public event SelectionChangedEventHandler SelectionChanged
Event Type
SelectionChangedEventHandler
|