5 types derived from Selector
PresentationFramework (4)
System\Windows\Controls\ComboBox.cs (1)
30public class ComboBox : Selector
System\Windows\Controls\ListBox.cs (1)
25public class ListBox : Selector
System\Windows\Controls\Primitives\MultiSelector.cs (1)
15public abstract class MultiSelector : Selector
System\Windows\Controls\TabControl.cs (1)
29public class TabControl : Selector
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
51public class Ribbon : Selector
104 references to Selector
PresentationFramework (99)
MS\Internal\Data\ClrBindingWorker.cs (1)
64targetDP == System.Windows.Controls.Primitives.Selector.SelectedValueProperty ||
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (7)
15protected SelectorAutomationPeer(Selector owner): base(owner) 85Selector owner = (Selector)Owner; 111Selector owner = (Selector)Owner; 140Selector owner = (Selector)Owner;
System\Windows\Automation\Peers\SelectorItemAutomationPeer.cs (8)
38Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner); 56Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner); 78Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner); 94Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner);
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (2)
98Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner);
System\Windows\Controls\DataGridRow.cs (3)
1071public static readonly DependencyProperty IsSelectedProperty = Selector.IsSelectedProperty.AddOwner( 1131public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(DataGridRow)); 1161public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(DataGridRow));
System\Windows\Controls\DeferredSelectedIndexReference.cs (2)
26internal DeferredSelectedIndexReference(Selector selector) 64private readonly Selector _selector;
System\Windows\Controls\ListBox.cs (1)
192public static readonly DependencyProperty SelectedItemsProperty = Selector.SelectedItemsImplProperty;
System\Windows\Controls\ListBoxItem.cs (11)
51Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 69Selector.IsSelectedProperty.AddOwner(typeof(ListBoxItem), 89Selector parentSelector = listItem.ParentSelector; 97listItem.OnSelected(new RoutedEventArgs(Selector.SelectedEvent, listItem)); 101listItem.OnUnselected(new RoutedEventArgs(Selector.UnselectedEvent, listItem)); 137public static readonly RoutedEvent SelectedEvent = Selector.SelectedEvent.AddOwner(typeof(ListBoxItem)); 157public static readonly RoutedEvent UnselectedEvent = Selector.UnselectedEvent.AddOwner(typeof(ListBoxItem)); 206if (Selector.GetIsSelectionActive(this)) 273if (Selector.UiGetIsSelectable(this) && Focus()) 375internal Selector ParentSelector 379return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (1)
1003Selector.IsSelectedProperty.AddOwner(
System\Windows\Controls\Primitives\Selector.cs (41)
59EventManager.RegisterClassHandler(typeof(Selector), Selector.SelectedEvent, new RoutedEventHandler(Selector.OnSelected)); 60EventManager.RegisterClassHandler(typeof(Selector), Selector.UnselectedEvent, new RoutedEventHandler(Selector.OnUnselected)); 77"SelectionChanged", RoutingStrategy.Bubble, typeof(SelectionChangedEventHandler), typeof(Selector)); 94"Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(Selector)); 123"Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(Selector)); 168typeof(Selector), 196typeof(Selector), 238typeof(Selector), 257Selector s = (Selector)d; 311typeof(Selector), 332Selector s = (Selector) d; 349Selector s = (Selector) d; 367typeof(Selector), 386Selector s = (Selector) d; 396Selector s = (Selector) d; 420typeof(Selector), 459Selector s = (Selector)d; 647Selector s = (Selector)d; 680typeof(Selector), 698Selector s = (Selector)d; 778typeof(Selector), 1788return (bool)container.GetValue(Selector.IsSelectedProperty); 1799return (bool)element.GetValue(Selector.IsSelectedProperty); 1817container.SetCurrentValueInternal(Selector.IsSelectedProperty, BooleanBoxes.Box(value)); 1833element.SetCurrentValueInternal(Selector.IsSelectedProperty, BooleanBoxes.Box(value)); 1887((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1892((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 2250internal SelectionChanger(Selector s) 2655private Selector _owner;
System\Windows\Controls\Primitives\TabPanel.cs (1)
327bool isActiveTab = (bool)child.GetValue(Selector.IsSelectedProperty);
System\Windows\Controls\SelectedItemCollection.cs (2)
25public SelectedItemCollection(Selector selector) 250private Selector _selector;
System\Windows\Controls\SelectionChangedEventArgs.cs (1)
50RoutedEvent = Selector.SelectionChangedEvent;
System\Windows\Controls\TabItem.cs (3)
73Selector.IsSelectedProperty.AddOwner(typeof(TabItem), 102tabItem.OnSelected(new RoutedEventArgs(Selector.SelectedEvent, tabItem)); 106tabItem.OnUnselected(new RoutedEventArgs(Selector.UnselectedEvent, tabItem));
System\Windows\Controls\TreeView.cs (3)
771if ((bool)GetValue(Selector.IsSelectionActiveProperty) != isSelectionActive) 774SetValue(Selector.IsSelectionActivePropertyKey, BooleanBoxes.Box(isSelectionActive)); 804ClearValue(Selector.IsSelectionActivePropertyKey);
System\Windows\Controls\TreeViewItem.cs (2)
41Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 181public static readonly DependencyProperty IsSelectionActiveProperty = Selector.IsSelectionActiveProperty.AddOwner(typeof(TreeViewItem));
System\Windows\Data\BindingExpression.cs (1)
2218if (TargetProperty.OwnerType != typeof(System.Windows.Controls.Primitives.Selector) && // SelectedItem, SelectedValue, SelectedIndex, etc.
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
647case 553: t = () => typeof(Selector); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
5980Type type = typeof(System.Windows.Controls.Primitives.Selector); 5982this.GetXamlType(typeof(System.Windows.Controls.Primitives.Selector)), // DeclaringType 5989GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.Selector)target).Items; }, 8694Type type = typeof(System.Windows.Controls.Primitives.Selector); 8695DependencyProperty dp = System.Windows.Controls.Primitives.Selector.IsSelectedProperty; 8697this.GetXamlType(typeof(System.Windows.Controls.Primitives.Selector)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9732typeof(System.Windows.Controls.Primitives.Selector),
System\Windows\Markup\KnownTypes.cs (1)
6101case KnownElements.Selector: t = typeof(System.Windows.Controls.Primitives.Selector); break;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Automation\Peers\RibbonTabDataAutomationPeer.cs (2)
159Selector parentSelector = (Selector)(ItemsControlAutomationPeer.Owner);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
109Selector.IsSelectedProperty.AddOwner(typeof(RibbonTab), 714ribbonTab.OnSelected(new RoutedEventArgs(Selector.SelectedEvent, ribbonTab)); 718ribbonTab.OnUnselected(new RoutedEventArgs(Selector.UnselectedEvent, ribbonTab));