public HubPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; }
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 } } }; }