Class WindowBaseAutomationPeer
Automation Peer for the WindowBase class.
Inheritance
Namespace: Telerik.Windows.Automation.Peers
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class WindowBaseAutomationPeer : FrameworkElementAutomationPeer, ITransformProvider, IWindowProvider
Constructors
WindowBaseAutomationPeer(WindowBase)
Initializes a new instance of the WindowBaseAutomationPeer class.
Declaration
public WindowBaseAutomationPeer(WindowBase owner)
Parameters
WindowBase
owner
The owner WindowBase instance. |
Properties
CanMove
ITransformProvider implementation. Gets a value that indicates whether the control can be moved.
Declaration
public bool CanMove { get; }
Property Value
System.Boolean
|
CanResize
ITransformProvider implementation. Gets a value that indicates whether the UI Automation element can be resized.
Declaration
public bool CanResize { get; }
Property Value
System.Boolean
|
CanRotate
ITransformProvider implementation. Gets a value that indicates whether the control can be rotated.
Declaration
public bool CanRotate { get; }
Property Value
System.Boolean
|
InteractionState
IWindowProvider implementation. Gets the interaction state of the window.
Declaration
public WindowInteractionState InteractionState { get; }
Property Value
System.Windows.Automation.WindowInteractionState
|
IsModal
IWindowProvider implementation. Gets a value that specifies whether the window is modal.
Declaration
public bool IsModal { get; }
Property Value
System.Boolean
|
IsTopmost
IWindowProvider implementation. Gets a value that specifies whether the window is the topmost element in the z-order.
Declaration
public bool IsTopmost { get; }
Property Value
System.Boolean
|
Maximizable
IWindowProvider implementation. Gets a value that specifies whether the window can be maximized.
Declaration
public bool Maximizable { get; }
Property Value
System.Boolean
|
Minimizable
IWindowProvider implementation. Gets a value that specifies whether the window can be minimized.
Declaration
public bool Minimizable { get; }
Property Value
System.Boolean
|
VisualState
IWindowProvider implementation. Gets the visual state of the window.
Declaration
public WindowVisualState VisualState { get; }
Property Value
System.Windows.Automation.WindowVisualState
|
Methods
Close()
IWindowProvider implementation.
Declaration
public void Close()
GetAutomationControlTypeCore()
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
System.Windows.Automation.Peers.AutomationControlType
|
GetClassNameCore()
Declaration
protected override string GetClassNameCore()
Returns
System.String
|
GetHelpTextCore()
Declaration
protected override string GetHelpTextCore()
Returns
System.String
|
GetNameCore()
Returns the text label of the FrameworkElement associated with this AutomationPeers. Called by AutomationPeer.GetName.
Declaration
protected override string GetNameCore()
Returns
System.String
A text label of the Element associated with this Automation Peer. |
GetPattern(PatternInterface)
Gets a control pattern that is associated with this AutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
System.Windows.Automation.Peers.PatternInterface
patternInterface
One of the enumeration values that indicates the control pattern. |
Returns
System.Object
The object that implements the pattern interface, or null. |
Move(Double, Double)
ITransformProvider implementation. Moves the control.
Declaration
public void Move(double x, double y)
Parameters
System.Double
x
The absolute screen coordinates of the left side of the control. |
System.Double
y
The absolute screen coordinates of the top of the control. |
MoveWindow(Double, Double)
Moves the Window to the desired location.
Declaration
protected virtual void MoveWindow(double x, double y)
Parameters
System.Double
x
|
System.Double
y
|
Resize(Double, Double)
ITransformProvider implementation. Resizes the control.
Declaration
public void Resize(double width, double height)
Parameters
System.Double
width
The new width of the window, in pixels. |
System.Double
height
The new height of the window, in pixels. |
Rotate(Double)
ITransformProvider implementation. Rotates the control. Still not supported.
Declaration
public void Rotate(double degrees)
Parameters
System.Double
degrees
The number of degrees to rotate the control. A positive number rotates the control clockwise. A negative number rotates the control counterclockwise. |
SetVisualState(WindowVisualState)
IWindowProvider implementation.
Declaration
public void SetVisualState(WindowVisualState state)
Parameters
System.Windows.Automation.WindowVisualState
state
The visual state of the window to change to. |
WaitForInputIdle(Int32)
IWindowProvider implementation. Blocks the calling code for the specified time or until the associated process enters an idle state, whichever completes first.
Declaration
public bool WaitForInputIdle(int milliseconds)
Parameters
System.Int32
milliseconds
The amount of time, in milliseconds, to wait for the associated process to become idle. The maximum is System.Int32.MaxValue. |
Returns
System.Boolean
True if the window has entered the idle state; false if the timeout occurred. |