Need some help for new starters

82 views
Skip to first unread message

xiaog zh

unread,
Jun 27, 2012, 10:29:55 AM6/27/12
to reacti...@googlegroups.com
Hi,
I'm thinking about to use ReactiveUI to develop a WPF app, but i never use both before. Should I learn WPF first or just look into the RxUI examples. I used to develop win form apps use C# a lot by the way.
Thanks a lot for seeing this.

Ken Smith

unread,
Jun 27, 2012, 11:28:38 AM6/27/12
to reacti...@googlegroups.com
In my opinion, learning MVVM and ReactiveUI at the same time would be a bit to swallow, because you're actually learning four things: (1) WPF; (2) the MVVM pattern; (3) reactive programming in general; and (4) ReactiveUI specifically.

That said, one of the reasons I like ReactiveUI is that it allows you to start simple and grow. (I'm still mostly at simple, for what it's worth.) You can start by using ReactiveUI the same way that you would use any MVVM framework, and don't have to learn or even touch the reactive pieces of it at first. Just use the nice little shortcuts it provides: let your ViewModels inherit from ReactiveObject (or ReactiveValidatedObject if you need validations), use this.RaiseAndSetIfChanged() and perhaps an occasional this.WhenAny(), but otherwise don't bother with all the complicated stuff about observables - at least, until you're comfortable with WPF and MVVM.

Hope this helps.

Ken Smith
Cell: 425-443-2359
Email: k...@alanta.com

cubski

unread,
Jun 27, 2012, 11:42:28 AM6/27/12
to reacti...@googlegroups.com
I agree with Ken, trying to apply ReactiveUI without having background in MVVM in WPF (assuming this is the case) would be a bit difficult.

In my opinion, you should start grasping the fundamentals of the MVVM pattern and applying that in WPF. I think that is essential to effectively use ReactiveUI (or any other frameworks for that matter) in WPF/Silverlight/WP/Win8.

xiaog zh

unread,
Jun 27, 2012, 11:57:16 AM6/27/12
to reacti...@googlegroups.com
Thank you! That makes it clear to me.

Ken Smith

unread,
Jun 27, 2012, 12:32:41 PM6/27/12
to reacti...@googlegroups.com
Though you also won't suffer any ill-effects if you just make your ViewModel classes inherit from ReactiveObject . . . you'll get some nice shortcut methods and can worry about the rest later.
Reply all
Reply to author
Forward
0 new messages