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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is there the possibility to set the caret input position of IntegerTextBox control?

Thread ID:





149641 Dec 4,2019 09:27 AM UTC Dec 5,2019 11:25 AM UTC WPF 1
Tags: IntegerTextBox
Asked On December 4, 2019 09:27 AM UTC


I'd like to set the caret input position of an IntegerTextBox to the end of the current text, but I'm not able to figure out how to do it.
For example, for WPF TextBox there is the "CaretIndex" property that I can't find on this control.
Is there any possibility?

Niranjan Kumar Gopalan [Syncfusion]
Replied On December 5, 2019 11:25 AM UTC

Hi Silvio, 
Thanks for contacting syncfusion support. 
We have analyzed your query regarding “Set the caret input position of an IntegerTextBox to the end of the current text” and you can use SelectionStart  property to set the caret position at the end of current text and change the value of TextSelectionOnFocus property to false. But the entire text selection when focus is set to IntegerTextBox won’t work.  Please refer the code snippet below. 
public MainWindow() 
            integertextbox.TextSelectionOnFocus = false; 
            integertextbox.GotFocus += Integertextbox_GotFocus; 
        private void Integertextbox_GotFocus(object sender, RoutedEventArgs e) 
            integertextbox.SelectionStart = integertextbox.Text.Length; 
Niranjan Kumar 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon