Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Page vs Window & navigation to new window

$
0
0

I am finally working my way into WPF using VS2013.  As an old-school WinForm developer with some xaml for windows phone 7 experience, I'm having a hard time getting my head around the concept of windows and pages.  Maybe what I'm trying to do is the wrong architecture or not best practice, but...I wanting to create a main page (or window?) for the main application. I am looking for a borderless layout so the "MainWindow.xaml" seems to look nice.  I tried creating a "MainPage.xaml" page but it opens in a larger "browser" style frame, which is NOT what I want.  To create a "settings" page or window, I added a new WPF Windows called SettingsWindow.xaml to the project.  However, I am not able to figure out how to "navigate" to that new window as Navigation(this) returns null.  I tried playing with creating a new Window() and then using newWindow.Show() but how/where do I set the xaml filename to run?  Other threads talk about creating a window frame. How? I'm lost and confused and looking for guidance. Thanks (And HAPPY NEW YEAR).


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>