SummaryTemplate

Grids for WPF Forum

Posted 7 years ago by Mary Fontana - Rudolph Technologies
Avatar
I created a custom SummaryTemplate similar to the one in the Summary Customization QuickStart.

The behavior I don't have after using a SummaryTemplate is that the summary is always visible.

How do I get the property grid's summary to start out as collapsed - until a property is selected?


Thanks.
Mary

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

You would need to restyle the PropertyGridSummaryContentControl. Our default ControlTemplate will only collapse the summary area if it's "content" has a height of 0. When using the DataTemplate, like in our example, it will have a non-zero height.

You'd need to add a trigger to collapse the summary area if say Content is null. We can't make that assumption with our default implementation, as the DataTemplate can contain anything, even stuff not related to the selected property.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.