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
141.3k
[WPF] DataGrid Cell Style: Textdecoration Strikethrough
Apr 17 2015 9:57 AM
Hi,
I'm using DataTriggers for change the Text Style in cells where property IsDeletedItem becames true.
In my datagrid I added:
<DataGrid.CellStyle>
<Style TargetType="{x:Type DataGridCell}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsDeletedItem}" Value="True">
<Setter Property="TextBlock.TextDecorations" Value="Strikethrough" />
<Setter Property="FontSize" Value="22" />
</DataTrigger>
</Style.Triggers>
</Style>
</DataGrid.CellStyle>
The FontSize of text is changed, but the text decorations is not applied.
Why?
Thanks.
Reply
Answers (
3
)
[WPF] DataGrid Read Only but not for new row
How to draw an animated GIF file into the ViewPort3d in WPF