Пример #1
0
        private void clear_Click(object sender, RoutedEventArgs e)
        {
            SpellChecking.FocusedRTB.BeginChange();

            SpellChecking.FocusedRTB.Selection.ClearAllProperties();
            SpellChecking.FocusedRTB.Selection.ApplyPropertyValue(Paragraph.MarginProperty, new Thickness(0));
            TextEditing.ChangeRTBParagraphBackground(SpellChecking.FocusedRTB, null);

            SpellChecking.FocusedRTB.EndChange();

            UpdateFormattingUI();
        }
Пример #2
0
 private void backgroundColor_OnSelectedChangedEvent(object sender, EventArgs e)
 {
     SpellChecking.FocusedRTB.BeginChange();
     TextEditing.ChangeRTBParagraphBackground(SpellChecking.FocusedRTB, backgroundColor.SelectedColor);
     SpellChecking.FocusedRTB.EndChange();
 }