コード例 #1
0
ファイル: CommanderPage.xaml.cs プロジェクト: edghto/GDD
        public CommanderPage()
        {
            vm = App.CommanderVM;
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
コード例 #2
0
        public CommanderPage()
        {
            vm = App.CommanderVM;
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
コード例 #3
0
        private async void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            vm = App.CommanderVM;

            DataContext = null;
            LeftFlipView.DataContext  = null;
            RightFlipView.DataContext = null;

            DataContext = vm;
            LeftFlipView.DataContext  = vm.LeftPanel;
            RightFlipView.DataContext = vm.RightPanel;

            MainContent.SelectedIndex = vm.CurrentActivePanel;

            await vm.ChangeLeftDir();

            await vm.ChangeRightDir();
        }
コード例 #4
0
ファイル: CommanderPage.xaml.cs プロジェクト: edghto/GDD
        private async void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            vm = App.CommanderVM;

            DataContext = null;
            LeftFlipView.DataContext = null;
            RightFlipView.DataContext = null;

            DataContext = vm;
            LeftFlipView.DataContext = vm.LeftPanel;
            RightFlipView.DataContext = vm.RightPanel;

            MainContent.SelectedIndex = vm.CurrentActivePanel;

            await vm.ChangeLeftDir();
            await vm.ChangeRightDir();
        }