I want to strikeout the contents of a xamdatagrid in MVVM model.I am using TextBlock.Textdecoration="Strikethrough" but it is not working.Can anyone please give me the solution. 开发者_开发百科
Where are you using it? In C# code behind or XAML?
In XAML, it should be:
<TextBlock TextDecorations="Strikethrough">Sample text</TextBlock>
In C#, it should be:
textBlock1.TextDecorations = TextDecorations.Strikethrough;
I am not sure why u cannot get it work.
精彩评论