What's the difference?

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

    Posted 15 Nov 2012 Link to this post

    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.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 15 Nov 2012 Link to this post

    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.

  3. DevCraft banner
  4. Marc
    Marc avatar
    88 posts
    Member since:
    Jul 2011

    Posted 15 Nov 2012 Link to this post

    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.
  5. 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.
  6. 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.

  7. 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
DevCraft banner