We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the purpose of ValueChangeMode in SfNumericTextBox?

The ValueChangeMode property is used to update the value property when a key is pressed or focus is lost. It contains two options described below:

  1. OnLostFocus
  2. OnKeyFocus

OnkeyFocus: When the ValueChangeMode is OnKeyFocus, the value will be changed for each keypress. The following code demonstrates how to set the ValueChangeMode as OnKeyFocus.






OnLostFocus: The value in the SfNumericTextBox change will be updated when the control is no longer focused. The following code demonstrate how to set the ValueChangedMode property as OnLostFocus.











<Grid x:Name="Grid1" Background="Black">

<editors:SfNumericTextBox x:Name="NumericTextBox1" Width="200" Height="23" ValueChangedMode="OnLostFocus"/>





using Syncfusion.UI.Xaml.Controls.Input;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace Windows_new


/// <summary>

/// An empty page that can be used on its own or navigated to within a Frame.

/// </summary>

public sealed partial class MainPage : Page


public MainPage()




SfNumericTextBox NumericTextBox1 = new SfNumericTextBox();

NumericTextBox1.Width = 200;

NumericTextBox1.Height = 23;

NumericTextBox1.ValueChangedMode = ValueChange.OnLostFocus;






Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
6595 03/30/2016 03/30/2016 WinRT SfNumericTextBox 4.5
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon