public BbCodeListPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public UserProfilePage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
        public MainPage()
        {
            this.InitializeComponent();
            App.RootFrame = MainFrame;
            App.RootFrame.Navigated += RootFrameOnNavigated;
            Locator.ViewModels.MainPageVm.MainPageSplitView = Splitter;
            if (_localSettings.Values.ContainsKey(Constants.BookmarkStartup))
            {
                if ((bool) _localSettings.Values[Constants.BookmarkStartup])
                {
                    var test = new NavigateToBookmarksCommand();
                    test.Execute(null);
                }
                else
                {
                    var test2 = new NavigateToMainForumsPage();
                    test2.Execute(null);
                }
            }
            else
            {
                var test3 = new NavigateToMainForumsPage();
                test3.Execute(null);
            }

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;
        }
 public SaclopediaEntryPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public MainForumsPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public SearchResultsPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public NewThreadReplyPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public NewPrivateMessagePage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public PrivateMessagePage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
     ThreadFullView.NavigationCompleted += WebView_OnNavigationCompleted;
     ThreadFullView.ScriptNotify += WebViewNotifyCommand.WebView_ScriptNotify;
 }
        public SettingsPage()
        {
            this.InitializeComponent();
            if (_localSettings.Values.ContainsKey(Constants.BackgroundWallpaper))
            {
                BackgroundWallPaperSwitch.IsOn = (bool)_localSettings.Values[Constants.BackgroundWallpaper];
            }
            if (_localSettings.Values.ContainsKey(Constants.BookmarkBackground))
            {
                BookmarkLiveTiles.IsOn = (bool)_localSettings.Values[Constants.BookmarkBackground];
            }
            if (_localSettings.Values.ContainsKey(Constants.BookmarkStartup))
            {
                LoadBookmarksOnLoadSwitch.IsOn = (bool)_localSettings.Values[Constants.BookmarkStartup];
            }

            if (_localSettings.Values.ContainsKey(Constants.AutoRefresh))
            {
                AutoReloadSwitch.IsOn = (bool)_localSettings.Values[Constants.AutoRefresh];
            }

            if (_localSettings.Values.ContainsKey(Constants.OpenInBrowser))
            {
                InternetEnable.IsOn = (bool)_localSettings.Values[Constants.OpenInBrowser];
            }

            if (_localSettings.Values.ContainsKey(Constants.DarkMode))
            {
                DarkLightThemeSwitch.IsOn = (bool)_localSettings.Values[Constants.DarkMode];
            }
            else
            {
                // If the mode was never set, it's automatically true unless the user actually sets it to false.
                DarkLightThemeSwitch.IsOn = false;
            }

            if (_localSettings.Values.ContainsKey(Constants.ThemeDefault))
            {
                ThemeComboBox.SelectedIndex = (int)_localSettings.Values[Constants.ThemeDefault];
            }

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;
        }