4 types derived from ComboBox
PresentationFramework (1)
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
33internal class TextBlockComboBox : ComboBox
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\AutomatedComboBox.cs (1)
17internal class AutomatedComboBox : ComboBox
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (1)
16partial class FlagEditor : ComboBox
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1532sealed class ScopeComboBox : ComboBox
3 instantiations of ComboBox
PresentationFramework (3)
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
508ComboBox comboBox = new ComboBox();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2776bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ComboBox(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1177case KnownElements.ComboBox: o = new System.Windows.Controls.ComboBox(); break;
151 references to ComboBox
PresentationFramework (130)
src\Framework\MS\Internal\Helper.cs (2)
454System.Windows.Controls.ComboBox cb = element as System.Windows.Controls.ComboBox;
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (23)
25public ComboBoxAutomationPeer(ComboBox owner): base(owner) 54ComboBox owner = (ComboBox)Owner; 75ComboBox owner = (ComboBox)Owner; 95ComboBox owner = (ComboBox)Owner; 126ComboBox owner = (ComboBox)Owner; 152ComboBox owner = (ComboBox)Owner; 157owner.SetCurrentValueInternal(ComboBox.TextProperty, val); 165return ((ComboBox)(((ComboBoxAutomationPeer)this).Owner)).Text; 176ComboBox owner = (ComboBox)Owner; 203ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; 204owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.TrueBox); 217ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner; 218owner.SetCurrentValueInternal(ComboBox.IsDropDownOpenProperty, MS.Internal.KnownBoxes.BooleanBoxes.FalseBox); 227ComboBox owner = (ComboBox)((ComboBoxAutomationPeer)this).Owner;
src\Framework\System\Windows\Automation\Peers\ListBoxItemAutomationPeer.cs (2)
55ComboBox parent = ItemsControlAutomationPeer.Owner as ComboBox;
src\Framework\System\Windows\Controls\ComboBox.cs (60)
47KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 48KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 49KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 52ToolTipService.IsEnabledProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceToolTipIsEnabled))); 54DefaultStyleKeyProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(typeof(ComboBox))); 55_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ComboBox)); 57IsTextSearchEnabledProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 59EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 60EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); // call us even if the transparent button in the style gets the click. 61EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 62EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(OnPreviewMouseButtonDown)); 63EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseWheelEvent, new MouseWheelEventHandler(OnMouseWheel), true); // call us even if textbox in the style gets the click. 64EventManager.RegisterClassHandler(typeof(ComboBox), UIElement.GotFocusEvent, new RoutedEventHandler(OnGotFocus)); // call us even if textbox in the style get focus 67EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpen), true); 68EventManager.RegisterClassHandler(typeof(ComboBox), ContextMenuService.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClose), true); 70IsEnabledProperty.OverrideMetadata(typeof(ComboBox), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 71IsMouseOverPropertyKey.OverrideMetadata(typeof(ComboBox), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 72IsSelectionActivePropertyKey.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 94= DependencyProperty.Register("MaxDropDownHeight", typeof(double), typeof(ComboBox), 121typeof(ComboBox), 147typeof(ComboBox), 165ComboBox cb = (ComboBox) d; 178ComboBox cb = (ComboBox) d; 218ComboBox comboBox = (ComboBox)d; 247ComboBox cb = (ComboBox)arg; 273ComboBox cb = (ComboBox)arg; 336typeof(ComboBox), 354ComboBox cb = d as ComboBox; 367typeof(ComboBox), 388TextBox.IsReadOnlyProperty.AddOwner(typeof(ComboBox)); 400DependencyProperty.RegisterReadOnly("SelectionBoxItem", typeof(object), typeof(ComboBox), 422DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(ComboBox), 440DependencyProperty.RegisterReadOnly("SelectionBoxItemStringFormat", typeof(String), typeof(ComboBox), 461= DependencyProperty.Register("StaysOpenOnEdit", typeof(bool), typeof(ComboBox), 483DependencyProperty.RegisterReadOnly("IsSelectionBoxHighlighted", typeof(bool), typeof(ComboBox), 503ComboBox comboBox = (ComboBox)o; 626ComboBox cb = (ComboBox)d; 1073ComboBox comboBox = (ComboBox)sender; 1158ComboBox comboBox = (ComboBox)sender; 1197((ComboBox)sender).IsContextMenuOpen = true; 1202((ComboBox)sender).IsContextMenuOpen = false; 1684ComboBox comboBox = (ComboBox)sender; 1721ComboBox comboBox = (ComboBox)sender; 1744ComboBox comboBox = (ComboBox)sender; 1795ComboBox comboBox = (ComboBox)sender;
src\Framework\System\Windows\Controls\ComboBoxItem.cs (7)
111ComboBox parent = ParentComboBox; 129ComboBox parent = ParentComboBox; 147ComboBox parent = ParentComboBox; 178ComboBox parent; 198ComboBox parent = ParentComboBox; 218private ComboBox ParentComboBox 222return ParentSelector as ComboBox;
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (28)
229Style style = new Style(typeof(ComboBox)); 232style.Setters.Add(new Setter(ComboBox.IsSynchronizedWithCurrentItemProperty, false)); 374ComboBox.ItemsSourceProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(null, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 391ComboBox.DisplayMemberPathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 406ComboBox.SelectedValuePathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 425ComboBox comboBox = cell.Content as ComboBox; 429ApplyBinding(SelectedItemBinding, comboBox, ComboBox.SelectedItemProperty); 432ApplyBinding(SelectedValueBinding, comboBox, ComboBox.SelectedValueProperty); 435ApplyBinding(TextBinding, comboBox, ComboBox.TextProperty); 438DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 441DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 444DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 468private object GetComboBoxSelectionValue(ComboBox comboBox) 508ComboBox comboBox = new ComboBox(); 518private void ApplyColumnProperties(ComboBox comboBox) 520ApplyBinding(SelectedItemBinding, comboBox, ComboBox.SelectedItemProperty); 521ApplyBinding(SelectedValueBinding, comboBox, ComboBox.SelectedValueProperty); 522ApplyBinding(TextBinding, comboBox, ComboBox.TextProperty); 524DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.SelectedValuePathProperty, SelectedValuePathProperty); 525DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.DisplayMemberPathProperty, DisplayMemberPathProperty); 526DataGridHelper.SyncColumnProperty(this, comboBox, ComboBox.ItemsSourceProperty, ItemsSourceProperty); 541ComboBox comboBox = editingElement as ComboBox; 566ComboBox cb = editingElement as ComboBox; 583ComboBox cb = editingElement as ComboBox;
src\Framework\System\Windows\Controls\ToolBar.cs (1)
498else if (feType == typeof(ComboBox))
src\Framework\System\Windows\Data\BindingExpression.cs (1)
2242TargetProperty != ComboBox.TextProperty // ComboBox.Text
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
184case 92: t = () => typeof(ComboBox); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
4276Type type = typeof(System.Windows.Controls.ComboBox); 4278this.GetXamlType(typeof(System.Windows.Controls.ComboBox)), // DeclaringType 4284bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ComboBox)target).Items; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2774typeof(System.Windows.Controls.ComboBox),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5636case KnownElements.ComboBox: t = typeof(System.Windows.Controls.ComboBox); break;
System.Activities.Core.Presentation (8)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (6)
230if (ComboBoxHelper.ShouldFilterUnnecessaryComboBoxEvent(sender as ComboBox)) 270ComboBox comboBox = box as ComboBox; 354else if (sender is ComboBox) 356BindingExpression binding = ((ComboBox)sender).GetBindingExpression(ComboBox.TextProperty);
System\Activities\Core\Presentation\ComboBoxHelper.cs (2)
11public static bool ShouldFilterUnnecessaryComboBoxEvent(ComboBox comboBox) 16public static void SynchronizeComboBoxSelection(ComboBox comboBox, string value)
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (2)
36BindingExpression binding = this.GetBindingExpression(ComboBox.TextProperty); 45BindingExpression binding = this.GetBindingExpression(ComboBox.TextProperty);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (6)
450ComboBox comboBox = this.Template.FindName("PART_Combo", this) as ComboBox; 790ComboBox comboBox = this.Template.FindName("_comboChoiceEditor", this) as ComboBox; 823ComboBox comboBox = this.Template.FindName("_comboChoiceEditor", this) as ComboBox;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (3)
1489internal ZoomToTicksConverter(DesignerView designer, Slider zoomSlider, ComboBox zoomPicker) 1517zoomPicker.SetBinding(ComboBox.SelectedItemProperty, new Binding() 1524zoomPicker.SetBinding(ComboBox.TextProperty, new Binding()
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
172this.typeComboBox.SetBinding(ComboBox.SelectedItemProperty, textToType); 670BindingExpression binding = this.typeComboBox.GetBindingExpression(ComboBox.SelectedItemProperty);