public CalendarMonthPage() { InitializeComponent(); // Translate unsupported XAML bindings ApplicationBar.TranslateButtons(); }
public EditAccount() { DataContext = new AccountDataContext(); InitializeComponent(); // NavigationContext is not available in constructor this.Loaded += new RoutedEventHandler(PageLoaded); // Translate unsupported XAML bindings ApplicationBar.TranslateButtons(); }
private void PageLoaded(object sender, RoutedEventArgs e) { try { _workingAccount = App.DataContext.LoadAccount(NavigationContext.QueryString["account"]); _workingAccount.RestoreCredentials(); } catch (Exception) { // should not happen } ApplicationBar = (ApplicationBar)Resources["DefaultAppBar"]; ApplicationBar.TranslateButtons(); FetchStructure(_workingAccount.WebDAVPath); }
private void PanoramaSelectionChanged(object sender, RoutedEventArgs e) { if (ApplicationBar != null) { ApplicationBar.IsVisible = false; } var panoramaItem = (PanoramaItem)(sender as Panorama).SelectedItem; switch (panoramaItem.Name) { case "AccountPanoramaItem": ApplicationBar = (ApplicationBar)Resources["AccountApplicationBar"]; ApplicationBar.IsVisible = true; ApplicationBar.TranslateButtons(); break; case "FilesPanoramaItem": ApplicationBar = (ApplicationBar)Resources["FilesApplicationBar"]; ApplicationBar.IsVisible = true; ApplicationBar.TranslateButtons(); break; } }
public AccountsPage() { InitializeComponent(); // Translate unsupported XAML bindings ApplicationBar.TranslateButtons(); }