28
Sep

Text Strike Through

1 Comment » Popularity: 1%

The follow XAML let you to add a "strike though" effect on your text. It works for single line text and you are able to customize the font size and color.

Text-Strike-Through

View Demo: New Window
XAML to create a strike through text:
<usercontrol height="300" width="400" x:class="ShineDraw.Controls.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <grid background="White" x:name="LayoutRoot">
        <grid horizontalalignment="Center" verticalalignment="Center">
            <grid.columndefinitions>
                <columndefinition width="Auto"></columndefinition>
            </grid.columndefinitions>
            <textblock fontsize="28" text="Shine Draw"></textblock>
            <line x:name="StrikeThroughLine" stretch="Fill" x2="20" x1="0" strokethickness="1" stroke="Black"></line>
        </grid>
    </grid>
</usercontrol>
  • DZone
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit

Related Posts

One Response to “Text Strike Through”

  1. Pretty nice post. I simply stumbled upon your blog and wanted to mention that I have truly loved surfing around your blog posts. After all I?ll be subscribing to your feed and I’m hoping you write again very soon!

Leave a Reply