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

Automation peer for the RadRibbonWindow class.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
public class RibbonWindowAutomationPeer : WindowAutomationPeer, ITransformProvider, IWindowProvider

Inheritance: objectRibbonWindowAutomationPeer

Implements: ITransformProviderIWindowProvider

Constructors

Initializes a new instance of the RibbonWindowAutomationPeer class.

C#
public RibbonWindowAutomationPeer(RadRibbonWindow owner)
Parameters:ownerRadRibbonWindow

The RadRibbonWindow that will be associated with newly created object.

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()
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

C#
protected override string GetNameCore()
Returns:

string

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.

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.