public MainWindow() { InitializeComponent(); simbols_count.Content = "0"; word_count.Content = "0"; if (count == 0) { Title += " Window " + 1; } count++; DocBox.AddHandler(RichTextBox.DragOverEvent, new DragEventHandler(DocBox_DragOver), true); DocBox.AddHandler(RichTextBox.DropEvent, new DragEventHandler(DocBox_Drop), true); // LastFiles.ItemsSource = path; ReadLastFiles(); }
private void FontType_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { var fontName = FontType.SelectedItem; if (fontName != null) { DocBox.Selection.ApplyPropertyValue(FontFamilyProperty, fontName); DocBox.Focus(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Paste_Click(object sender, RoutedEventArgs e) { DocBox.Paste(); }
private void Copy_Click(object sender, RoutedEventArgs e) { DocBox.Copy(); }