private static void OnCultureChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var textBox = d as TextBox; if (textBox != null && textBox.GetSourceValueType() != null) { RawValueTracker.Update(textBox); textBox.RaiseEvent(FormattingDirtyArgs); } }
private static void OnStringConverterChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var textBox = d as TextBox; if (textBox != null) { textBox.CoerceValue(MinProperty); textBox.CoerceValue(MaxProperty); RawValueTracker.Update(textBox); textBox.RaiseEvent(FormattingDirtyArgs); } }