categoryeditor

Grids for WPF Forum

Posted 9 years ago by Mary Fontana - Rudolph Technologies
Avatar
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?

Thanks,

Mary

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

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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">
    <Setter.Value>
        <DataTemplate>
            <TextBlock Text="{Binding}" />
        </DataTemplate>
    </Setter.Value>
</Setter>
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 (v2019.1 build 0682) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.