/// <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();
        }
Exemple #2
0
        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();
        }