Show ToolTip in PropertyGrid

Grids for WPF Forum

Posted 11 years ago by Mark Foti
Version: 12.1.0562
Avatar

Hi ActiproSupport-Team,

I would like to realize the following:
Show a tool tip over the right column if the Value of PropertyGridPropertyItem is not completly visible.

But I am already struggling with the first part of it which is showing a tooltip. The default ToolTip property does not work.

<Style x:Key="PropertyGridPropertyItemStyle" TargetType="{x:Type propgrid:PropertyGridPropertyItem}">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Value }" />
</Style>

Can you help me with this problem?

Best regards

Michael

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Michael,

Sorry but I don't think anything for tooltips is wired up in that way.  Since you have WPF Studio, you can get the default styles/templates.  There is one Style keyed PropertyGridResourceKeys.ValueCellContainerStyleKey.  Look for that and in its template you may be able to set the ToolTip on the root border inside it.  You can see where down below it uses RelativeSource to get to the IPropertyDataAccessor, so you'd do something similar.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.