Пример #1
0
		private void OnInitialized(object sender, EventArgs e)
		{
			var mainMenu = (MainMenu)FindName("Main");
			var startMenu = (StartMenu)FindName("Start");
			var settingsMenu = (SettingsMenu)FindName("Settings");

			var model = new MenuDemoModel(mainMenu, startMenu, settingsMenu);
			
			mainMenu.DataContext = model;
			startMenu.DataContext = model;
			settingsMenu.DataContext = model;
			
			mainMenu.FadeIn();
		}
Пример #2
0
        public void OnPostInit()
                #endif
        {
            var mainMenu     = (MainMenu)FindName("Main");
            var startMenu    = (StartMenu)FindName("Start");
            var settingsMenu = (SettingsMenu)FindName("Settings");

            var model = new MenuDemoModel(mainMenu, startMenu, settingsMenu);

            mainMenu.DataContext     = model;
            startMenu.DataContext    = model;
            settingsMenu.DataContext = model;

            mainMenu.FadeIn();
        }
Пример #3
0
		public void OnPostInit()
		#endif
		{
			var mainMenu = (MainMenu)FindName("Main");
			var startMenu = (StartMenu)FindName("Start");
			var settingsMenu = (SettingsMenu)FindName("Settings");

			var model = new MenuDemoModel(mainMenu, startMenu, settingsMenu);
			
			mainMenu.DataContext = model;
			startMenu.DataContext = model;
			settingsMenu.DataContext = model;
			
			mainMenu.FadeIn();
		}