Show ToolTip in PropertyGrid

Grids for WPF Forum

Posted 12 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 12 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.3) 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.