コード例 #1
0
        public HubPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);


            this.navigationHelper.LoadState += navigationHelper_LoadState;
        }
コード例 #2
0
ファイル: Page1.xaml.cs プロジェクト: PrisWen/Filtologia2
 public Page1()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
     _windowHelper = new WindowHelper(this)
     {
         States = new List<WindowState>()
         {
             new WindowState { State = "Snapped", MatchCriterium = (w, h) => w < 500 },
             new WindowState { State = "Vertical", MatchCriterium = (w, h) => h > w && w >= 500 },
             new WindowState { State = "Horizontal", MatchCriterium = (w, h) => h <= w && w >= 500 }
         }
     };
 }