Exemplo n.º 1
0
 public MainPage()
 {
     this.InitializeComponent();
     SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;
     DataContext = new MainViewModel();
     ((MainViewModel)DataContext).LoadData();
 }
Exemplo n.º 2
0
        // Constructor
        public MainPage()
        {
            this.InitializeComponent();
            // SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;
            DataContext = new MainViewModel();
            ((MainViewModel)DataContext).LoadData();

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }