Share via


AutomationProperties.SetIsDialog(DependencyObject, Boolean) Method

Definition

Sets a Boolean value that indicates whether the specified element should be identified as a dialog window.

public:
 static void SetIsDialog(DependencyObject ^ element, bool value);
 static void SetIsDialog(DependencyObject const& element, bool const& value);
public static void SetIsDialog(DependencyObject element, bool value);
function setIsDialog(element, value)
Public Shared Sub SetIsDialog (element As DependencyObject, value As Boolean)

Parameters

element
DependencyObject

The object to identify as a dialog window.

value
Boolean

bool

true if the element should be identified as a dialog window; otherwise, false.

Remarks

Flyout and ContentDialog elements default to true for AutomationProperties.IsDialog.

Applies to