Exemplo n.º 1
0
        private void ContentPercentageTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            NumValidations.validateTextDouble(sender, e);
            var textBox = sender as TextBox;

            if (textBox != null)
            {
                textBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
            }
        }
Exemplo n.º 2
0
 private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     NumValidations.validateTextDouble(sender, e);
     ((TextBox)sender).GetBindingExpression(TextBox.TextProperty).UpdateSource();
 }