Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tooltip.Tip to DataGridTextColumn #18018

Open
LazaroOnline opened this issue Jan 22, 2025 · 1 comment
Open

Add Tooltip.Tip to DataGridTextColumn #18018

LazaroOnline opened this issue Jan 22, 2025 · 1 comment

Comments

@LazaroOnline
Copy link

LazaroOnline commented Jan 22, 2025

Is your feature request related to a problem? Please describe.

Please, add Tooltip.Tip property to DataGridTextColumn so it works like this:

<DataGrid >
  <DataGrid.Columns>
    <DataGridTextColumn Header="Name"  Binding="{Binding Name}" ToolTip.Tip="{Binding FullName}"/>
  </DataGrid.Columns>
</DataGrid>

and if possible to DataGridCheckBoxColumn too.

I know I can do it with a DataGridTemplateColumn but it is way too cumbersome:

<DataGrid >
<DataGrid.Columns>
<DataGridTemplateColumn Header="Name">
  <DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
      <TextBlock Text="{Binding Name}" ToolTip.Tip="{Binding FullName}" />
    </DataTemplate>
  </DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>

Describe the solution you'd like

Allow the Tooltip.Tip property to DataGridTextColumn :

<DataGridTextColumn Header="Name"  Binding="{Binding Name}" ToolTip.Tip="{Binding FullName}"/>

Describe alternatives you've considered

No response

Additional context

No response

@timunie
Copy link
Contributor

timunie commented Jan 22, 2025

You can just use CellStyleClasses and define it in a Style with Selector like DataGridCell.ToolTip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants