wpf start window

Posted on 2008-11-18
Medium Priority
Last Modified: 2013-11-12
In a wpf project, your default window is Window1.xaml.  I have created a new window, but do not know how to get that window to be the startup window when I compile the project.
Question by:dchau12
  • 2
  • 2

Author Comment

ID: 22989019
wow... I guess there is not much experts-exchange help available for WPF

Accepted Solution

westerdale earned 2000 total points
ID: 23050066
something like...
Me.browserFrame.Navigate(New Uri("page2.xaml", UriKind.RelativeOrAbsolute))

People help where they can. Impatient patronizing, tends to lead to you being ignored

Expert Comment

ID: 23054980
For starting/compiling  with a xaml
go to My Project/Application
Startup Uri/ and select the file you want to start first


Author Comment

ID: 23068673
I figured this out long ago.  You have to change the startup xaml file in the app.xaml file.

There could be a different way to do this.  I cannot follow your instructions though.  

"Form Starting/compiling with xaml" ???

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question