Sunday, August 14, 2005
Sizing Paths
I had a Path (System.Windows.Shapes.Path) that I wanted to show, but it wasn't exactly clear as to how I was going to size it because there aren't any dimension properties to modify.
So, simple enough, I plopped it in-between some Viewbox tags, and I was able to size it to my requirements.
<StackPanel Orientation="Horizontal">
   <Path Stroke="#000000" Fill="#000000" StrokeThickness="16" Data="M9,12.844v71l216,72l-217,72v71l290-144L9,12.844z"/>
   <Viewbox Width="30" Height="30">
      <Path Stroke="#000000" Fill="#000000" StrokeThickness="16" Data="M9,12.844v71l216,72l-217,72v71l290-144L9,12.844z"/>
   </Viewbox>
</StackPanel>
You can see the difference:                             more...
http://www.sebura.com
Originally Posted on 8/14/2005 12:19:00 PMContent source: http://longhornblogs.com/rdawson/archive/2005/06/03/14155.aspx
So, simple enough, I plopped it in-between some Viewbox tags, and I was able to size it to my requirements.
<StackPanel Orientation="Horizontal">
   <Path Stroke="#000000" Fill="#000000" StrokeThickness="16" Data="M9,12.844v71l216,72l-217,72v71l290-144L9,12.844z"/>
   <Viewbox Width="30" Height="30">
      <Path Stroke="#000000" Fill="#000000" StrokeThickness="16" Data="M9,12.844v71l216,72l-217,72v71l290-144L9,12.844z"/>
   </Viewbox>
</StackPanel>
You can see the difference:                             more...
http://www.sebura.com
Originally Posted on 8/14/2005 12:19:00 PMContent source: http://longhornblogs.com/rdawson/archive/2005/06/03/14155.aspx