closing a silverlight window on button click
There are Ok and Cancel buttons in a silverlight window.
When clicking cancel button on that window how can I close the window?
Answers & Comments...
Answer: 1
Answer: 2
Answer: 1
If the SilverLight application is hosted in a WebBrowser then you can redirect the browser to another page:
HtmlPage.Window.Navigate(new Uri("../Login/Login.aspx", UriKind.Relative));
by : Fredrik Claessonhttp://stackoverflow.com/users/1750190Answer: 2
U can use next statement:
System.Windows.Browser.HtmlPage.Window.Invoke("close");
by : Dima Martovoihttp://stackoverflow.com/users/976231
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog