This may not help the situation and is probably not suitable for this, however you talked about the event OnPropertyChangingfor your dependency properties.
, PropertyMetadata, , , EventArgument.
Text
public static DependencyProperty TextProperty = DependencyProperty.Register
("Text", typeof(string),
typeof(DecimalTextBox),
new PropertyMetadata("", OnTextPropertyChanged));
- , . PropertyMetadata . - , propertychanged, , .
, , .
private static void OnTextPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
{
var box = ((TextBox)sender);
if (((string)e.NewValue)==badvalue)
box.Text= e.OldValue);
}
, , , , , null . (, , NULL, ItemSource, itemssource [ - ItemsSource, reset ]). , - .
u_u