Strikeout text in Windows phone 7

眉间皱痕 提交于 2019-11-28 11:24:16

问题


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


回答1:


Read this thread, someone also posted a solution there.




回答2:


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.




回答3:


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>


来源:https://stackoverflow.com/questions/5059254/strikeout-text-in-windows-phone-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!