开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜