RadWindow as a UserControl HRESULT E_FAIL in Blend 4

5 posts, 0 answers
  1. dwhite
    dwhite avatar
    12 posts
    Member since:
    Feb 2007

    Posted 16 Sep 2010 Link to this post

    I created a "UserControl" that acts like a RadWindow.  The steps are outlined in this HowTo

    This is a plain control, nothing additional in the code-behind (like service calls or anything, just a call to InitializeComponents() like in the example).

    This is Silverlight 4, and opening the "window" within Blend 4, I can't get design-time support.  The error is:

    "Exception: Error HRESULT E_FAIL has been returned from a call to a COM component."

    The source code is just:

    <telerik:RadWindow
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        mc:Ignorable="d"
        x:Class="Sample.UserControl1"
        d:DesignWidth="640" d:DesignHeight="480">
      
        <Grid x:Name="LayoutRoot"/>
    </telerik:RadWindow>

    I've worked around it by putting all my content into yet another UserControl, but this isn't the best solution.  With my current approach, I have a lot of pass-through methods and bindings going on.  Note that Blend 4 fully supports a ChildWindow.  Also the designer in Visual Studio 2010 renders it perfectly, but I prefer to do my designing in Blend.

    The file version of my Telerik.Windows.Controls.Navigation is 2010.2.812.1040

    Thanks in advance for your help.
    -Damien


  2. George
    Admin
    George avatar
    1332 posts

    Posted 17 Sep 2010 Link to this post

    Hi Damien,

    I tried to reproduce the problem with RadWindow in Blend 4, but to no avail. Could you please specify on what OS you are running Blend 4.

    I will be glad to assist you further.
     

    Best wishes,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. dwhite
    dwhite avatar
    12 posts
    Member since:
    Feb 2007

    Posted 17 Sep 2010 Link to this post

    I'm running Windows 7 x64 with Blend Version 4.0.20525.0.

    -Damien
  5. George
    Admin
    George avatar
    1332 posts

    Posted 22 Sep 2010 Link to this post

    Hi,

    Could you check if your project has references to Telerik.Windows.Controls.Navigation and Telerik.Windows.Controls? Also, if you send a running sample that reproduces the problem it would be of great help.

    I will be glad to assist you further.


    All the best,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. dwhite
    dwhite avatar
    12 posts
    Member since:
    Feb 2007

    Posted 22 Sep 2010 Link to this post

    I ended up solving the issue.  In the project I was referencing the two assemblies from outside of the GAC.  Once I changed the references to the GAC, Blend started working...

    -Damien
Back to Top
DevCraft banner