description panel

2 posts, 0 answers
  1. David Ocasio
    David Ocasio avatar
    161 posts
    Member since:
    Nov 2009

    Posted 30 Oct 2017 Link to this post

    Is there an easy way to set the initial height of the description panel without pulling the entire template out.

  2. Martin Ivanov
    Martin Ivanov avatar
    2403 posts

    Posted 01 Nov 2017 Link to this post

    Hello David,

    There is no API for setting the height of the description panel. However, you can achieve your requirement without extracting the control's template. To do this you can subscribe to the Loaded event of RadPropertyGrid and use the ChildrenOfType<T>() extension method to get the Border element that presents the description panel. Then set its Height.

    Here is an example in code:
    private void RadPropertyGrid_Loaded(object sender, RoutedEventArgs e)
        var propertyGrid = (RadPropertyGrid)sender;
        var panel = propertyGrid.ChildrenOfType<Border>().FirstOrDefault(x => x.Name == "PART_DescriptionPanel");
        if (panel != null)
            panel.Height = 200;

    I hope this helps.

    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top