Joel Clipperton

I'd like some advice. Im designing a messaging app much like that of Windows Live Messenger. Previously I had used a canvas to host whatever custom control I had designed whether it be a userlist, roomlist, or a third part service. For the most part this worked great.

Now with WPF pages are available to use as well. Let's say i'm designing the login portion of the app. As with Live Messenger, you have a login screen which upon successful login shows a whole the user list, etc. What I'd like to do is use a frame (sized the same as the wpf window) to host each different portion of the login process. Once page for the login credentials, another to show the status, and then another one yet to show the main interface portion of the app.

Is it feasable to use Pages to accomplish what I'd like to do




Re: Windows Presentation Foundation (WPF) To use Pages or not?

Nicholas Palmer

Yep that will work. Or you can use the NavigationWindow and shut off the NavigationUI and have the pages hosted at the top level. Either way it works well.

--nick





Re: Windows Presentation Foundation (WPF) To use Pages or not?

Joel Clipperton

Ok, Great!

When I want to access a method on the calling window from the page I have loaded, should I initially pass a calling window reference [dim p1 as new page1(me) ] to the page Then, assign that to a private variable on the page and access the the window's methods via that variable. I've used that before but just wondering in this case if that's the best way to do it.






Re: Windows Presentation Foundation (WPF) To use Pages or not?

crushmeguy

I am also looking for the correct way to reference the parent window of a page. So far I have been using the method you are describing, Joel.