Class Selector
Represents a control that allows a user to select an item from a collection
of items.
Inheritance
System.Object
Selector
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
public class Selector : ItemsControl
Constructors
|
Improve this Doc
View Source
Selector()
Declaration
Fields
|
Improve this Doc
View Source
IsSynchronizedWithCurrentItemProperty
Declaration
public static readonly DependencyProperty IsSynchronizedWithCurrentItemProperty
Field Value
|
Improve this Doc
View Source
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
|
Improve this Doc
View Source
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
|
Improve this Doc
View Source
SelectedValuePathProperty
Identifies the SelectedValuePath dependency property.
Declaration
public static readonly DependencyProperty SelectedValuePathProperty
Field Value
|
Improve this Doc
View Source
SelectedValueProperty
Identifies the SelectedValue dependency property.
Declaration
public static readonly DependencyProperty SelectedValueProperty
Field Value
Properties
|
Improve this Doc
View Source
HasItems
Gets whether the Selector contains items.
Declaration
protected bool HasItems { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSynchronizedWithCurrentItem
Gets or sets a value that indicates whether the Selector should keep
the SelectedItem synchronized with the current item in the
Items property.
Declaration
public bool? IsSynchronizedWithCurrentItem { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
true if the SelectedItem is always synchronized with the current item;
false if the SelectedItem is never synchronized with the current item;
null if the SelectedItem is synchronized with the current item only if
the Selector uses a ICollectionView.
The default is null.
|
Exceptions
|
Improve this Doc
View Source
SelectedIndex
Gets or sets the index of the selected item.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SelectedItem
Gets or sets the selected item.
Declaration
public object SelectedItem { get; set; }
Property Value
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
SelectedValue
Gets or sets the value of the selected item, obtained by using the SelectedValuePath.
Declaration
public object SelectedValue { get; set; }
Property Value
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
SelectedValuePath
Gets or sets the property path that is used to get the SelectedValue property
of the SelectedItem property.
Declaration
public string SelectedValuePath { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
ClearContainerForItemOverride(DependencyObject, Object)
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
Overrides
|
Improve this Doc
View Source
OnItemsChanged(NotifyCollectionChangedEventArgs)
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventArgs |
e |
|
Overrides
|
Improve this Doc
View Source
OnItemsSourceChanged(IEnumerable, IEnumerable)
Declaration
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
oldValue |
|
System.Collections.IEnumerable |
newValue |
|
Overrides
|
Improve this Doc
View Source
OnSelectionChanged(SelectionChangedEventArgs)
Raises the SelectionChanged event
Declaration
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
|
Improve this Doc
View Source
PrepareContainerForItemOverride(DependencyObject, Object)
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Overrides
Events
|
Improve this Doc
View Source
SelectionChanged
Occurs when the selection is changed.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Type
Extension Methods