Mega Code Archive

 
Categories / Silverlight / Shapes
 

XAML Button with Polyline and TextBlock

<UserControl x:Class='SilverlightApplication3.MainPage'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'     xmlns:d='http://schemas.microsoft.com/expression/blend/2008'      xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006'      mc:Ignorable='d'      d:DesignWidth='640'      d:DesignHeight='480'>     <Button HorizontalAlignment="Center"             VerticalAlignment="Center"              Margin="24">         <StackPanel>             <Polyline Stroke="Black"                       Points="0 10,10 0,20 10,30 0,40 10,50 0,                         60 10,70 0,80 10,90 0,100 10" />             <Image Margin="0,10,0,0"                    Source="c:\image.ICO"                     Stretch="None" />             <TextBlock HorizontalAlignment="Center">                 _Read             </TextBlock>             <Polyline Stroke="Black"                       Points="0 0,10 10,20 0,30 10,40 0,50 10,                         60 0,70 10,80 0,90 10,100 0" />         </StackPanel>     </Button> </UserControl>