public static bool GetDialog(ContentDialog attached) { return((bool)attached.GetValue(DialogProperty)); }