Dani,
Sorry, I tried to reproduce this in a sample project, but can't make it fail. It fails 100% in my real application, which is too large and complex to send.
I removed the code that sets the ApplicationTheme and it still fails, so I was wrong about it being related to Theme. It only occurs if I call RadWindow.Alert in the constructor for a window based on System.WIndows.Controls.Page. After the constructor completes, Alert works just fine.
I'll keep trying to reproduce it if I can think of other things to try. In the meantime, here is the stack:
System.Exception was caught
Message=Error HRESULT E_FAIL has been returned from a call to a COM component.
StackTrace:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Boolean b)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
at System.Windows.Controls.Primitives.Popup.set_IsOpen(Boolean value)
at Telerik.Windows.Controls.InternalWindow.MultiplePopupWindowHost.PopupHostManager..ctor(FrameworkElement root)
at Telerik.Windows.Controls.InternalWindow.MultiplePopupWindowHost.GetHostManager()
at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.Open(Boolean isModal)
at Telerik.Windows.Controls.WindowBase.ShowWindow(Boolean isModal)
at Telerik.Windows.Controls.RadWindow.ShowDialog()
at Telerik.Windows.Controls.RadWindow.ConfigureModal(RadAlert content, DialogParameters dialogParams)
at Telerik.Windows.Controls.RadWindow.Alert(DialogParameters dialogParameters)
at MyApp.ApplicationState.Alert(String message, String title)
at MyApp.Helpers.ViewPersister.Load(String path)
at MyApp.ViewModels.MainViewModel.get_PredefinedViews()
InnerException:null
Thank you,
Kelly