Activate() публичный Метод

Displaying (or 'activating') the control on the screen.
public Activate ( EditNameDialogMode mode, string dialogData = "" ) : void
mode EditNameDialogMode EditNameDialog mode.
dialogData string
Результат void
        //Activating the dialog for inputing the name of new shopping list
        private void ApplicationBarIconButtonNewList_Click(object sender, EventArgs e)
        {
            editNameDlg = new EditNameDialog();

            //Handlers for processing dialog's events
            editNameDlg.ButtonOK.Click += new RoutedEventHandler(ButtonOK_Click);
            editNameDlg.ButtonCancel.Click += new RoutedEventHandler(ButtonCancel_Click);
            editNameDlg.CollapsedVisualState.Storyboard.Completed += new EventHandler(Storyboard_Completed);

            //Actually activating the dialog
            LayoutRoot.Children.Add(editNameDlg);
            editNameDlg.Activate(EditNameDialog.EditNameDialogMode.AddingNewList);
            ApplicationBar.IsVisible = false;
        }
        //Activating the dialog for inputing new name of the current shopping list
        private void ApplicationBarIconButtonRenameList_Click(object sender, EventArgs e)
        {
            ShoppingList renameList = this.GetCurrentShoppingList();
            if (renameList != null)
            {
                editNameDlg = new EditNameDialog();

                //Handlers for processing dialog's events
                editNameDlg.ButtonOK.Click += new RoutedEventHandler(ButtonOK_Click);
                editNameDlg.ButtonCancel.Click += new RoutedEventHandler(ButtonCancel_Click);
                editNameDlg.CollapsedVisualState.Storyboard.Completed += new EventHandler(Storyboard_Completed);

                //Actually activating the dialog
                LayoutRoot.Children.Add(editNameDlg);
                editNameDlg.Activate(EditNameDialog.EditNameDialogMode.RenamingList, renameList.ListName);
                ApplicationBar.IsVisible = false;
            }
        }
        private void RenameMenu_Click(object sender, RoutedEventArgs e)
        {
            MenuItem menu = sender as MenuItem;
            SkyDriveFileInfo info = menu.DataContext as SkyDriveFileInfo;
            this.renameFileId = info.FileID;

            editNameDlg = new EditNameDialog();

            //Handlers for processing dialog's events
            editNameDlg.ButtonOK.Click += new RoutedEventHandler(ButtonOK_Click);
            editNameDlg.ButtonCancel.Click += new RoutedEventHandler(ButtonCancel_Click);
            editNameDlg.CollapsedVisualState.Storyboard.Completed += new EventHandler(Storyboard_Completed);

            //Actually activating the dialog
            LayoutRoot.Children.Add(editNameDlg);
            editNameDlg.Activate(EditNameDialog.EditNameDialogMode.RenamingList, info.Name);
        }