Is it possible to set the initial height of the description panel and where can I switch on, that the user can change the height of the description panel?
Greets
11 Answers, 1 is accepted
You may change the height of the RadPropertyGrid's DescriptionPanel by altering the template of RadPropertyGrid. There you may find the PART_DescriptionPanel and change its height from there.
Vanya Pavlova
the Telerik team
You may use Microfost Expression Blend to extract the template of RadPropertyGrid and to find the DescriptionPanel. If you take a look at the default template you may see that the MinHeight of the panel is set to 75 pixels. Just change this height in the way you need.
<
Border
x:Name
=
"PART_DescriptionPanel"
Visibility
=
"{TemplateBinding DescriptionPanelVisibility}"
MinHeight
=
"75"
Grid.Row
=
"2"
BorderBrush
=
"{StaticResource PropertyGrid_DescriptionBorderBrush}"
BorderThickness
=
"0,1,0,0"
Background
=
"{StaticResource PropertyGrid_DescriptionBackground}"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
TextBlock
Text
=
"{Binding SelectedPropertyDefinition.DisplayName,ElementName=PropertyGridPresenter}"
Margin
=
"5"
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding SelectedPropertyDefinition.Description,ElementName=PropertyGridPresenter}"
Margin
=
"5"
TextWrapping
=
"Wrap"
/>
</
StackPanel
>
</
Border
>
For those clients who do not use Blend we ship our themes as separate projects. You may get the xaml files for all Telerik themes from the Themes folder of your personal installaion.
All the best,
Vanya Pavlova
the Telerik team
thanks for the answer, but I think my question wasn't well formulated. I want to know how the user of my programm can change the size of the description panel when the program is running.
Greets
Thank you for getting back to us! Such functionality is not built-in supported in our RadPropertyGrid. If you want to achieve this effect you should alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result.
Vanya Pavlova
the Telerik team
thanks for the response. I don't know how to "alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result" .. but maybe you meant RadGrid, but then building my own PG is a bit to much for this smal effect :)
However; it would be great, if you add a feature request for the next release, that the initial size of the description panel can be set directly on the PG and another one that the size can be changed at runtime.
Thanks
Hans
Thank you for getting back to us! We always appreciate customers feedback related to our components. By that reason I have logged your suggestion as feature request in our PITS System. I would encourage you to vote and this will increase its priority when we consider our future development plans. You may track its progress following this link http://www.telerik.com/support/pits.aspx#/public/silverlight/6688
Vanya Pavlova
the Telerik team
If you want to remove completely RadPropertyGrid's DescriptionPanel you should use Expression Blend. Edit its template and remove the Border element named DescriptionPanel and its content to achieve the desired result. If you need sample project that demonstrates how this can be achieved please let me know.
Vanya Pavlova
the Telerik team
Hello, thank you for getting back with me. Yes, some sort of explanation or example would be very appreciated. I've successfully viewed the XAML in the themes and via Blend. But there is no indication in this thread on what to do once you have altered the Description Panel. How do I save the changes? How do I use the changes I've made. Can you please give a detailed explanation on how to complete the process of editing the XAML of the Description Panel?
Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility. Can you please add a feature request that completely removes the Description Panel from the control when the visibilty state is set to hidden?
Greg
p.s. You must also remove lines 327 - 329 because the template is used on line 328, see attached.
In answer to :
"Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility".
Can you please try set the Visibility to Collapsed instead of hidden . This should generate the result you expect.
Pavel Pavlov
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!