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

Use Mvvm cross and bind to INotifyPropertyChanged #1

Closed
amerkoleci opened this issue Oct 3, 2014 · 7 comments
Closed

Use Mvvm cross and bind to INotifyPropertyChanged #1

amerkoleci opened this issue Oct 3, 2014 · 7 comments

Comments

@amerkoleci
Copy link
Contributor

Would be possible to bind to INotifyPropertyChanged or use libraries like Mvvm cross?
Wpf has DataContext like concept, how we can bind to external models?
Any sample?

Here is a link on how to bind to an instance of INotifyPropertyChanged:

http://social.msdn.microsoft.com/Forums/en-US/36bf6ecb-70ea-4be3-aa35-b9a9cbc9a078/observable-from-any-property-in-a-inotifypropertychanged-class?forum=rx

Thanks,

Amer

@grokys
Copy link
Member

grokys commented Oct 6, 2014

Hi There,

Yes, my current thinking here will be to use something like ReactiveUI to provide the binding part, as that already does it very well, and as it is bound at compile-time means you get compile-time type checking.

My current thinking is that a DataContext property won't be required as ReactiveUI manages quite well on platforms without one.

I don't want to place a hard dependency on a particular version of ReactiveUI as its development moves quite fast, but as a proof of concept I'm currently working on a "DevTools" console in the Perspex.Diagnostics project for which I am using ReativeUI. You should see some more work being committed there in the coming days.

@grokys
Copy link
Member

grokys commented Oct 6, 2014

One thing I'd like to add is that I'd like to see MVVM as a more first-class concept than in WPF where it often seems tacked-on. In my mind it should be seen as the correct way to build applications.

@amerkoleci
Copy link
Contributor Author

Still working on this?

@grokys
Copy link
Member

grokys commented Nov 25, 2014

Yes, in the background when I have time! My current work project should be finished this week so I should have more time.

@glennblock
Copy link

👍 yes to first class support

@shiftkey
Copy link
Contributor

I don't want to place a hard dependency on a particular version of ReactiveUI as its development moves quite fast, but as a proof of concept I'm currently working on a "DevTools" console in the Perspex.Diagnostics project for which I am using ReactiveUI.

The view bindings API for RxUI hasn't changed significantly since it landed in v4, but 👍 to whatever you end up doing in this area...

@grokys
Copy link
Member

grokys commented Aug 28, 2015

Closing this as I don't see any reason why it wouldn't be supported. In fact, it should be easier than in WPF as PerspexObject implements INotifyPropertyChanged.

@grokys grokys closed this as completed Aug 28, 2015
grokys pushed a commit that referenced this issue Sep 25, 2015
jkoritzinsky pushed a commit that referenced this issue Feb 20, 2018
jkoritzinsky pushed a commit that referenced this issue Apr 29, 2018
kekekeks pushed a commit that referenced this issue Oct 18, 2018
kekekeks pushed a commit that referenced this issue Nov 15, 2018
grokys pushed a commit that referenced this issue Feb 11, 2020
danwalmsley pushed a commit that referenced this issue Jun 5, 2020
danwalmsley pushed a commit that referenced this issue Aug 12, 2020
Takoooooo pushed a commit that referenced this issue Oct 15, 2021
emmauss pushed a commit to emmauss/Avalonia that referenced this issue Oct 25, 2022
maxkatz6 added a commit that referenced this issue Feb 14, 2023
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

4 participants