Mega Code Archive

 
Categories / Silverlight / Shapes
 

Stylizing a Stroke

<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'>     <Grid x:Name="LayoutRoot" Background="White">         <InkPresenter x:Name="myInkPresenter" Background="Silver" Height="300" Width="300">             <InkPresenter.Strokes>                 <Stroke>                     <Stroke.DrawingAttributes>                         <DrawingAttributes Color="Blue" OutlineColor="Black" Height="4" Width="6" />                     </Stroke.DrawingAttributes>                     <Stroke.StylusPoints>                         <StylusPoint X="10" Y="10" />                         <StylusPoint X="10" Y="50" />                     </Stroke.StylusPoints>                 </Stroke>             </InkPresenter.Strokes>         </InkPresenter>     </Grid> </UserControl>