Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }