Showing posts with label Frame. Show all posts
Showing posts with label Frame. Show all posts
1

Page Navigation in WPF MVVM

Posted by Nantharupan on 3:02 AM in , ,
When i tried to follow MVVM architecture in WPF, i faced the challenge of how to do Navigation to pages in Frame. finally i figured it out in the internet.

You need to have  a navigator class like following,



In your App.xml.cs file under the OnStartup method put the following code





Now you can call any pages in the ViewModel like the code follows


Happy Coding



Popular posts

Copyright © 2009 On the way All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.