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

What's the difference?

5 Answers 172 Views
General Discussions
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:03 PM
Here is what I do:

// My View (snippet)
...
<ContentControl c:View.Model="{Binding Sidebar}" />
...
 
// VSidebar.xaml (complete)
<Telerik:RadPropertyGrid
    x:Class="Bla.Bla.Bla.Views.Util.VSidebar"
    Item="{Binding PropertySource}" />
// VSidebar.xaml.cs just contains a default constructor with "InitializeComponent()"
 
// "Sidebar" is bound to an instance of "MSidebar" (MSidebar.cs)
// Caliburn.Micro (CM) correctly resolves this to "VSidebar" (VSidebar.xaml)
// CM calls "InitializeComponent" on VSidebar (via code)
// CM sets the "Content" property of the ContentControl to the new VSidebar instance (via code)

Using Silverlight 4 and Q3 2011 this worked perfectly. The RadPropertyGrid is displayed in the sidebar area.

However, using Silverlight 5 and Q3 2012 the sidebar area is empty. Using XAML Spy I can see that the sidebar ContentControl indeed has VSidebar set as its content but there are no childs underneath VSidebar. When I simply wrap the RadPropertyGrid in another ContentControl or a UserControl (in VSidebar.xaml) everything works again. Meaning that the property grid gets visible.

Strange! Any ideas what might cause this issue? Does this have anything to do with implicit styles (maybe no template set etc.) ???

Thanks in advance,
Stephan

UPDATE: this is probably related to my other question.

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 15 Nov 2012, 04:46 PM
Hello,

As this seems to be quite a specific case, would it be possible for you to send us a test project that illustrates your scenario? As the gap between Q3 2011 and Q3 2012 is quite large, such project will help us a lot to pinpoint this issue.

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marc
Top achievements
Rank 1
answered on 15 Nov 2012, 04:49 PM
Perfect, somebody answered ... THANK YOU. :-)

I just posted this question here which probably reduces the problem to the bare minimum. Would be so glad to have an answer here, too.
0
Marc
Top achievements
Rank 1
answered on 15 Nov 2012, 05:10 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:03 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:27 AM
Yes, thats exactly what I did yesterday.

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