Some useful code: Navigate to the next page in a pop-up window in Silverlight 3, if pop-up is allowed. If not allowed, navigate to it in the same window.
"HtmlPopupWindowOptions options = new HtmlPopupWindowOptions();
options.Left = 0;
options.Top = 0;
options.Width = 600;
options.Height = 400;
if (true == HtmlPage.IsPopupWindowAllowed)
{
HtmlPage.PopupWindow(new Uri("http://www.yahoo.com"), "new", options);
}
else //if pop up not allowed, to render it in the same page
{
HtmlPage.Window.Navigate(new Uri("http://www.yahoo.com", UriKind.Absolute));
}"
No comments:
Post a Comment