Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Now I am working on WPF with C#. In WPF, Everyone knows when you run the code a window is open. I need to open two window at a time when I run the program. Please see this basic code of App.xaml :
<Application x:Class="TwoWindowProblem.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             StartupUri="MainWindow.xaml">
    <Application.Resources>
         </Application.Resources>
</Application>

From here we can see Application Form run the MainWindow by using StartupUri="MainWindow.xaml". So how can add another window ?? The purpose of my program is -When i will write in one window then the impact will show by another window.So please help me by providing some sample code.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-13 0:10am    
Why showing this XAML? I mean, the question looks so weird to me that I have a terrifying idea: don't you mean to make the hole application in XAML? I thought about it because in code showing a window is way too trivial. Please forgive me if I was mistaken about it.
—SA

1 solution

You are missing something basic. Sample code? Come on, this is all you need:
http://msdn.microsoft.com/en-us/library/system.windows.window.show.aspx[^].

—SA
 
Share this answer
 
Comments
sachi Dash 20-Feb-13 0:40am    
Thanks Brother... :D
Sergey Alexandrovich Kryukov 20-Feb-13 0:51am    
My pleasure. If you face problems, don't hesitate to ask.
Cheers,
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900