Click here to Skip to main content
14,390,083 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi, I'm new to WPF and have a question about when click on the start debug without debugging(Ctrl + F5) can run on other particular WPF windows instead of the MainWindow.xaml??? As this can be done in create web page in c# and the same method can apply in WPF???

Re-ask for making the question more clearer:
My question is quite same with the article: "Walkthrough: Debug a WPF window or Windows Form without running your application".

The link: http://blogs.msdn.com/b/habibh/archive/2009/07/17/walkthrough-debug-a-wpf-window-or-windows-form-without-running-your-application-video.aspx

I will take the picture as an example:
http://blogs.msdn.com/blogfiles/habibh/WindowsLiveWriter/DebugaWPFwindoworWindowsFormwithoutrunni_FD38/image_3.png

From the picture, the project have 4 WPF windows such as:
1. App.xaml
2. Create...so on.xaml
3. MainWindows.xaml
4. ViewChart... so on.xaml

When every time in VS 2010, I click on the starting debugging (F5) or start without debugging(Ctrl + F5) will always run the MainWindows.xaml. What the reason coz this? Is this because of in the App.xaml that we declare StartupUri="MainWindow.xaml".

Can I run the particular WPF windows such number 4. ViewChart... so on.xaml instead of the whole application(*Such as the MainWindows.xaml)?

Reply is gracefully welcome~~
Posted
Updated 14-Sep-13 17:40pm
v2
Comments
NotPolitcallyCorrect 14-Sep-13 15:55pm
   
Yes you can change which window is the main page. WPF != web page.
Sergey Alexandrovich Kryukov 14-Sep-13 20:25pm
   
I'm not sure that's the OP's question. It could be a confusion on how a WPF application works in principle, or how debugging works. The question is not clear.
What you say answers to the question "how to change the main window", not about "other windows"...
—SA
A-MaxLee 14-Sep-13 22:18pm
   
Thks for the reply ~~ Sorry for the inconvenient for you need to declare & correct me about the difference of Web page & WPF ...Haha

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100