Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 private void Paste_Click(object sender, RoutedEventArgs e)
 {
     DocBox.Paste();
 }
Ejemplo n.º 4
0
 private void Copy_Click(object sender, RoutedEventArgs e)
 {
     DocBox.Copy();
 }