New to Telerik UI for WPFStart a free 30-day trial

Automation Peer for the WindowBase class.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class WindowBaseAutomationPeer : FrameworkElementAutomationPeer, ITransformProvider, IWindowProvider

Inheritance: objectWindowBaseAutomationPeer

Derived Classes: DialogWindowBaseAutomationPeerRadOpenFolderDialogAutomationPeerRadSaveFileDialogAutomationPeerRadWindowAutomationPeerToolWindowAutomationPeer

Implements: ITransformProviderIWindowProvider

Constructors

Initializes a new instance of the WindowBaseAutomationPeer class.

C#
public WindowBaseAutomationPeer(WindowBase owner)
Parameters:ownerWindowBase

The owner WindowBase instance.

Properties

ITransformProvider implementation. Gets a value that indicates whether the control can be moved.

C#
public bool CanMove { get; }

ITransformProvider implementation. Gets a value that indicates whether the UI Automation element can be resized.

C#
public bool CanResize { get; }

ITransformProvider implementation. Gets a value that indicates whether the control can be rotated.

C#
public bool CanRotate { get; }

InteractionState

WindowInteractionState

IWindowProvider implementation. Gets the interaction state of the window.

C#
public WindowInteractionState InteractionState { get; }

IWindowProvider implementation. Gets a value that specifies whether the window is modal.

C#
public bool IsModal { get; }

IWindowProvider implementation. Gets a value that specifies whether the window is the topmost element in the z-order.

C#
public bool IsTopmost { get; }

IWindowProvider implementation. Gets a value that specifies whether the window can be maximized.

C#
public bool Maximizable { get; }

IWindowProvider implementation. Gets a value that specifies whether the window can be minimized.

C#
public bool Minimizable { get; }

VisualState

WindowVisualState

IWindowProvider implementation. Gets the visual state of the window.

C#
public WindowVisualState VisualState { get; }

Methods

IWindowProvider implementation.

C#
public void Close()

Gets the control type for the FrameworkElement associated with this AutomationPeer.

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

Returns the text label of the FrameworkElement associated with this AutomationPeers. Called by AutomationPeer.GetName.

C#
protected override string GetNameCore()
Returns:

string

A text label of the Element associated with this Automation Peer.

Gets a control pattern that is associated with this AutomationPeer.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

One of the enumeration values that indicates the control pattern.

Returns:

object

The object that implements the pattern interface, or null.

ITransformProvider implementation. Moves the control.

C#
public void Move(double x, double y)
Parameters:xdouble

The absolute screen coordinates of the left side of the control.

ydouble

The absolute screen coordinates of the top of the control.

Moves the Window to the desired location.

C#
protected virtual void MoveWindow(double x, double y)
Parameters:xdoubleydouble

ITransformProvider implementation. Resizes the control.

C#
public void Resize(double width, double height)
Parameters:widthdouble

The new width of the window, in pixels.

heightdouble

The new height of the window, in pixels.

ITransformProvider implementation. Rotates the control. Still not supported.

C#
public void Rotate(double degrees)
Parameters:degreesdouble

The number of degrees to rotate the control. A positive number rotates the control clockwise. A negative number rotates the control counterclockwise.

IWindowProvider implementation.

C#
public void SetVisualState(WindowVisualState state)
Parameters:stateWindowVisualState

The visual state of the window to change to.

IWindowProvider implementation. Blocks the calling code for the specified time or until the associated process enters an idle state, whichever completes first.

C#
public bool WaitForInputIdle(int milliseconds)
Parameters:millisecondsint

The amount of time, in milliseconds, to wait for the associated process to become idle. The maximum is System.Int32.MaxValue.

Returns:

bool

True if the window has entered the idle state; false if the timeout occurred.