Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
Register
Login
3
Reply
[WPF] DataGrid Cell Style: Textdecoration Strikethrough
Roberto Salemi
Apr 17 2015 9:57 AM
1.7k
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
[WPF] DataGrid Read Only but not for new row
How to draw an animated GIF file into the ViewPort3d in WPF