DataGridTextColumn 增加ToolTip

通过CellStyle设置

<DataGridTextColumn Header="ScreenName" Binding="{Binding ScreenName}" >
    <DataGridTextColumn.CellStyle>
        <Style TargetType="DataGridCell">
            <Setter Property="ToolTip" Value="{Binding Name}" />
        </Style>
    </DataGridTextColumn.CellStyle>
</DataGridTextColumn>

  

posted @ 2012-06-08 16:17  人来人往  阅读(646)  评论(0)    收藏  举报