Strikeout text in Windows phone 7
Is there a way to strikeo开发者_运维技巧ut text in windows phone 7?
There is no built-in way to do this.
The only alternative is to draw a line in the same position as the text yourself.
A little simple example:
<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Some text" VerticalAlignment="Top" Grid.RowSpan="2"/>
<Border BorderThickness="0,0,0,1" BorderBrush="#FF949494" >
</Border>
</Grid>
Read this thread, someone also posted a solution there.
精彩评论