Ejemplo n.º 1
0
        private void OnInputReady(object sender, EventArgs e)
        {
            Debug.WriteLine("homeScreen onInputReady");

            if (e.GetType() == typeof(MenuItemSelectedEventArgs))
            {
                menuScreen.UserEnteredInput -= OnInputReady;

                MenuItemSelectedEventArgs menuEventArgs = e as MenuItemSelectedEventArgs;
                MenuItem menuItem = menuEventArgs.SelectedItem as MenuItem;
                nextState = menuItem.Lable;

                ServiceLocator.Instance.CurrentWorkFlow.ResumeBookmark(bookmarkName, null);
            }
            else if (e.GetType() == typeof(MouseOnViewEventArgs))
            {
                menuScreen.UserEnteredInput -= OnInputReady;
                nextState = "FinalState";
                ServiceLocator.Instance.CurrentWorkFlow.ResumeBookmark(bookmarkName, null);
            }
            else if (e.GetType() == typeof(LoginButtonClickedEventArgs))
            {
                menuScreen.UserEnteredInput -= OnInputReady;
                Debug.WriteLine("loginButtonClickedEvent");
                nextState    = "FinalState";
                nextWorkFlow = "LoginWorkFlow";
                ServiceLocator.Instance.CurrentWorkFlow.ResumeBookmark(bookmarkName, null);
            }
        }
        private void ActionMenuItemSelectedEventHandler(object sender, MenuItemSelectedEventArgs e)
        {
            ShellDrillDownMenuItem action = e.SelectedItem as ShellDrillDownMenuItem;

            if ((action != null))
            {
                IInputElement element = FocusManager.GetFocusedElement(Application.Current.MainWindow);
                ((UIElement)e.Source).Focus();

                if (element != null)
                {
                    element.Focus();
                }

                Presenter.ExecuteAction(action);
            }
        }
Ejemplo n.º 3
0
 private void SlideMenu_MenuItemSelected(object sender, MenuItemSelectedEventArgs e)
 {
     string clientID = e.Item.ClientID;
 }