Subclass RadPane

2 posts, 0 answers
  1. Shawn Weisfeld
    Shawn Weisfeld avatar
    5 posts
    Member since:
    Mar 2007

    Posted 11 Oct 2011 Link to this post

    When subclass-ing the RadPane the visual studio designer is broken. All you see is the Pane Header and no body. it looks fine when you run the app.

    Here is my Xaml
    <telerikDocking:RadPane x:Class="RadControlsSilverlightApp3.TestPane"
                 xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
                 mc:Ignorable="d" Header="test header"
        d:DesignHeight="300" d:DesignWidth="400">
         
        <Grid x:Name="LayoutRoot" Background="White">
            <TextBlock Text="Test body" />
        </Grid>
    </telerikDocking:RadPane>


    here is a screen print
    http://screencast.com/t/tPTkM8qXa
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 13 Oct 2011 Link to this post

    Hello Shawn,

    What you see in the designer is how the pane will be rendered. The RadPane control doesn't render its content as it doesn't have ContentPresenter for it in its ControlTemplate. Hope this helps you understand what happen and why this is expected.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top