<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="White"> <Viewbox> <Canvas Width="200" Height="200" RenderTransform="1 0 0 -1 100 100" > <Canvas.Resources> <Style TargetType="{x:Type Path}" x:Key="petal"> <Setter Property="Stroke" Value="Black" /> <Setter Property="Fill" Value="Red" /> <Setter Property="Data" Value="M 10 10 C 2.5 112.5, 417.5 2.5, 60 0 C 47.5 -112.5, 12.5 -2.5, 0 0 Z" /> </Style> </Canvas.Resources> <Path Stroke="Green" StrokeThickness="5" Data="M -10 -10 C -10 -50, -50 50, 0 0"> </Path> <Path Style="{StaticResource petal}" /> <Path Style="{StaticResource petal}" RenderTransform="1.7 -1.7 .7 .7 0 0" /> <Path Fill="Yellow" Stroke="Black"> <Path.Data> <EllipseGeometry Center="0 0" RadiusX="15" RadiusY="15" /> </Path.Data> </Path> </Canvas> </Viewbox> </Page>
ASP.NET & Csharp (C#)
ASP.NET & Csharp (C#) , Here you can find my posts about .NET c# .
Combines two geometries using the intersect combine mode
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF"> <Path.Data> <CombinedGeometry GeometryCombineMode="Intersect"> <CombinedGeometry.Geometry1> <EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" /> </CombinedGeometry.Geometry1> <CombinedGeometry.Geometry2> <EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" /> </CombinedGeometry.Geometry2> </CombinedGeometry> </Path.Data> </Path> </Canvas> </Window>
Line with Path
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Data="M 10,50 L 200,70" /> </Canvas> </Window>
Horizontal Line with Path
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Data="M 10,50 H 200" /> </Canvas> </Window>
Vertical Line with Path
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Data="M 10,50 V 200" /> </Canvas> </Window>
Elliptical Arc Path
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Data="M 10,100 A 100,50 45 1 0 200,100" /> </Canvas> </Window>
Close Path Command
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.SampleViewer" Title=" Examples" > <Canvas> <Path Stroke="Black" StrokeThickness="1" Data="M 10,100 L 100,100 100,50 Z" /> </Canvas> </Window>