When I using increment decrement with mouse, it works well. But when I am trying to write the value by keyboard, event handler reacts every keystroke. I triend to use UpdateValueOnEnterKey="True", but in this case increment decrement with mouse doesn`t react. How to make it work this way: when I click on increment/ decrement it should work instantaneously, but when I typing the value by keyboard it should work only after i press enter?
<toolkit:IntegerUpDown x:Name="AnyName" Grid.Column="0" Grid.Row="2" Margin="5, 2, 10, 2"
Grid.ColumnSpan="4"
FormatString="N0"
ValueChanged="AnyName"
/>
private void AnyName_ValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{
if (AnyName.IsLoaded)
{
string s = String.Format(CultureInfo.InvariantCulture, AnyName.Value.ToString());
Console.WriteLine(s);
}
}