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

Binding to Value #5

Open
astroman133 opened this issue Feb 16, 2020 · 0 comments
Open

Binding to Value #5

astroman133 opened this issue Feb 16, 2020 · 0 comments

Comments

@astroman133
Copy link

When I first started using the control, it appeared that databinding to the Value control was not working. However I figured out that the default binding mode (OneWay) was being used. I changed the definition of the associated DependencyProperty to be TwoWay by default, as follows:

    public readonly static DependencyProperty ValueProperty = DependencyProperty.Register(
        "Value",
        typeof(decimal),
        typeof(NumericUpDown),
        new FrameworkPropertyMetadata( 0M, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault ) );
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

No branches or pull requests

1 participant