In a Windows Store App, is there any way to apply a StrikeThrough effect on a TextBlock’s content? If there isn’t, a RichTextBlock or any similar controls would do. It doesn’t matter if it’s through XAML or programmatically (C#), but I’d prefer through XAML so it would show in the designer.
I found this among Microsoft’s documentation, but I don’t know how to use it:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.text.itextcharacterformat.strikethrough.aspx
Windows Store apps have their own control namespace (System.Ui.Xaml.Controls). You’ll see that the TextBlock for Windows Store apps doesn’t have a TextDecoration property: TextBlock documentation.
The “full” .Net 4.5 TextBlock does have a TextDecoration property:.Net 4.5 WPF TextBlock Documentation.
You can do this in a “hacky” way like so: