Extending RadPropertyGrid "not possible"?

4 posts, 1 answers
  1. Marc
    Marc avatar
    88 posts
    Member since:
    Jul 2011

    Posted 15 Nov 2012 Link to this post

    I extended RadPropertyGrid like this:

    public class MyGrid : RadPropertyGrid
    {
        // there is no code here !
    }

    If I put this in my XAML view I can see the property grid:

    ...
    <
    Telerik:RadPropertyGrid />
    ...

    However, if I put this in my XAML view I cannot see anything:

    ...
    <
    Controls:MyGrid />
    ...

    So, what's the problem? Where is the difference? Is it related to implicit styling?

    I use SL5, Windows8 theme (copied XAML files to my project and using a merged dictionary as stated in your docs) and Q3 2012.

    BTW: This is probably related to my other question.
  2. Marc
    Marc avatar
    88 posts
    Member since:
    Jul 2011

    Posted 15 Nov 2012 Link to this post

    I'm so sorry. Forget my question. It was my mistake.

    Of course I have to apply the "RadPropertyGridStyle" to my extended control since implicit styles are not automatically applied to derived controls, right? I actually knew this but this stupid windows content search didn't find "RadPropertyGridStyle" in your XAMLs. But there is one ... must be.

    Thanks.
  3. DevCraft banner
  4. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 16 Nov 2012 Link to this post

    Hello,

    I will try to shed some light on this matter. For each themable control, we have bot an impicit and an explicit style in our resources, the implict style being based on the explicit one. I have prepared an example project for you that illustrates how to implmenet an implicit style for inherited controls, basing it on our original explicint style.

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Marc
    Marc avatar
    88 posts
    Member since:
    Jul 2011

    Posted 16 Nov 2012 Link to this post

    Yes, thats exactly what I did yesterday.

    Thanks for your efforts and great service.
Back to Top