Hi Telerik,
In my Silverlight 2.0 App I have a RadWindow and inside this window I wish to open a popup using
( System.Windows.Browser.HtmlPage.PopupWindow ).
When i run the code nothing happens. WHen I use the popupwindow code outside the RadWindow control i works just perfect...
Here is my sample code ( C#) :
RadWIndow _testwindow = new RadWindow();
_testwindow .Header = "TestWindow";
_testwindow .PinMode = PinMode.NoPin;
_testwindow .WindowStartupLocation = WindowStartupLocation.CenterScreen;
_testwindow .SetValue(StyleManager.ThemeProperty, new VistaTheme());
_testwindow .MaxWidth = MainGrid.ActualWidth;
_testwindow .MaxHeight = MainGrid.ActualHeight;
_testwindow .Height = MainGrid.ActualHeight;
_testwindow .Width = MainGrid.ActualWidth;
_testwindow .CloseMode = CloseMode.Close;
------------------
The Content is assigned from a user control and within the usercontrol i have a button in which i have the following OnClick code:
-----------------
System.Windows.Browser.HtmlPage.PopupWindow(new Uri(http://telerik.com/, UriKind.Absolute), "_blank", new HtmlPopupWindowOptions()
{
Menubar = false,
Directories = false,
Height = 600,
Width = 750,
Toolbar = false,
Status = false,
Resizeable = true,
Location = false,
Top = 150,
Left = 150,
Scrollbars = false
});
Can you help me ??