예제 #1
0
        public ShellViewModel()
        {
            MainViewModel     = new MainPageViewModel();
            PdfViewModel      = new PdfViewModel();
            SettingsViewModel = new SettingsPageViewModel();

            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text  = "Library",
                NavigationDestination = typeof(MainPage),
                ViewModel             = MainViewModel
            });
            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text  = "Viewer",
                NavigationDestination = typeof(PdfPage),
                ViewModel             = PdfViewModel
            });
            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text  = "Settings",
                NavigationDestination = typeof(SettingsPage),
                ViewModel             = SettingsViewModel
            });
        }
예제 #2
0
        public ShellViewModel()
        {
            MainViewModel = new MainPageViewModel();
            PdfViewModel = new PdfViewModel();
            SettingsViewModel = new SettingsPageViewModel();

            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text = "Library",
                NavigationDestination = typeof (MainPage),
                ViewModel = MainViewModel
            });
            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text = "Viewer",
                NavigationDestination = typeof (PdfPage),
                ViewModel = PdfViewModel
            });
            Menu.Add(new MenuItem
            {
                Glyph = "",
                Text = "Settings",
                NavigationDestination = typeof (SettingsPage),
                ViewModel = SettingsViewModel
            });
        }