• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class WindowBaseAutomationPeer

Automation Peer for the WindowBase class.

Inheritance
System.Object
WindowBaseAutomationPeer
DialogWindowBaseAutomationPeer
RadOpenFolderDialogAutomationPeer
RadSaveFileDialogAutomationPeer
RadWindowAutomationPeer
ToolWindowAutomationPeer
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

GetItemStatusCore()

Declaration
protected override string GetItemStatusCore()
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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.