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

Added support for binding to properties of Component (WinForms) #721

Merged
merged 1 commit into from
Sep 15, 2014

Conversation

vanderkleij
Copy link
Contributor

This is related to my previous pull request. You can only bind one-way to properties of WinForms Components: the property will be set upon ViewModel changes, but no notifications are received for changes to the Component. This problem does not occur with Controls, because notifications are triggered for changes to Control properties correctly.

There are properties of Components that are very suitable for two-way binding however, such as ToolStripButton.Checked. This pull request remedies the problem by adding change nofications for properties of a Component.

The test WinformsCreatesObservableForPropertyWorksForComponents illustrates the problem. The one-word change to WinformsCreatesObservableForProperty makes the test pass.

@rikbosch
Copy link
Contributor

👍

anaisbetts pushed a commit that referenced this pull request Sep 15, 2014
Added support for binding to properties of Component (WinForms)
@anaisbetts anaisbetts merged commit 5dc5577 into reactiveui:master Sep 15, 2014
@anaisbetts
Copy link
Member

Looks good, thanks @vanderkleij!

@lock lock bot locked and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants