private void UpdateText(object sender, RoutedEventArgs e) { TextBoxText.GetBindingExpression(TextBox.TextProperty).UpdateSource(); }