/// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            if (IsInDesignMode)
            {
                // Code runs in Blend --> create design time data.
            }
            else
            {
                // Code runs "for real"
            }

			//#region 1. Initialize Menu

			this.MainMenuTree = new Framework.Xaml.MenuTreeItem();

			//#endregion 1. Initialize Menu

            //#region 2. Initialize NavigationSettingCollection

            this.NavigationSettingCollection = new Framework.NavigationSettingCollection();

            //#endregion 2. Initialize NavigationSettingCollection

            //#region 3. Initialize MenuItemSelectedCommand

            this.MenuItemSelectedCommand = new RelayCommand(MenuItemSelected);

            //#endregion 3. Initialize MenuItemSelectedCommand
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            if (IsInDesignMode)
            {
                // Code runs in Blend --> create design time data.
            }
            else
            {
                // Code runs "for real"
            }

            //#region 1. Initialize Menu

            this.MainMenuTree = new Framework.Xaml.MenuTreeItem();

            //#endregion 1. Initialize Menu

            //#region 2. Initialize NavigationSettingCollection

            this.NavigationSettingCollection = new Framework.NavigationSettingCollection();

            //#endregion 2. Initialize NavigationSettingCollection

            //#region 3. Initialize MenuItemSelectedCommand

            this.MenuItemSelectedCommand = new RelayCommand(MenuItemSelected);

            //#endregion 3. Initialize MenuItemSelectedCommand
        }