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

Is it possible supporting Command Binding for ValueChanged Event? #40

Closed
heartacker opened this issue Jul 2, 2022 · 4 comments · Fixed by #46
Closed

Is it possible supporting Command Binding for ValueChanged Event? #40

heartacker opened this issue Jul 2, 2022 · 4 comments · Fixed by #46

Comments

@heartacker
Copy link
Contributor

now we have to use ValueChanged="UIntegerUpDown_ValueChanged"
can we use binding Command for this event?

@heartacker
Copy link
Contributor Author

@Dirkster99 I am unable to dev the complicated feature, But I need this indeed for my MVVM.

Could you please help me. Thanks a lot

@Dirkster99
Copy link
Owner

I guess this was about the Cntrl+Enter force trigger value changed event, right? If so, can we close this? If not, please explain more detailed what you are trying to accomplish and why.

I am not sure if I can help with this Command binding but maybe someone else in the community can help once its clearer what you are trying to solve. thanx

@heartacker
Copy link
Contributor Author

sorry for my confuse
use button for example

  • we can use command binding for click action
<Button Command="{Binding SearchAvailableDriver}"/>
  • we can use clicked event for click action
<Button Click="SearchAvailableDriver_Clicked"/>

I notice that NumericUpDownLib have to use event for value changed. I just want to Bingding to a Command just like Button above demo

ValueChanged="UIntegerUpDown_ValueChanged"

@heartacker heartacker changed the title Is it possible supporting Command for ValueChanged Event? Is it possible supporting Command Binding for ValueChanged Event? Jul 21, 2022
@heartacker
Copy link
Contributor Author

heartacker added a commit to heartacker/NumericUpDownLibEx that referenced this issue Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants