ClassComboBox
Wraps a ComboBox element.
Definition
Namespace:ArtOfTest.WebAii.Silverlight.UI
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class ComboBox : Selector, IAutomationPeer, IPeerConverter, IControl, IComboBox, ISelector, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlSelectorComboBox
Implements:
Inherited Members
Constructors
ComboBox()
Declaration
public ComboBox()
Fields
IsDropDownOpenProperty
Declaration
public static AutomationProperty IsDropDownOpenProperty
Field Value
MaxDropDownHeightProperty
Declaration
public static AutomationProperty MaxDropDownHeightProperty
Field Value
Properties
IsDropDownOpen
Get/set whether the drop down is open.
Declaration
public bool IsDropDownOpen { get; set; }
Property Value
Implements
Items
Retrieves the list of items for this ComboBoxItem's for this ComboBox.
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
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