ClassWindowBaseAutomationPeer
Automation Peer for the WindowBase class.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class WindowBaseAutomationPeer : FrameworkElementAutomationPeer, ITransformProvider, IWindowProvider
Inheritance: objectWindowBaseAutomationPeer
Derived Classes:
Implements:
Constructors
WindowBaseAutomationPeer(WindowBase)
Initializes a new instance of the WindowBaseAutomationPeer class.
Declaration
public WindowBaseAutomationPeer(WindowBase owner)
Parameters
owner
The owner WindowBase instance.
Properties
CanMove
ITransformProvider implementation. Gets a value that indicates whether the control can be moved.
CanResize
ITransformProvider implementation. Gets a value that indicates whether the UI Automation element can be resized.
CanRotate
ITransformProvider implementation. Gets a value that indicates whether the control can be rotated.
InteractionState
IWindowProvider implementation. Gets the interaction state of the window.
Declaration
public WindowInteractionState InteractionState { get; }
Property Value
WindowInteractionState
IsModal
IWindowProvider implementation. Gets a value that specifies whether the window is modal.
IsTopmost
IWindowProvider implementation. Gets a value that specifies whether the window is the topmost element in the z-order.
Maximizable
IWindowProvider implementation. Gets a value that specifies whether the window can be maximized.
Minimizable
IWindowProvider implementation. Gets a value that specifies whether the window can be minimized.
VisualState
IWindowProvider implementation. Gets the visual state of the window.
Declaration
public WindowVisualState VisualState { get; }
Property Value
WindowVisualState
Methods
GetAutomationControlTypeCore()
Gets the control type for the FrameworkElement associated with this AutomationPeer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
GetNameCore()
Returns the text label of the FrameworkElement associated with this AutomationPeers. Called by AutomationPeer.GetName.
Declaration
protected override string GetNameCore()
Returns
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
patternInterface
PatternInterface
One of the enumeration values that indicates the control pattern.
Returns
The object that implements the pattern interface, or null.
Move(double, double)
ITransformProvider implementation. Moves the control.
MoveWindow(double, double)
Moves the Window to the desired location.
Resize(double, double)
ITransformProvider implementation. Resizes the control.
Rotate(double)
ITransformProvider implementation. Rotates the control. Still not supported.
Declaration
public void Rotate(double degrees)
Parameters
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
state
WindowVisualState
The visual state of the window to change to.
WaitForInputIdle(int)
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
milliseconds
The amount of time, in milliseconds, to wait for the associated process to become idle. The maximum is System.Int32.MaxValue.
Returns
True if the window has entered the idle state; false if the timeout occurred.