Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumericUpDown: Add a property to control changing value with key Enter #3526

Merged
merged 4 commits into from Jun 7, 2019

Conversation

punker76
Copy link
Member

@punker76 punker76 commented Jun 6, 2019

Describe the changes you have made to improve this project

This PR was create after discussing with @wunianqing (#3522): The NumericUpDown control will response on every enter and change their value. This will cause a strange behavior when you binding value to a control like Slider. So I added a property to allow value effect after press enter.

  • Add a new dependency property ChangeValueOnTextChanged to enable changing value from manually user input. This property indicates whether the value will be changed directly on every TextBox text changed event or when using the Enter key.
  • Add also a new dependency property UpDownButtonsFocusable to allow changing the Focusable property of the up and down buttons.
    The default is true to keep the current behavior. If the up or down button will be used then the focus will move to it and triggers the lost focus event of the inner TextBox to change the value.

Additional context

Add any other context or screenshots about the feature request here.

Closed Issues

Add new dependency property UpDownButtonsFocusable to allow changing the Focusable property of the up and down buttons.

The default is true to keep the  current behavior. If the up or down button will be used then the focus will move to it and triggers the lost focus event of the inner TextBox to change the value.
@punker76 punker76 added this to the 2.0.0 milestone Jun 6, 2019
Add new dependency property ChangeValueOnTextChanged which indicates whether the value will be changed directly on every TextBox text changed event or when using the Enter key.
@punker76 punker76 merged commit 2d8d99c into develop Jun 7, 2019
@punker76 punker76 deleted the feature/NumericUpDown_Focus_ChangeOnEnterKey branch June 7, 2019 09:26
@punker76
Copy link
Member Author

punker76 commented Jun 7, 2019

@wunianqing your changes have been merged, thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant