/// <summary> /// Switch from the view mode to edit mode /// </summary> private void EditStoryButton_Click(object sender, RoutedEventArgs e) { LoadStoryText(StoryRichTextBox.Document); StoryEditBorder.Visibility = Visibility.Visible; StoryViewBorder.Visibility = Visibility.Hidden; StoryRichTextBox.Focus(); }
private void EditStoryButton_Click(object sender, RoutedEventArgs e) { // Load the person story into the editor LoadStoryText(StoryRichTextBox.Document); // Switch from the view mode to edit mode StoryEditBorder.Visibility = Visibility.Visible; StoryViewBorder.Visibility = Visibility.Hidden; StoryRichTextBox.Focus(); }