This is a migrated thread and some comments may be shown as answers.

Extending RadPropertyGrid "not possible"?

3 Answers 124 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc
Top achievements
Rank 1
Marc asked on 15 Nov 2012, 04:44 PM
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.

3 Answers, 1 is accepted

Sort by
0
Marc
Top achievements
Rank 1
answered on 15 Nov 2012, 05:11 PM
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.
0
Accepted
Ivan Ivanov
Telerik team
answered on 16 Nov 2012, 09:04 AM
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.

0
Marc
Top achievements
Rank 1
answered on 16 Nov 2012, 09:28 AM
Yes, thats exactly what I did yesterday.

Thanks for your efforts and great service.
Tags
PropertyGrid
Asked by
Marc
Top achievements
Rank 1
Answers by
Marc
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or