Compartilhar via


XamlControl Class

Represents a Xaml control.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlControl
      More...

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

Syntax

'Declaration
Public Class XamlControl _
    Inherits UITestControl
public class XamlControl : UITestControl
public ref class XamlControl : public UITestControl
type XamlControl =  
    class 
        inherit UITestControl 
    end
public class XamlControl extends UITestControl

The XamlControl type exposes the following members.

Constructors

  Name Description
Public method XamlControl() Initializes a new instance of the XamlControl class.
Public method XamlControl(XamlControl) Initializes a new instance of the XamlControl class.

Top

Properties

  Name Description
Public property AcceleratorKey Gets the control's accelerator key.
Public property AccessKey Gets the control's access key.
Public property AutomationId Gets the control's automation Id.
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 Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property FilterProperties (Inherited from UITestControl.)
Public property Font Gets the font if TextProperty is supported.
Public property FontSize Gets the control's FontSize.
Public property FontWeight Gets the control's FontWeight.
Public property FrameworkId Gets the FrameworkId associated with the control.
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property Height (Inherited from UITestControl.)
Public property HelpText Gets the help text associated with the control.
Public property IsTopParent (Inherited from UITestControl.)
Public property ItemStatus
Public property LabeledBy Gets the control's label text.
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 State (Inherited from UITestControl.)
Public property TechnologyName (Inherited from UITestControl.)
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
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 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 Gets the array of UITestControl that will be used for Searching. Overridden to validate the search properties (Overrides UITestControl.GetUITestControlsForSearch().)
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.WindowsRuntimeControls Namespace

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlControl
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlButton
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlCheckBox
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlComboBox
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlEdit
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlFlipView
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlFlipViewItem
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlHub
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlHubSection
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlHyperlink
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlList
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlListItem
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlMenu
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlMenuItem
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlProgressBar
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlRadioButton
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlSemanticZoom
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlSlider
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlText
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlToggleButton
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlToggleSwitch
      Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls.XamlWindow