开发者

Strikeout text in Windows phone 7

开发者 https://www.devze.com 2023-02-12 19:25 出处:网络
Is there a way to strikeo开发者_运维技巧ut text in windows phone 7? There is no built-in way to do this.

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

精彩评论

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

关注公众号