Class
RadComboBox

Represents the Silverlight RadComboBox control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class RadComboBox : Selector, IAutomationPeer, IPeerConverter, IControl, IRadComboBox, ISelector, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlSelectorRadComboBox

Derived Classes: RadRibbonComboBox

Implements: IAutomationPeerIControlIFrameworkElementIPeerConverterIRadComboBoxISelectorITargetElement

Inherited Members Selector.SelectedIndexPropertySelector.SelectedValuePathPropertySelector.IsSynchronizedWithCurrentItemPropertySelector.GetRealType()Selector.SelectedIndexSelector.SelectedValuePathSelector.IsSynchronizedWithCurrentItemItemsControl.DisplayMemberPathPropertyItemsControl.DisplayMemberPathControl.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

RadComboBox()

Initializes a new instance of the RadComboBox class.

Declaration

cs-api-definition
public RadComboBox()

Properties

ClearButton

Gets the button in the dropdown that clears the selection.

Declaration

cs-api-definition
public IRadButton ClearButton { get; }

Property Value

IRadButton

Implements IRadComboBox.ClearButton

ContentPresenterElement

Gets the content presenter element for non-editable ComboBox. Returns null if the combo is editable.

Declaration

cs-api-definition
public ContentPresenter ContentPresenterElement { get; }

Property Value

ContentPresenter

DropDownButton

Gets the drop down button.

Declaration

cs-api-definition
public FrameworkElement DropDownButton { get; }

Property Value

FrameworkElement

DropDownPopup

Get the drop down popup of the combobox.

Declaration

cs-api-definition
public Popup DropDownPopup { get; }

Property Value

Popup

EditableTextBox

Gets the editable text box if the combo is in editable mode, 'null' otherwise.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. Please use .EditableTextBoxElement instead.")]
public PickerTextBox EditableTextBox { get; }

Property Value

PickerTextBox

EditableTextBoxElement

Gets the editable text box if the combo is in editable mode, 'null' otherwise.

Declaration

cs-api-definition
public FrameworkElement EditableTextBoxElement { get; }

Property Value

FrameworkElement

Implements IRadComboBox.EditableTextBoxElement

IsDropDownOpen

Get whether the combo drop down is opened. Returns 'false' also if the popup cannot be found with the current control template.

Declaration

cs-api-definition
public bool IsDropDownOpen { get; }

Property Value

bool

Implements IRadComboBox.IsDropDownOpen

IsEditable

Get whether the combo is in editable mode. Uses an automation property (i.e. the RadComboBox control property called).

Declaration

cs-api-definition
public bool IsEditable { get; }

Property Value

bool

Implements IRadComboBox.IsEditable

IsReadOnly

Gets a value that enables selection-only mode, in which the contents of the RadComboBox are selectable but not editable.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements IRadComboBox.IsReadOnly

ItemElements

Get the list of ComboBox items.

Declaration

cs-api-definition
public IList<IRadComboBoxItem> ItemElements { get; }

Property Value

IList<IRadComboBoxItem>

Implements IRadComboBox.ItemElements

Items

Get the list of ComboBox items.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. Please use ItemElements instead.")]
public IList<RadComboBoxItem> Items { get; }

Property Value

IList<RadComboBoxItem>

Text

Get the ComboBox text.

Declaration

cs-api-definition
public override string Text { get; }

Property Value

string

Overrides FrameworkElement.Text

Implements IRadComboBox.TextIFrameworkElement.Text

Methods

AssignReference(AutomationReference)

Assign the reference and perform your custom class initialization.

Declaration

cs-api-definition
public override void AssignReference(AutomationReference reference)

Parameters

reference

AutomationReference

Overrides FrameworkElement.AssignReference(AutomationReference)

Implements IFrameworkElement.AssignReference(AutomationReference)

DropDownMouseWheelScroll(int, MouseWheelTurnDirection)

Simulates user scrolling the drop down.

Declaration

cs-api-definition
public void DropDownMouseWheelScroll(int delta, MouseWheelTurnDirection direction)

Parameters

delta

int

The period turning the mouse wheel.

direction

MouseWheelTurnDirection

The mouse wheel turning direction -- either 'forward' or 'backward'.

SelectItem(int)

Simulate user opening the drop down (by default) and selecting an item.

Declaration

cs-api-definition
public void SelectItem(int itemIndex)

Parameters

itemIndex

int

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.

Declaration

cs-api-definition
public void SelectItem(int itemIndex, bool openDropDown)

Parameters

itemIndex

int

The index of the item to be selected.

openDropDown

bool

Open the drop down first.

Implements IRadComboBox.SelectItem(int, bool)

SelectItem(string)

Simulate user opening the drop down (by default) and selecting the item with the given text.

Declaration

cs-api-definition
public void SelectItem(string itemText)

Parameters

itemText

string

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.

Declaration

cs-api-definition
public void SelectItem(string itemText, bool openDropDown)

Parameters

itemText

string

The text of the item to be selected.

openDropDown

bool

Open the drop down first.

Implements IRadComboBox.SelectItem(string, bool)

ToggleDropDown()

Simulates user clicking on the drop down button to open/close it.

Declaration

cs-api-definition
public void ToggleDropDown()

Implements IRadComboBox.ToggleDropDown()

TypeText(string)

Simulate user typing in the RadComboBox.

Declaration

cs-api-definition
public void TypeText(string text)

Parameters

text

string

The text typed.

Implements IRadComboBox.TypeText(string)

WaitDropDownAnimation()

Wait fow how a second to complete the Combo drop down animation.

Declaration

cs-api-definition
public void WaitDropDownAnimation()

WaitDropDownAnimation(int)

Wait fow the given timeout in millis to complete the Combo drop down animation.

Declaration

cs-api-definition
public void WaitDropDownAnimation(int millis)

Parameters

millis

int