private void _textBox_TextChanged(object sender, TextChangedEventArgs e) { try { if (_enableEvents) { DisplayableProperty <TKey, ReadableTuple <TKey> > .ValidateUndo(_tab, _textBox.Text, _attribute); } } catch (Exception err) { ErrorHandler.HandleException(err); } }
private void _textBox_TextChanged(object sender, TextChangedEventArgs e) { try { DisplayableProperty <TKey, ReadableTuple <TKey> > .ValidateUndo(_tab, _textBox.Text, _attribute); UpdatePreview(); if (_textPreview.Text == "") { _textPreview.Visibility = Visibility.Collapsed; } else { _textPreview.Visibility = Visibility.Visible; } } catch (Exception err) { ErrorHandler.HandleException(err); } }