How to add a Page to Frame using code in WPF
Posted
by Robert Höglund
on Stack Overflow
See other posts from Stack Overflow
or by Robert Höglund
Published on 2008-09-26T07:07:01Z
Indexed on
2010/04/13
11:43 UTC
Read the original article
Hit count: 301
wpf
I have a Window where I have put a Frame. I would like to add a Page to the Frame when I click a button that is also on the Window but not in the Frame. There are several buttons in the Window and each click on a button should load a different Page in the Frame.
Since I'm a total newbie on this WPF stuff it's quite possible that this approach is not the best and I have thought about replacing the Frame with a Canvas and then make UserControls instead of Pages that will be added to the Canvas. I welcome any ideas and suggestions on how to best solve this.
I aiming for a functionality that is similar to the application Billy Hollis demonstrated in dnrtv episode 115. (http://dnrtv.com/default.aspx?showID=115).
© Stack Overflow or respective owner