Пример #1
0
        public MainPage()
        {
            this.InitializeComponent();

            // set the sidebar to GroupsSideBar
            sideBar.Navigate(typeof(GroupsSideBar));

            // set the Frame Navigator instances for navigating through the frames
            ProfileNavigator.SetFrame(profileFrame);
            LeftFrameNavigator.SetFrame(leftFrame);
            RightFrameNavigator.SetFrame(rightFrame);

            viewModel                = new MainPageViewModel();
            this.DataContext         = viewModel;
            this.NavigationCacheMode = NavigationCacheMode.Required;
        }