Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();
            AchievementSystem.Load();

            // which window size is used?

            /*
             * if (Styles.WindowSizeGenerator.windowSize == "Maximum")
             * {
             *  this.WindowState = WindowState.Maximized;
             *  this.ResizeMode = System.Windows.ResizeMode.NoResize;
             *  this.WindowStyle = System.Windows.WindowStyle.None;
             *  //this.Topmost = true;
             * }
             * else
             * {
             *  this.WindowState = WindowState.Normal;
             * }*/

            /*
             * this.MinHeight = Styles.WindowSizeGenerator.mainWindowMinHeight;
             * this.MinWidth = Styles.WindowSizeGenerator.mainWindowMinWidth;
             * this.Height = this.MinHeight;
             * this.Width = this.MinWidth;
             */

            // show navigation page first
            NavigationPage firstPage = new NavigationPage();

            firstPage.holderWin = this;
            this.Navigate(firstPage);
        }