Share via


AutomationProperties.GetIsDialog(DependencyObject) Method

Definition

Gets the value of the AutomationProperties.IsDialog attached property for the specified DependencyObject.

public:
 static bool GetIsDialog(DependencyObject ^ element);
 static bool GetIsDialog(DependencyObject const& element);
public static bool GetIsDialog(DependencyObject element);
function getIsDialog(element)
Public Shared Function GetIsDialog (element As DependencyObject) As Boolean

Parameters

element
DependencyObject

The object to check.

Returns

Boolean

bool

true if the specified element is identified as a dialog window; otherwise, false.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to

See also