public static class ApplicationBarUtility { public static void SetButtonState(this IApplicationBar app, bool state) { if (app == null) return; app.IsMenuEnabled = state; foreach (ApplicationBarIconButton btn in app.Buttons) { btn.IsEnabled = state; } } }
Nessun commento:
Posta un commento