Loading

WPF DataGrid ToolTip显示内容全局样式

<Style TargetType="DataGridCell">
       <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self} ,Path=Content.Text}"/>
 </Style>

加入全局样式资源文件即可全局应用。

posted @ 2021-05-10 12:28  Stay627  阅读(279)  评论(0编辑  收藏  举报