I am Silverlight beginner and Under a situation that i have to created the login pop up which lets the user go in further on entering the "Ok" button but i want the application to be closed on "Cancel" button click .
Actually this login pop up is a ChildWindow
I have tried both Application.Current.MainWindow.Close();
and Application.Current.Exit;
none of them work. Could some one please help me in achieving my target.