Class ChildWindowAutomationPeer
Exposes ChildWindow types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ChildWindowAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IWindowProvider, ITransformProvider
Constructors
| Improve this Doc View SourceChildWindowAutomationPeer(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 SourceGetAutomationControlTypeCore()
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
| Improve this Doc View SourceGetClassNameCore()
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
| Improve this Doc View SourceGetNameCore()
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
| Improve this Doc View SourceGetPattern(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
Explicit Interface Implementations
| Improve this Doc View SourceITransformProvider.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. |
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. |
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. |
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. |
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. |
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. |
IWindowProvider.Close()
Closes the window.
Declaration
void IWindowProvider.Close()
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. |
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. |
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. |
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. |
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. |
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. |
IWindowProvider.VisualState
Gets the visual state of the window.
Declaration
WindowVisualState IWindowProvider.VisualState { get; }
Returns
Type | Description |
---|---|
WindowVisualState | Normal in all cases. |
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. |