Cannot convert type RadWindow to Window

3 posts, 0 answers
  1. Thomas
    Thomas  avatar
    31 posts
    Member since:
    Jun 2012

    Posted 23 Sep 2018 Link to this post


    Based on this ( )

    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



    protected override void RegisterTypes(IContainerRegistry containerRegistry)
    protected override Window CreateShell()
        var shellwin = Container.Resolve<ShellWindow>();
        var appwin = Window.GetWindow(shellwin);
        return appwin;


  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    636 posts

    Posted 26 Sep 2018 Link to this post

    Hello Thomas,

    Indeed it seems that the return type of the CreateShell method is changed which does not allow for returning a RadWindow. That said, you can check out the Do not require Window as base type for Shell github issue for a possible approach that you can use in the described scenario.

    I hope you find this helpful.

    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Thomas
    Thomas  avatar
    31 posts
    Member since:
    Jun 2012

    Posted 27 Sep 2018 in reply to Vladimir Stoyanov Link to this post

    thanks a lto it works now.
Back to Top