Strikeout text in Windows phone 7

前端 未结 3 1045
遇见更好的自我
遇见更好的自我 2020-12-21 23:46

Is there a way to strikeout text in windows phone 7?

相关标签:
3条回答
  • 2020-12-21 23:50

    Read this thread, someone also posted a solution there.

    0 讨论(0)
  • 2020-12-21 23:51

    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>
    
    0 讨论(0)
  • 2020-12-22 00:03

    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.

    0 讨论(0)
提交回复
热议问题