Skip to main content
Home Forums Silverlight Programming Programming with .NET - General how to navigate back to HomePage.xaml from a child window to xaml
1 replies. Latest Post by Giftednewt on November 5, 2009.
(0)
BIKUN
Member
3 points
15 Posts
11-05-2009 1:16 AM |
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
365 points
64 Posts
11-05-2009 8:48 AM |
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