Grids for WPF Forum

Posted 13 years ago by Mary Fontana - Rudolph Technologies
Is there a way to have an elipsis button on the category field of a property grid?
The button on the category field would be defined to popup a window that would edit the properties of the selected object for that category.

For example, in the propertygrid categoryeditors quickstart example,
I would like the properties to be displayed as in the property grid on the left,
but I would like a button that would popup a window to edit the property items for that category. This popup editor might look similar to the example's property grid on the right.

Is this possible?



[Modified at 01/17/2011 06:11 PM]

Comments (1)

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

You would either have to retemplate the PropertyDataAccessorItem or set the PropertyDataAccessorItem.HeaderTemplate property (to a custom template) when DataAccessorType is Category. The default HeaderTemplate is shown below, and you should be able to add the button there.
<Setter Property="HeaderTemplate">
            <TextBlock Text="{Binding}" />
You would need to use an implicit Style, using a Trigger on DataAccessorType == Category, for PropertyDataAccessorItem to set the HeaderTemplate property.

Actipro Software Support

The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.