public static void SetDialog(ContentDialog attached, bool value) { attached.SetValue(DialogProperty, value); }