Show / Hide Table of Contents

Class ComboBox

Implements control with selection in drop down list

Inheritance
System.Object
DependencyObject
UIElement
Control
ItemsControl
Selector
ComboBox
Inherited Members
Selector.IsSelectedProperty
Selector.GetIsSelected(DependencyObject)
Selector.SetIsSelected(DependencyObject, Boolean)
Selector.SelectedIndexProperty
Selector.SelectedIndex
Selector.SelectedItemProperty
Selector.OnSelectedItemChanged(DependencyPropertyChangedEventArgs)
Selector.SelectedItem
Selector.SelectionChangedEvent
Selector.SelectionChanged
Selector.SelectedEvent
Selector.AddSelectedHandler(UIElement, RoutedEventHandler)
Selector.RemoveSelectedHandler(UIElement, RoutedEventHandler)
Selector.UnselectedEvent
Selector.AddUnselectedHandler(UIElement, RoutedEventHandler)
Selector.RemoveUnselectedHandler(UIElement, RoutedEventHandler)
Selector.UpdatePublicSelectionProperties()
Selector.BringTargetIntoView(UIElement, ScrollViewer)
ItemsControl.Items
ItemsControl.ItemsSourceProperty
ItemsControl.ItemsSource
ItemsControl.ItemsPanelProperty
ItemsControl.ItemsPanel
ItemsControl.ItemTemplateProperty
ItemsControl.ItemTemplate
ItemsControl.OnPropertyChanged(DependencyProperty)
ItemsControl.OnContainersChanged()
ItemsControl.OnItemsCleared()
ItemsControl.OnItemInserted(Int32)
ItemsControl.OnItemRemoved()
Control.BackgroundProperty
Control.Background
Control.BorderBrushProperty
Control.BorderBrush
Control.BorderThicknessProperty
Control.BorderThickness
Control.ForegroundProperty
Control.Foreground
Control.FontProperty
Control.Font
Control.FontFamilyProperty
Control.FontFamily
Control.FontSizeProperty
Control.FontSize
Control.FontStyleProperty
Control.FontStyle
Control.PaddingProperty
Control.Padding
Control.TabIndexProperty
Control.TabIndex
Control.IsTabStopProperty
Control.IsTabStop
Control.TemplateProperty
Control.Template
Control.HorizontalContentAlignmentProperty
Control.HorizontalContentAlignment
Control.VerticalContentAlignmentProperty
Control.VerticalContentAlignment
Control.PreviewMouseDoubleClickEvent
Control.PreviewMouseDoubleClick
Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs)
Control.MouseDoubleClickEvent
Control.MouseDoubleClick
Control.OnMouseDoubleClick(MouseButtonEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
Control.OnDraw(Renderer, Double, Single)
Control.InvalidateIsEnabledOnChildren()
UIElement.visualOffset
UIElement.unclippedDesiredSize
UIElement.desiredSize
UIElement.needsClipBounds
UIElement.DesiredSize
UIElement.RenderSize
UIElement.DeviceRenderSize
UIElement.VisualOffset
UIElement.VisualPosition
UIElement.RenderPosition
UIElement.Parent
UIElement.ActualHeight
UIElement.ActualWidth
UIElement.IsLoaded
UIElement.TemplatedParent
UIElement.NameProperty
UIElement.Name
UIElement.HorizontalAlignmentProperty
UIElement.HorizontalAlignment
UIElement.VerticalAlignmentProperty
UIElement.VerticalAlignment
UIElement.VisibilityProperty
UIElement.Visibility
UIElement.MarginProperty
UIElement.Margin
UIElement.HeightProperty
UIElement.Height
UIElement.MaxHeightProperty
UIElement.MaxHeight
UIElement.MinHeightProperty
UIElement.MinHeight
UIElement.WidthProperty
UIElement.Width
UIElement.MaxWidthProperty
UIElement.MaxWidth
UIElement.MinWidthProperty
UIElement.MinWidth
UIElement.TagProperty
UIElement.Tag
UIElement.IsEnabledProperty
UIElement.IsEnabledCoerceValue
UIElement.IsEnabled
UIElement.IsMouseOverProperty
UIElement.IsMouseOver
UIElement.IsMouseCapturedProperty
UIElement.IsMouseCaptured
UIElement.IsTouchCapturedProperty
UIElement.IsTouchCaptured
UIElement.IsKeyboardFocusedProperty
UIElement.IsKeyboardFocused
UIElement.StyleProperty
UIElement.Style
UIElement.DataContextProperty
UIElement.DataContext
UIElement.IsFocusedProperty
UIElement.IsFocused
UIElement.FocusableProperty
UIElement.Focusable
UIElement.IsHitTestVisibleProperty
UIElement.IsHitTestVisible
UIElement.SnapsToDevicePixelsProperty
UIElement.SnapsToDevicePixels
UIElement.UseLayoutRoundingProperty
UIElement.UseLayoutRounding
UIElement.OpacityProperty
UIElement.Opacity
UIElement.IsMeasureValid
UIElement.IsArrangeValid
UIElement.Resources
UIElement.InputBindings
UIElement.ToolTipProperty
UIElement.ToolTip
UIElement.Triggers
UIElement.CursorTypeProperty
UIElement.CursorType
UIElement.EffectProperty
UIElement.Effect
UIElement.DataContextChanged
UIElement.IsEnabledChanged
UIElement.IsMouseCapturedChanged
UIElement.VisibleEvent
UIElement.Visible
UIElement.HiddenEvent
UIElement.Hidden
UIElement.CollapsedEvent
UIElement.Collapsed
UIElement.LoadedEvent
UIElement.Loaded
UIElement.UnloadedEvent
UIElement.Unloaded
UIElement.MouseDownEvent
UIElement.MouseDown
UIElement.PreviewMouseDownEvent
UIElement.PreviewMouseDown
UIElement.MouseUpEvent
UIElement.MouseUp
UIElement.PreviewMouseUpEvent
UIElement.PreviewMouseUp
UIElement.PreviewMouseWheelEvent
UIElement.PreviewMouseWheel
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.PreviewMouseMoveEvent
UIElement.PreviewMouseMove
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyDown
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.PreviewKeyUpEvent
UIElement.PreviewKeyUp
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.GamepadDownEvent
UIElement.GamepadDown
UIElement.PreviewGamepadDownEvent
UIElement.PreviewGamepadDown
UIElement.GamepadUpEvent
UIElement.GamepadUp
UIElement.PreviewGamepadUpEvent
UIElement.PreviewGamepadUp
UIElement.PreviewGamepadMoveEvent
UIElement.PreviewGamepadMove
UIElement.GamepadMoveEvent
UIElement.GamepadMove
UIElement.PreviewGamepadTriggerEvent
UIElement.PreviewGamepadTrigger
UIElement.GamepadTriggerEvent
UIElement.GamepadTrigger
UIElement.PreviewTouchDownEvent
UIElement.PreviewTouchDown
UIElement.TouchDownEvent
UIElement.TouchDown
UIElement.PreviewTouchUpEvent
UIElement.PreviewTouchUp
UIElement.TouchUpEvent
UIElement.TouchUp
UIElement.PreviewTouchMoveEvent
UIElement.PreviewTouchMove
UIElement.TouchMoveEvent
UIElement.TouchMove
UIElement.PreviewTouchGestureEvent
UIElement.PreviewTouchGesture
UIElement.TouchGestureEvent
UIElement.TouchGesture
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.SizeChangedEvent
UIElement.SizeChanged
UIElement.LayoutUpdated
UIElement.RequestBringIntoViewEvent
UIElement.RequestBringIntoView
UIElement.DpiScaleX
UIElement.DpiScaleY
UIElement.OnGotFocus(Object, RoutedEventArgs)
UIElement.OnPreviewMouseUp(Object, MouseButtonEventArgs)
UIElement.OnPreviewMouseDown(Object, MouseButtonEventArgs)
UIElement.OnGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnPreviewGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnGamepadMove(Object, GamepadMoveEventArgs)
UIElement.OnGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnPreviewGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnGamepadDown(GamepadButtonEventArgs)
UIElement.OnKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyDown(Object, KeyEventArgs)
UIElement.OnPreviewMouseMove(Object, MouseEventArgs)
UIElement.OnMouseMove(Object, MouseEventArgs)
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.OnPreviewMouseWheel(Object, MouseWheelEventArgs)
UIElement.OnMouseUp(Object, MouseButtonEventArgs)
UIElement.OnMouseDown(MouseButtonEventArgs)
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.OnTouchUp(TouchEventArgs)
UIElement.OnPreviewTouchUp(TouchEventArgs)
UIElement.OnTouchDown(TouchEventArgs)
UIElement.OnPreviewTouchDown(TouchEventArgs)
UIElement.OnTouchMove(TouchEventArgs)
UIElement.OnPreviewTouchMove(TouchEventArgs)
UIElement.OnTouchGesture(TouchGestureEventArgs)
UIElement.OnPreviewTouchGesture(TouchGestureEventArgs)
UIElement.ApplyTemplate()
UIElement.OnOpacityChanged(DependencyPropertyChangedEventArgs)
UIElement.Contains(PointF, Size)
UIElement.Draw(Renderer, Double, Single)
UIElement.Measure(Size)
UIElement.InvalidateMeasure()
UIElement.Arrange(Rect)
UIElement.InvalidateArrange()
UIElement.FindResource(Object)
UIElement.AddHandler(RoutedEvent, Delegate)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.RaiseEvent(RoutedEventArgs)
UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
UIElement.CaptureMouse()
UIElement.ReleaseMouseCapture()
UIElement.OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.CaptureTouch()
UIElement.ReleaseTouchCapture()
UIElement.Focus()
UIElement.BringIntoView()
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ComboBox : Selector

Constructors

ComboBox()

Initializes a new instance of the ComboBox class.

Declaration
public ComboBox()

Fields

IsDropDownOpenProperty

The is drop down open property

Declaration
public static readonly DependencyProperty IsDropDownOpenProperty
Field Value
Type Description
DependencyProperty

MaxDropDownHeightProperty

The maximum drop down height property

Declaration
public static readonly DependencyProperty MaxDropDownHeightProperty
Field Value
Type Description
DependencyProperty

SelectionBoxItemProperty

The selection box item property

Declaration
public static readonly DependencyProperty SelectionBoxItemProperty
Field Value
Type Description
DependencyProperty

SelectionBoxItemTemplateProperty

The selection box item template property

Declaration
public static readonly DependencyProperty SelectionBoxItemTemplateProperty
Field Value
Type Description
DependencyProperty

Properties

IsDropDownOpen

Gets or sets a value indicating whether this instance is drop down open.

Declaration
public bool IsDropDownOpen { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is drop down open; otherwise, false.

MaxDropDownHeight

Gets or sets the maximum height of the drop down.

Declaration
public float MaxDropDownHeight { get; set; }
Property Value
Type Description
System.Single

The maximum height of the drop down.

SelectionBoxItem

Gets the selection box item.

Declaration
public object SelectionBoxItem { get; }
Property Value
Type Description
System.Object

The selection box item.

SelectionBoxItemTemplate

Gets or sets the selection box item template.

Declaration
public DataTemplate SelectionBoxItemTemplate { get; }
Property Value
Type Description
DataTemplate

The selection box item template.

Methods

GetContainerForItemOverride(Object)

Gets the container for item

Declaration
protected override UIElement GetContainerForItemOverride(object item)
Parameters
Type Name Description
System.Object item

The item.

Returns
Type Description
UIElement
Overrides
ItemsControl.GetContainerForItemOverride(Object)

IsItemItsOwnContainerOverride(Object)

Determines whether if [is item its own container].

Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type Name Description
System.Object item

The item.

Returns
Type Description
System.Boolean
Overrides
ItemsControl.IsItemItsOwnContainerOverride(Object)

OnApplyTemplate()

Called when [apply template].

Declaration
public override void OnApplyTemplate()
Overrides
ItemsControl.OnApplyTemplate()

OnDropDownClosed(EventArgs)

Raises the DropDownClosed event.

Declaration
protected virtual void OnDropDownClosed(EventArgs eventArgs)
Parameters
Type Name Description
System.EventArgs eventArgs

The System.EventArgs instance containing the event data.

OnDropDownOpened(EventArgs)

Raises the DropDownOpened event.

Declaration
protected virtual void OnDropDownOpened(EventArgs eventArgs)
Parameters
Type Name Description
System.EventArgs eventArgs

The System.EventArgs instance containing the event data.

OnIsEnabledChanged(DependencyPropertyChangedEventArgs)

Raises the IsEnabledChanged event.

Declaration
protected override void OnIsEnabledChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
DependencyPropertyChangedEventArgs e

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides
UIElement.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)

OnItemsSourceChanged(DependencyPropertyChangedEventArgs)

Raises the ItemsSourceChanged event.

Declaration
protected override void OnItemsSourceChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
DependencyPropertyChangedEventArgs e

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides
ItemsControl.OnItemsSourceChanged(DependencyPropertyChangedEventArgs)

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e

The KeyEventArgs instance containing the event data.

Overrides
UIElement.OnKeyDown(KeyEventArgs)

OnLostFocus(Object, RoutedEventArgs)

Called when [lost focus].

Declaration
protected override void OnLostFocus(object sender, RoutedEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

RoutedEventArgs e

The RoutedEventArgs instance containing the event data.

Overrides
UIElement.OnLostFocus(Object, RoutedEventArgs)

OnPreviewGamepadDown(Object, GamepadButtonEventArgs)

Called when [preview game pad down].

Declaration
protected override void OnPreviewGamepadDown(object sender, GamepadButtonEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

GamepadButtonEventArgs e

The GamepadButtonEventArgs instance containing the event data.

Overrides
UIElement.OnPreviewGamepadDown(Object, GamepadButtonEventArgs)

OnPreviewGamepadMove(Object, GamepadMoveEventArgs)

Called when [preview game pad move].

Declaration
protected override void OnPreviewGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

GamepadMoveEventArgs e

The GamepadMoveEventArgs instance containing the event data.

Overrides
UIElement.OnPreviewGamepadMove(Object, GamepadMoveEventArgs)

OnSelectionChanged(SelectionChangedEventArgs)

Raises the SelectionChanged event.

Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
Type Name Description
SelectionChangedEventArgs e

The SelectionChangedEventArgs instance containing the event data.

Overrides
Selector.OnSelectionChanged(SelectionChangedEventArgs)

SetContainer(UIElement, UIElement)

Sets the container.

Declaration
protected override void SetContainer(UIElement itemContainer, UIElement contentVisual)
Parameters
Type Name Description
UIElement itemContainer

The item container.

UIElement contentVisual

The content visual.

Overrides
ItemsControl.SetContainer(UIElement, UIElement)

Events

DropDownClosed

Occurs when [drop down closed].

Declaration
public event EventHandler DropDownClosed
Event Type
Type Description
System.EventHandler

DropDownOpened

Occurs when [drop down opened].

Declaration
public event EventHandler DropDownOpened
Event Type
Type Description
System.EventHandler
Back to top Generated by DocFX