Show / Hide Table of Contents

Class ChildWindowAutomationPeer

Exposes ChildWindow types to UI automation.

Inheritance
System.Object
DependencyObject
AutomationPeer
FrameworkElementAutomationPeer
ChildWindowAutomationPeer
Implements
IWindowProvider
ITransformProvider
Inherited Members
FrameworkElementAutomationPeer.Owner
FrameworkElementAutomationPeer.FromElement(UIElement)
FrameworkElementAutomationPeer.CreatePeerForElement(UIElement)
FrameworkElementAutomationPeer.GetAcceleratorKeyCore()
FrameworkElementAutomationPeer.GetAccessKeyCore()
FrameworkElementAutomationPeer.GetAutomationIdCore()
FrameworkElementAutomationPeer.GetHelpTextCore()
FrameworkElementAutomationPeer.GetItemStatusCore()
FrameworkElementAutomationPeer.GetItemTypeCore()
FrameworkElementAutomationPeer.GetLabeledByCore()
FrameworkElementAutomationPeer.IsRequiredForFormCore()
FrameworkElementAutomationPeer.GetChildrenCore()
FrameworkElementAutomationPeer.GetBoundingRectangleCore()
FrameworkElementAutomationPeer.GetClickablePointCore()
FrameworkElementAutomationPeer.IsContentElementCore()
FrameworkElementAutomationPeer.IsControlElementCore()
FrameworkElementAutomationPeer.IsPasswordCore()
FrameworkElementAutomationPeer.IsEnabledCore()
FrameworkElementAutomationPeer.GetLocalizedControlTypeCore()
FrameworkElementAutomationPeer.GetOrientationCore()
FrameworkElementAutomationPeer.HasKeyboardFocusCore()
FrameworkElementAutomationPeer.IsKeyboardFocusableCore()
FrameworkElementAutomationPeer.IsOffscreenCore()
FrameworkElementAutomationPeer.SetFocusCore()
AutomationPeer.EventsSource
AutomationPeer.ListenerExists(AutomationEvents)
AutomationPeer.GetAcceleratorKey()
AutomationPeer.GetAccessKey()
AutomationPeer.GetAutomationControlType()
AutomationPeer.GetAutomationId()
AutomationPeer.GetBoundingRectangle()
AutomationPeer.GetChildren()
AutomationPeer.GetClassName()
AutomationPeer.GetClickablePoint()
AutomationPeer.GetHelpText()
AutomationPeer.GetItemStatus()
AutomationPeer.GetItemType()
AutomationPeer.GetLabeledBy()
AutomationPeer.GetLocalizedControlType()
AutomationPeer.GetName()
AutomationPeer.GetOrientation()
AutomationPeer.HasKeyboardFocus()
AutomationPeer.IsContentElement()
AutomationPeer.IsControlElement()
AutomationPeer.IsEnabled()
AutomationPeer.IsKeyboardFocusable()
AutomationPeer.IsOffscreen()
AutomationPeer.IsPassword()
AutomationPeer.IsRequiredForForm()
AutomationPeer.SetFocus()
AutomationPeer.InvalidatePeer()
AutomationPeer.GetParent()
AutomationPeer.RaiseAutomationEvent(AutomationEvents)
AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, Object, Object)
AutomationPeer.PeerFromProvider(IRawElementProviderSimple)
AutomationPeer.ProviderFromPeer(AutomationPeer)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ChildWindowAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IWindowProvider, ITransformProvider

Constructors

| Improve this Doc View Source

ChildWindowAutomationPeer(ChildWindow)

Initializes a new instance of the ChildWindowAutomationPeer class.

Declaration
public ChildWindowAutomationPeer(ChildWindow owner)
Parameters
Type Name Description
ChildWindow owner

The ChildWindow to associate with this ChildWindowAutomationPeer.

Methods

| Improve this Doc View Source

GetAutomationControlTypeCore()

Gets the AutomationControlType for the element associated with this ChildWindowAutomationPeer. Called by GetAutomationControlType().

Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type Description
AutomationControlType

A value of the enumeration.

Overrides
FrameworkElementAutomationPeer.GetAutomationControlTypeCore()
| Improve this Doc View Source

GetClassNameCore()

Gets the name of the class for the object associated with this ChildWindowAutomationPeer. Called by GetClassName().

Declaration
protected override string GetClassNameCore()
Returns
Type Description
System.String

A string value that represents the type of the child window.

Overrides
FrameworkElementAutomationPeer.GetClassNameCore()
| Improve this Doc View Source

GetNameCore()

Gets the text label of the ChildWindow that is associated with this ChildWindowAutomationPeer. Called by GetName().

Declaration
protected override string GetNameCore()
Returns
Type Description
System.String

The text label of the element that is associated with this automation peer.

Overrides
FrameworkElementAutomationPeer.GetNameCore()
| Improve this Doc View Source

GetPattern(PatternInterface)

Gets the control pattern for this ChildWindowAutomationPeer.

Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type Name Description
PatternInterface patternInterface

One of the enumeration values.

Returns
Type Description
System.Object

The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer.

Overrides
FrameworkElementAutomationPeer.GetPattern(PatternInterface)

Explicit Interface Implementations

| Improve this Doc View Source

ITransformProvider.CanMove

Gets a value indicating whether the element can be moved.

Declaration
bool ITransformProvider.CanMove { get; }
Returns
Type Description
System.Boolean

True in all cases.

| Improve this Doc View Source

ITransformProvider.CanResize

Gets a value indicating whether the element can be resized.

Declaration
bool ITransformProvider.CanResize { get; }
Returns
Type Description
System.Boolean

False in all cases.

| Improve this Doc View Source

ITransformProvider.CanRotate

Gets a value indicating whether the element can be rotated.

Declaration
bool ITransformProvider.CanRotate { get; }
Returns
Type Description
System.Boolean

False in all cases.

| Improve this Doc View Source

ITransformProvider.Move(Double, Double)

Moves the control.

Declaration
void ITransformProvider.Move(double x, double y)
Parameters
Type Name Description
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.

| Improve this Doc View Source

ITransformProvider.Resize(Double, Double)

Resizes the control.

Declaration
void ITransformProvider.Resize(double width, double height)
Parameters
Type Name Description
System.Double width

The new width of the window, in pixels.

System.Double height

The new height of the window, in pixels.

| Improve this Doc View Source

ITransformProvider.Rotate(Double)

Rotates the control.

Declaration
void ITransformProvider.Rotate(double degrees)
Parameters
Type Name Description
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.

| Improve this Doc View Source

IWindowProvider.Close()

Closes the window.

Declaration
void IWindowProvider.Close()
| Improve this Doc View Source

IWindowProvider.InteractionState

Gets the interaction state of the window.

Declaration
WindowInteractionState IWindowProvider.InteractionState { get; }
Returns
Type Description
WindowInteractionState

The interaction state of the control, as a value of the enumeration.

| Improve this Doc View Source

IWindowProvider.IsModal

Gets a value indicating whether the window is modal.

Declaration
bool IWindowProvider.IsModal { get; }
Returns
Type Description
System.Boolean

True in all cases.

| Improve this Doc View Source

IWindowProvider.IsTopmost

Gets a value indicating whether the window is the topmost element in the z-order of layout.

Declaration
bool IWindowProvider.IsTopmost { get; }
Returns
Type Description
System.Boolean

True if the window is topmost; otherwise, false.

| Improve this Doc View Source

IWindowProvider.Maximizable

Gets a value indicating whether the window can be maximized.

Declaration
bool IWindowProvider.Maximizable { get; }
Returns
Type Description
System.Boolean

False in all cases.

| Improve this Doc View Source

IWindowProvider.Minimizable

Gets a value indicating whether the window can be minimized.

Declaration
bool IWindowProvider.Minimizable { get; }
Returns
Type Description
System.Boolean

False in all cases.

| Improve this Doc View Source

IWindowProvider.SetVisualState(WindowVisualState)

Changes the visual state of the window (such as minimizing or maximizing it).

Declaration
void IWindowProvider.SetVisualState(WindowVisualState state)
Parameters
Type Name Description
WindowVisualState state

The visual state of the window to change to, as a value of the enumeration.

| Improve this Doc View Source

IWindowProvider.VisualState

Gets the visual state of the window.

Declaration
WindowVisualState IWindowProvider.VisualState { get; }
Returns
Type Description
WindowVisualState

Normal in all cases.

| Improve this Doc View Source

IWindowProvider.WaitForInputIdle(Int32)

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

Declaration
bool IWindowProvider.WaitForInputIdle(int milliseconds)
Parameters
Type Name Description
System.Int32 milliseconds

The amount of time, in milliseconds, to wait for the associated process to become idle.

Returns
Type Description
System.Boolean

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

Implements

IWindowProvider
ITransformProvider

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source