Hi,
Based on this ( https://www.telerik.com/forums/cannot-implicitly-convert-type-radwindow-to-window )
i tried to get the HostWindow in an mvvm + prism with prismapplication.
But it failed in CreateShell() the Shell is a RadWindow and is created but there is no HostWindow retuned and so it will not work.
Maybe because in PRism the changed the return Type to Window ( i think it was DependencObject before )
but so what can i do to return the Shell here ?
thanks br
thomas
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton<ShellWindow>(); } protected override Window CreateShell() { var shellwin = Container.Resolve<ShellWindow>(); var appwin = Window.GetWindow(shellwin); return appwin; }