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

            textBoxReadText.Text += newText;
        }
Example #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();
        }
Example #3
0
 protected virtual void OnTextAddedcustom(TextBoxArgs e)
 {
     textAddedcustom?.Invoke(this, e);
 }