public MainPage() { this.InitializeComponent(); SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested; DataContext = new MainViewModel(); ((MainViewModel)DataContext).LoadData(); }
// Constructor public MainPage() { this.InitializeComponent(); // SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested; DataContext = new MainViewModel(); ((MainViewModel)DataContext).LoadData(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }