TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roberto Salemi
NA
146
142.1k
[WPF] DataGrid: the tooltips on Path are not alwat visibile
Jul 3 2015 9:45 AM
Hi,
I have this two columns, the first is created for test, the second is the definitive column.
The first:
<DataGridTextColumn Binding="{Binding Note, Mode=OneWay}" Header="Note" CanUserSort="True">
<DataGridTextColumn.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="ToolTip" Value="{Binding Note}" />
</Style>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>
The second:
<DataGridTemplateColumn SortMemberPath="Note">
<DataGridTemplateColumn.HeaderTemplate>
<DataTemplate>
<Path
Data="{StaticResource IconNote}"
Style="{StaticResource smplMngmntIconHeader}"
>
<Path.ToolTip>
<TextBlock>
<Run Text="{StaticResource tooltTipHeaderNote}"/>
</TextBlock>
</Path.ToolTip>
</Path>
</DataTemplate>
</DataGridTemplateColumn.HeaderTemplate>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Path
Data="{StaticResource IconNote}"
Visibility="{Binding Note, Converter={StaticResource smplMngmntIconDataGridVisibility}}"
Style="{StaticResource smplMngmntIconDataGrid}"
>
<Path.ToolTip>
<TextBlock Text="{Binding Note, Converter={StaticResource SampleBlendingFormatString}}"/>
</Path.ToolTip>
</Path>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
The tooltip on first column is shown always, without problem.
In the second column i created a convert for show or hide the icon, but the tooltip for some icon is shown for others no.
Why?
Thanks.
Reply
Answers (
2
)
Model validation with data annotations
embed an external .exe into my wpf .exe file.