void textBox_EventEditTextChange(Widget source, EventArgs e) { if (TextEdited != null) { TextEdited.Invoke(this, textBox.Caption); } }
public void EndEditing() { IsEditing = false; StopCaptureMouse(); if (Text == EditingText) { return; } bool cancelEdit = false; TextEdited?.Invoke(Text, EditingText, ref cancelEdit); if (cancelEdit) { return; } Text = EditingText; }