They actually work hand in hand and very much complement each other.
One of the issues with MVVM is it does not deal with Navigation between views
very well, its strengths lie in a View with a ViewModel and nice interactions
on a single view. It actually doesn't help you navigate between views using
MVVM.
For example:
<Grid>
<!-- Lots of xaml -->
<Button Commands:Navigate.To="Home.AboutPage"
Content="About Me" />
</Grid>
This gives you navigation between views without handling the click event (ootb
Navigator is only available on the view), or even without creating a Command on
your viewmodel. The above example will navigate to a controller named
HomeController and an action called About or AboutPage by convention.
In short MVC will give you the best of both worlds =)
Regards
Jake Ginnivan
Readify | Senior Developer | MVP (VSTO)
M: +61 403 846 400 | E:
[email protected]<mailto:[email protected]> | W:
www.readify.net<http://www.readify.net/>
From: Jake Lin [mailto:[email protected]]
Sent: Wednesday, 6 July 2011 11:19 AM
To: ozDotNet; Jake Ginnivan
Subject: Re: Windows Phone Foundations
Hi Jake
I am doing some Windows Phone Development using MVVM. I want to ask a stupid
questing. Can we use MVVM and MVC together, seems MVVM more native to XAML
because it uses data binding, And MVC uses name conversions as far as I know,
not good at it.
Cheers,
Jake
On 18 June 2011 15:15, Jake Ginnivan
<[email protected]<mailto:[email protected]>> wrote:
Hey all,
For anyone doing phone development, myself and a few others have put together
http://windowsphonefoundations.net/
Currently it has 4 projects on it.
Windows Phone Essentials - Phone Abstractions, Settings Provider, Async helpers
etc. Basically code helpers
Windows Phone MVC - MVC for windows phone, type safe nav, and a heap of other
cool things
Windows Phone MVP - Inspired from web forms MVP, if you like the MVP pattern
rather than MVC.
Both the MV* frameworks rely on essentials, that way you can have the same sort
of feature set no matter the pattern you enjoy working with.
The last project is MetroPimp which helps you implement push notifications
easily.
So if you are doing phone dev, I would love some feedback =)
Cheers,
Jake