Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
igEditors:XamNumericEditor SelectAll() on Focu


I am using the XamNumericEditor and wonder if there is a better solution how to select whole content of the control. What I have seen so far is related to code behind and SelectAll().

The idea to create the same codeline over and over again does not look interessting to me.

Is there a property like SelectAllOnFocus that does the trick?



  • 300
    Verified Answer
    Offline posted

    Hello Nikolaus,

    The requested feature is not currently supported out of the box. However, I can suggest implementing a style with event setter so you can use it just as you would with a property:

                <Style TargetType="{x:Type igEditors:XamNumericEditor}" x:Key="styleName">
                    <EventSetter Event="GotFocus" Handler="HandleFocusEditorEvent"/>

    And in code behind:

    private void HandleFocusEditorEvent(object sender, RoutedEventArgs e)

    Should you have any further questions, please let me know.

    Tihomir Tonev
    Associate Software Developer

Reply Children
No Data