Пример #1
0
        private void EditTextwin_textAddedcustom(object sender, TextBoxArgs e)
        {
            string escapeChar = "\r\n";
            string newText    = e.Content.Content + escapeChar;

            textBoxReadText.Text += newText;
        }
Пример #2
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            TextBoxArgs textBoxArgs = new TextBoxArgs();
            TextContent textContent = new TextContent();

            textContent.Content = textBoxEditText.Text;
            textBoxArgs.Content = textContent;

            OnTextAddedcustom(textBoxArgs);
            textBoxEditText.Clear();
        }
Пример #3
0
 protected virtual void OnTextAddedcustom(TextBoxArgs e)
 {
     textAddedcustom?.Invoke(this, e);
 }