ClassRadComboBox
Represents the Silverlight RadComboBox control wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml
Assembly:Telerik.WebAii.Controls.Xaml.dll
Syntax:
public class RadComboBox : Selector, IAutomationPeer, IPeerConverter, IControl, IRadComboBox, ISelector, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlSelectorRadComboBox
Derived Classes:
Implements:
Inherited Members
Constructors
RadComboBox()
Initializes a new instance of the RadComboBox class.
Declaration
public RadComboBox()
Properties
ClearButton
Gets the button in the dropdown that clears the selection.
Declaration
public IRadButton ClearButton { get; }
Property Value
Implements
ContentPresenterElement
Gets the content presenter element for non-editable ComboBox. Returns null if the combo is editable.
Declaration
public ContentPresenter ContentPresenterElement { get; }
Property Value
DropDownButton
Gets the drop down button.
Declaration
public FrameworkElement DropDownButton { get; }
Property Value
DropDownPopup
Get the drop down popup of the combobox.
EditableTextBox
Gets the editable text box if the combo is in editable mode, 'null' otherwise.
Declaration
[Obsolete("The property is deprecated. Please use .EditableTextBoxElement instead.")]
public PickerTextBox EditableTextBox { get; }
Property Value
EditableTextBoxElement
Gets the editable text box if the combo is in editable mode, 'null' otherwise.
Declaration
public FrameworkElement EditableTextBoxElement { get; }
Property Value
Implements
IsDropDownOpen
Get whether the combo drop down is opened. Returns 'false' also if the popup cannot be found with the current control template.
IsEditable
Get whether the combo is in editable mode. Uses an automation property (i.e. the RadComboBox control property called).
IsReadOnly
Gets a value that enables selection-only mode, in which the contents of the RadComboBox are selectable but not editable.
ItemElements
Get the list of ComboBox items.
Declaration
public IList<IRadComboBoxItem> ItemElements { get; }
Property Value
Implements
Items
Get the list of ComboBox items.
Declaration
[Obsolete("The property is deprecated. Please use ItemElements instead.")]
public IList<RadComboBoxItem> Items { get; }
Property Value
Methods
AssignReference(AutomationReference)
Assign the reference and perform your custom class initialization.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
Overrides
Implements
DropDownMouseWheelScroll(int, MouseWheelTurnDirection)
Simulates user scrolling the drop down.
Declaration
public void DropDownMouseWheelScroll(int delta, MouseWheelTurnDirection direction)
Parameters
delta
The period turning the mouse wheel.
direction
The mouse wheel turning direction -- either 'forward' or 'backward'.
SelectItem(int)
Simulate user opening the drop down (by default) and selecting an item.
Declaration
public void SelectItem(int itemIndex)
Parameters
itemIndex
The index of the item to be selected.
SelectItem(int, bool)
Simulate user opening the drop down depending on 'openDropDown' argument and selecting an item.
SelectItem(string)
Simulate user opening the drop down (by default) and selecting the item with the given text.
Declaration
public void SelectItem(string itemText)
Parameters
itemText
The text of the item to be selected.
SelectItem(string, bool)
Simulate user opening the drop down depending on 'openDropDown' argument and selecting the item with the given text.
ToggleDropDown()
Simulates user clicking on the drop down button to open/close it.
Declaration
public void ToggleDropDown()
Implements
TypeText(string)
Simulate user typing in the RadComboBox.
Declaration
public void TypeText(string text)
Parameters
text
The text typed.
Implements
WaitDropDownAnimation()
Wait fow how a second to complete the Combo drop down animation.
Declaration
public void WaitDropDownAnimation()
WaitDropDownAnimation(int)
Wait fow the given timeout in millis to complete the Combo drop down animation.