Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Created my WPF windows application using C#.net...here i hav 2 xaml pages (i.e),Windows1.xaml and Windows2.xaml...i add one button(button1) in Windows1.xaml..here i want navigate to Windows2.xaml when am click on button1 in Windows1.xaml

Please help me out.........
Posted
Updated 11-Aug-11 1:12am
v2

1 solution

When you click the button:
C#
if(_myWindows2 == null)
{
    _myWindows2 = new Windows2();
    _myWindows2.Show();
}
else
    _myWindows2.Activate();
 
Share this answer
 
Comments
Espen Harlinn 6-Oct-11 10:35am    
Nice & Simple :)

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