WpfComboBox Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents a combo box control to test the user interface (UI) of Windows Presentation Foundation (WPF) applications.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfControl
      Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfComboBox

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class WpfComboBox _
    Inherits WpfControl
[CLSCompliantAttribute(true)]
public class WpfComboBox : WpfControl
[CLSCompliantAttribute(true)]
public ref class WpfComboBox : public WpfControl
[<CLSCompliantAttribute(true)>]
type WpfComboBox =  
    class 
        inherit WpfControl 
    end
public class WpfComboBox extends WpfControl

The WpfComboBox type exposes the following members.

Constructors

  Name Description
Public method WpfComboBox() Initializes a new instance of the WpfComboBox class.
Public method WpfComboBox(UITestControl) Initializes a new instance of the WpfComboBox class by using the provided parent control.

Top

Properties

  Name Description
Public property AcceleratorKey (Inherited from WpfControl.)
Public property AccessKey (Inherited from WpfControl.)
Public property AutomationId (Inherited from WpfControl.)
Public property BoundingRectangle (Inherited from UITestControl.)
Public property ClassName (Inherited from UITestControl.)
Public property Container (Inherited from UITestControl.)
Public property ControlType (Inherited from UITestControl.)
Public property EditableItem Gets or sets the contents of the editable part of this combo box.
Public property Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property Expanded Gets or sets a value that indicates whether the list part of this combo box is expanded.
Public property FilterProperties (Inherited from UITestControl.)
Public property Font (Inherited from WpfControl.)
Public property FrameworkId (Inherited from WpfControl.)
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property Height (Inherited from UITestControl.)
Public property HelpText (Inherited from WpfControl.)
Public property HorizontalScrollBar Gets the horizontal scroll bar for this combo box control.
Public property IsEditable Gets a value that indicates whether this combo box is editable.
Public property IsTopParent (Inherited from UITestControl.)
Public property Items Gets a collection of items in the list part of this combo box.
Public property ItemStatus (Inherited from WpfControl.)
Public property LabeledBy (Inherited from WpfControl.)
Public property Left (Inherited from UITestControl.)
Public property Name (Inherited from UITestControl.)
Public property NativeElement (Inherited from UITestControl.)
Public property SearchConfigurations (Inherited from UITestControl.)
Public property SearchProperties (Inherited from UITestControl.)
Protected property SearchPropertiesSetExplicitly (Inherited from UITestControl.)
Public property SelectedIndex Gets or sets the index of the selected item in the list part of this combo box.
Public property SelectedItem Gets or sets the contents of the selected item in the list part of this combo box.
Public property State (Inherited from UITestControl.)
Public property TechnologyName (Inherited from UITestControl.)
Public property ToolTipText (Inherited from WpfControl.)
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property VerticalScrollBar Gets the vertical scroll bar for the list part of this combo box.
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
Public method CaptureImage (Inherited from UITestControl.)
Public method CopyFrom (Inherited from UITestControl.)
Public method DrawHighlight (Inherited from UITestControl.)
Public method EnsureClickable() (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method Equals (Inherited from UITestControl.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find (Inherited from UITestControl.)
Public method FindMatchingControls (Inherited from UITestControl.)
Public method GetChildren (Inherited from UITestControl.)
Public method GetClickablePoint (Inherited from UITestControl.)
Public method GetContent Gets the content of the control.
Public method GetHashCode (Inherited from UITestControl.)
Public method GetParent (Inherited from UITestControl.)
Public method GetProperty (Inherited from UITestControl.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch (Inherited from WpfControl.)
Protected method GetValidSearchProperties (Inherited from WpfControl.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFocus (Inherited from UITestControl.)
Public method SetProperty (Inherited from UITestControl.)
Public method ToString (Inherited from UITestControl.)
Public method TryFind (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) (Inherited from UITestControl.)
Public method WaitForControlEnabled() (Inherited from UITestControl.)
Public method WaitForControlEnabled(Int32) (Inherited from UITestControl.)
Public method WaitForControlExist() (Inherited from UITestControl.)
Public method WaitForControlExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlNotExist() (Inherited from UITestControl.)
Public method WaitForControlNotExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlReady() (Inherited from UITestControl.)
Public method WaitForControlReady(Int32) (Inherited from UITestControl.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting.WpfControls Namespace

WpfComboBox.PropertyNames

WpfControl