ClassComboBox
Represents the Wpf ComboBox control wrapper.
Definition
Namespace:ArtOfTest.WebAii.Controls.Xaml.Wpf
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class ComboBox : Selector, IAutomationPeer, IPeerConverter, IControl, IComboBox, ISelector, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlItemsControlSelectorComboBox
Implements:
Inherited Members
Constructors
ComboBox()
Declaration
public ComboBox()
Fields
IsDropDownOpenProperty
Declaration
public static AutomationProperty IsDropDownOpenProperty
Field Value
IsEditableProperty
Declaration
public static AutomationProperty IsEditableProperty
Field Value
IsReadOnlyProperty
Declaration
public static AutomationProperty IsReadOnlyProperty
Field Value
MaxDropDownHeightProperty
Declaration
public static AutomationProperty MaxDropDownHeightProperty
Field Value
SelectionBoxItemStringFormatProperty
Declaration
public static AutomationProperty SelectionBoxItemStringFormatProperty
Field Value
StaysOpenOnEditProperty
Declaration
public static AutomationProperty StaysOpenOnEditProperty
Field Value
TextProperty
Declaration
public static AutomationProperty TextProperty
Field Value
Properties
IsDropDownOpen
Get/set whether the drop down is open.
Declaration
public bool IsDropDownOpen { get; set; }
Property Value
Implements
Items
Get the list of combobox items.
Declaration
public IList<ComboBoxItem> Items { get; }
Property Value
ItemsPopup
Get the popup containing the list with combo box items. Override for custom control template.
Declaration
public virtual FrameworkElement ItemsPopup { get; }
Property Value
Implements
SelectionBoxItemStringFormat
Declaration
public string SelectionBoxItemStringFormat { get; set; }
Property Value
Methods
AssignReference(AutomationReference)
Assign the automation reference to this element.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
The automation reference to assign.
Overrides
Implements
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
OpenDropDown(bool)
Open the combobox drop down popup.
Declaration
public void OpenDropDown(bool simulateRealUser)
Parameters
simulateRealUser
Whether to simulate real user click action or just change the drop down state via automation property.
Implements
SelectItemByIndex(bool, int)
Select a combobox item by given index.
SelectItemByIndex(bool, int, bool)
Select a combobox item by given index.
Declaration
public void SelectItemByIndex(bool simulateRealUser, int index, bool openDropDownBeforeSelection)
Parameters
simulateRealUser
Whether to simulate selection by real user click or just change the selected index.
index
The index of the item to select.
openDropDownBeforeSelection
Whether to automatically open the dropdown.
Implements
SelectItemByText(bool, string)
Select a combo box item by given text.
SelectItemByText(bool, string, bool)
Select a combo box item by given text.
Declaration
public void SelectItemByText(bool simulateRealUser, string text, bool openDropDownBeforeSelection)
Parameters
simulateRealUser
Whether to simulate selection by real user click or just change the selected state of the item.
text
The text of the item to select.
openDropDownBeforeSelection
Whether to automatically open the dropdown.
Implements