Expression Blend throughs exception: Can only base on a Style with target type that is base type 'RadPaneGroup'.

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    1 posts
    Member since:
    Oct 2013

    Posted 23 Oct 2013 Link to this post


    I'm adding Docking to my app with the following structure (all unnecessary properties removed):

        <telerik:RadDocking >
            <telerik:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">

    When I'm creating styles for RadPane and RadPaneGroup, I'm constantly getting exceptions in Design view of Expression Blend and Visual studio that looks like:
    "InvalidOperationException: Can only base on a Style with target type that is base type 'RadPaneGroup'." 

    As a result, I can't see my control in Design View and can't edit control's property in Properties pane visually. The style is looking like this:

                <Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">

    What's wrong?
    Thank you!
  2. Masha
    Masha avatar
    355 posts

    Posted 28 Oct 2013 Link to this post

    Hi Andrew,

    From the described scenario I guess you're using Windows8 Theme?
    This issue appears because of the dynamic resources that are used in the Windows8 theme.
    I suggest that you copy the XAML of the controls that you use from [Installation folder]\Themes.Implicit\WPF40\[Theme that you need]\.  Do not forget to reference this files from the respective folder in your application. This way you should not have a problem with the design view anymore.

    I hope this will be helpful.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft R3 2016 release webinar banner
  4. tom
    tom avatar
    2 posts
    Member since:
    Apr 2016

    Posted 27 Apr Link to this post

    I am also getting this with my existing WPF application (based on a custom Window base class) using a RadGridView and VisualStudio2013 Implicit style.

    The exception occurs only when I drag a column to the grouping row.

    Is the workaround the same, copy all styles into my project?


  5. tom
    tom avatar
    2 posts
    Member since:
    Apr 2016

    Posted 27 Apr in reply to tom Link to this post

    I have worked out what is going on. It is nothing to do with the style. 

    The error actually arose due to my WindowBase ControlTemplate setup. My style for WindowBase was BasedOn Window, this does not work for some reason. Instead you must copy all the styles and not extend Window. No idea what is going on but whatever it works.

Back to Top