Skip to main content

Microsoft Silverlight

Answered Question how to navigate back to HomePage.xaml from a child window to xamlRSS Feed

(0)

BIKUN
BIKUN

Member

Member

3 points

15 Posts

how to navigate back to HomePage.xaml from a child window to xaml

Here the scenario is 1. There is a navigation control having hyperlink buttons
2. when the user clicks on any hyperlink button except home, the user will get a login screen (a childWindow having ok and cancel button). 3. now the query is

if the user doesn't want to enter the login data and clicked on the "cancel button" how can the user be navigated to "home.xam"l.

how can we navigate back to homepage. Please suggest

Giftednewt
Giftednewt

Member

Member

365 points

64 Posts

Answered Question

Re: how to navigate back to HomePage.xaml from a child window to xaml

You could attach an event handler to the Closed event on the ChildWindow you are creating. Then check the DialogResult property in the event handler.

As long as you set the DialogResult to false if the user clicks cancel button and true if the user logs in from within the ChildWindow you shouldn't have any problems

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities