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