Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Evenly Spaced Dashes with StrokeDashArray
  2. <Grid x:Name="LayoutRoot" Background="Transparent">
  3.     <Grid.RowDefinitions>
  4.         <RowDefinition Height="Auto"/>
  5.         <RowDefinition Height="*"/>
  6.     </Grid.RowDefinitions>
  7.     <Ellipse Fill="#FFC83838" Margin="112,253,128,275" Grid.Row="1" Stroke="#FFC83838" StrokeThickness="3"/>
  8.     <Ellipse Fill="#FFC83838" Margin="112,253,128,275" Grid.Row="1" Stroke="White" StrokeThickness="30" StrokeDashArray="1.79" StrokeDashOffset="6" RenderTransformOrigin="0.5,0.5"/>
  9. </Grid>
  10.        
  11. 2*p*r = n*(T*S+T*G)
  12.        
  13. S+G = 2pr/nT
  14.        
  15. G = 2pr/180 - 1
  16.        
  17. StrokeDashArray="1,2.58"