KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The following image illustrates what I am trying to achieve: Basically I want to create two Path objects that "touch" each other (parallel paths). This is XAML used to generate this image: <StackPanel Orientation="Horizontal"> <StackPanel.LayoutTransform> <ScaleTransform CenterX="0" CenterY="0" ScaleX="15" ScaleY="15" /> </StackPanel.LayoutTransform> <Grid Margin="-5,0,0,0"> <Path Stroke="Blue"> <Path.Data> <PathGeometry>M10,10 C20,10 10,20 20,20</PathGeometry> </Path.Data> </Path> <Path Stroke="Red"> <Path.Data> <PathGeometry>M10,11 C19,10.85 9,20.80 20,21</PathGeometry> </Path.Data> </Path> </Grid> <Grid Margin="-5,0,0,0"> <Path Stroke="Blue"> <Path.Data> <PathGeometry>M10,10 C20,10 10,20 20,20</PathGeometry> </Path.Data> </Path> <Path Stroke="Red"> <Path.Data> <PathGeometry>M10,11 C19,11 9,21 20,21</PathGeometry> </Path.Data> </Path> </Grid> </StackPanel> The first curve has hand-optimized point positions, the second has point positions easily calculated by taking stroke thickness into consideration. You can see the second curve is not perfect, becaus
Tags (comma-separated)
Save Edits
Cancel