Hi: I am trying to code path data for a curve, circle, ellipse. Blend is giving me the following:
<!-- Curve --><Label Content="Curve" HorizontalAlignment="Left" Height="24" Margin="81,0,0,114" VerticalAlignment="Bottom" Width="158"/><Path Data="M242,275 C248.65717,282.34247 250.34378,288.45837 256,296 261.86666,303.82221 264.30593,305.79178 275,309 294.66353,314.89906 299.78304,311.04423 319,300" Fill="#FFF4F4F5" Height="37.751" Margin="239,0,0,108.249" Stretch="Fill" Stroke="Black" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="38"/><!-- Circle --><Label Content="Circle" HorizontalAlignment="Left" Height="27" Margin="82,0,0,68" VerticalAlignment="Bottom" Width="168"/><Ellipse Fill="#FFF4F4F5" Height="25" Width="25" Stroke="Black" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="241.5,0,0,66" d:LayoutOverrides="Width"/><Path Data="M24.5,12.5 C24.5,19.127417 19.127417,24.5 12.5,24.5 C5.872583,24.5 0.5,19.127417 0.5,12.5 C0.5,5.872583 5.872583,0.5 12.5,0.5 C19.127417,0.5 24.5,5.872583 24.5,12.5 z" Fill="#FFF4F4F5" HorizontalAlignment="Right" Height="25" Margin="0,0,184.5,69" RenderTransformOrigin="2.9,0.76" Stretch="Fill" Stroke="Black" VerticalAlignment="Bottom" Width="25" d:LayoutOverrides="Width" /><!-- Ellipse --><Label Content="Ellipse" HorizontalAlignment="Left" Height="28" Margin="82,0,0,22" VerticalAlignment="Bottom" Width="159"/><Ellipse Fill="#FFF4F4F5" Height="25" Margin="237,0,306,20" Stroke="Black" VerticalAlignment="Bottom"/><Path Data="M80.5,12.5 C80.5,19.127417 62.59139,24.5 40.5,24.5 C18.40861,24.5 0.5,19.127417 0.5,12.5 C0.5,5.872583 18.40861,0.5 40.5,0.5 C62.59139,0.5 80.5,5.872583 80.5,12.5 z" Fill="#FFF4F4F5" HorizontalAlignment="Right" Height="25" Margin="0,0,150,19" Stretch="Fill" Stroke="Black" VerticalAlignment="Bottom" Width="81"/>
It is the path data I am interested in calculating. Each C section has 3 points and there are 4 C sections.Does anyone know how Blend is calculating these points??? I want to replicate those calculation in my C# code.
Mike Gallinger C.Tech. Cutting Edge Computing Software Developer