Hi ,
how navigate from one page to Another page in wpf windows
How yo navigate
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 27, 2013, 3:01 AM EDT
Try like this
Regards,
Iftikar
Kiran Kumar TalikotiRank #814 · 2.8K reputationPosted Sep 15, 2013, 10:26 PM EDT
check this,
Suppose If u have a button .If you click that button it will navigate to other page.
First u have to create an object for the page which u want to navigate and use navigation service method and pass that object .
EX:
private void button_Click()
{
Login log=new Login(); //this is the page u want to navigate
this.navigationservice.navigate(log); //pass obj of that page in navigate method
}
Sanjay KumarRank #561 · 4.3K reputationPosted Sep 15, 2013, 10:43 PM EDT
private void button1_Click(object sender, RoutedEventArgs e) { Window1 secondWindow = new Window1(); secondWindow.Show();this.Close();