2 types derived from ComboBox
PresentationFramework (1)
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
27internal class TextBlockComboBox : ComboBox
PresentationUI (1)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
19internal sealed class ZoomComboBox : ComboBox
3 instantiations of ComboBox
PresentationFramework (3)
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
501ComboBox comboBox = new ComboBox();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2918DefaultConstructor = delegate () { return new System.Windows.Controls.ComboBox(); },
System\Windows\Markup\KnownTypes.cs (1)
1169case KnownElements.ComboBox: o = new System.Windows.Controls.ComboBox(); break;
135 references to ComboBox
PresentationFramework (130)
MS\Internal\Helper.cs (2)
435System.Windows.Controls.ComboBox cb = element as System.Windows.Controls.ComboBox;
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (23)
15public ComboBoxAutomationPeer(ComboBox owner): base(owner) 41ComboBox owner = (ComboBox)Owner; 69ComboBox owner = (ComboBox)Owner; 89ComboBox owner = (ComboBox)Owner; 119ComboBox owner = (ComboBox)Owner; 144ComboBox owner = (ComboBox)Owner; 149owner.SetCurrentValueInternal(ComboBox.TextProperty, val); 157return ((ComboBox)(((ComboBoxAutomationPeer)this).Owner)).Text; 168ComboBox owner = (ComboBox)Owner; 195ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; 196owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); 209ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; 210owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.FalseBox); 219ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner;
System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (2)
43ComboBox parent = ItemsControlAutomationPeer.Owner as ComboBox;
System\Windows\Controls\ComboBox.cs (60)
35KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 36KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 37KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 40ToolTipService.IsEnabledProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceToolTipIsEnabled))); 42DefaultStyleKeyProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(typeof(ComboBox))); 43_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ComboBox)); 45IsTextSearchEnabledProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 47EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 48EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); // call us even if the transparent button in the style gets the click. 49EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 50EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(OnPreviewMouseButtonDown)); 51EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseWheelEvent, new MouseWheelEventHandler(OnMouseWheel), true); // call us even if textbox in the style gets the click. 52EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 55EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 56EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true); 58IsEnabledProperty.OverrideMetadata(typeof(ComboBox), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 59IsMouseOverPropertyKey.OverrideMetadata(typeof(ComboBox), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 60IsSelectionActivePropertyKey.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 82= DependencyProperty.Register("MaxDropDownHeight", typeof(double), typeof(ComboBox), 109typeof(ComboBox), 135typeof(ComboBox), 153ComboBox cb = (ComboBox) d; 166ComboBox cb = (ComboBox) d; 206ComboBox comboBox = (ComboBox)d; 232ComboBox cb = (ComboBox)arg; 255ComboBox cb = (ComboBox)arg; 318typeof(ComboBox), 336ComboBox cb = d as ComboBox; 349typeof(ComboBox), 370TextBox.IsReadOnlyProperty.AddOwner(typeof(ComboBox)); 382DependencyProperty.RegisterReadOnly("SelectionBoxItem", typeof(object), typeof(ComboBox), 404DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(ComboBox), 422DependencyProperty.RegisterReadOnly("SelectionBoxItemStringFormat", typeof(String), typeof(ComboBox), 443= DependencyProperty.Register("StaysOpenOnEdit", typeof(bool), typeof(ComboBox), 465DependencyProperty.RegisterReadOnly("IsSelectionBoxHighlighted", typeof(bool), typeof(ComboBox), 485ComboBox comboBox = (ComboBox)o; 607ComboBox cb = (ComboBox)d; 1050ComboBox comboBox = (ComboBox)sender; 1135ComboBox comboBox = (ComboBox)sender; 1174((ComboBox)sender).IsContextMenuOpen = true; 1179((ComboBox)sender).IsContextMenuOpen = false; 1653ComboBox comboBox = (ComboBox)sender; 1690ComboBox comboBox = (ComboBox)sender; 1713ComboBox comboBox = (ComboBox)sender; 1764ComboBox comboBox = (ComboBox)sender;
System\Windows\Controls\ComboBoxItem.cs (7)
97ComboBox parent = ParentComboBox; 112ComboBox parent = ParentComboBox; 127ComboBox parent = ParentComboBox; 154ComboBox parent; 174ComboBox parent = ParentComboBox; 191private ComboBox ParentComboBox 195return ParentSelector as ComboBox;
System\Windows\Controls\DataGridComboBoxColumn.cs (28)
223Style style = new Style(typeof(ComboBox)); 226style.Setters.Add(new Setter(ComboBox.IsSynchronizedWithCurrentItemProperty, false)); 368ComboBox.ItemsSourceProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(null, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 385ComboBox.DisplayMemberPathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 400ComboBox.SelectedValuePathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 418ComboBox comboBox = cell.Content as ComboBox; 422ApplyBinding(SelectedItemBinding, comboBox, ComboBox.SelectedItemProperty); 425ApplyBinding(SelectedValueBinding, comboBox, ComboBox.SelectedValueProperty); 428ApplyBinding(TextBinding, comboBox, ComboBox.TextProperty); 431DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 434DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 437DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 461private object GetComboBoxSelectionValue(ComboBox comboBox) 501ComboBox comboBox = new ComboBox(); 511private void ApplyColumnProperties(ComboBox comboBox) 513ApplyBinding(SelectedItemBinding, comboBox, ComboBox.SelectedItemProperty); 514ApplyBinding(SelectedValueBinding, comboBox, ComboBox.SelectedValueProperty); 515ApplyBinding(TextBinding, comboBox, ComboBox.TextProperty); 517DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 518DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 519DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 534ComboBox comboBox = editingElement as ComboBox; 559ComboBox cb = editingElement as ComboBox; 576ComboBox cb = editingElement as ComboBox;
System\Windows\Controls\ToolBar.cs (1)
472else if (feType == typeof(ComboBox))
System\Windows\Data\BindingExpression.cs (1)
2213TargetProperty != ComboBox.TextProperty // ComboBox.Text
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
185case 92: t = () => typeof(ComboBox); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4536Type type = typeof(System.Windows.Controls.ComboBox); 4538this.GetXamlType(typeof(System.Windows.Controls.ComboBox)), // DeclaringType 4545GetDelegate = delegate (object target) { return ((System.Windows.Controls.ComboBox)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2915typeof(System.Windows.Controls.ComboBox),
System\Windows\Markup\KnownTypes.cs (1)
5639case KnownElements.ComboBox: t = typeof(System.Windows.Controls.ComboBox); break;
PresentationUI (1)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
497AddHandler(ComboBox.MouseLeftButtonUpEvent, new RoutedEventHandler(OnMouseLeftButtonUp), true);
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
75ComboBox.IsEditableProperty.AddOwner(typeof(RibbonComboBox), 99ComboBox.TextProperty.AddOwner(typeof(RibbonComboBox), 317= ComboBox.StaysOpenOnEditProperty.AddOwner(typeof(RibbonComboBox),
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
427ComboBox.IsDropDownOpenProperty.AddOwner(typeof(RibbonMenuButton),