Hi,
Please find my code below. I tried this but didn't succeed. Any help?
Path e1 = new Path();
Path e2 = new Path();
e1.Data = new EllipseGeometry(new Rect(new Size(100, 100)));
e1.RenderTransform = new TranslateTransform(100, 100);
e1.Fill = Brushes.Transparent;
e1.Stroke = Brushes.Black;
e2.Data = new EllipseGeometry(new Rect(new Size(120, 120)));
e2.RenderTransform = new TranslateTransform(140, 140);
e2.Fill = Brushes.Transparent;
e2.Stroke = Brushes.Black;
Path p = new Path();
CombinedGeometry c1 = new CombinedGeometry();
Geometry g1 = e1.Data.Clone();
Geometry g2 = e2.Data.Clone();
c1.GeometryCombineMode = GeometryCombineMode.Union;
p.Stroke = Brushes.Black;
p.StrokeThickness = 1;
p.Data = c1;
canvasMain.Children.Add(p);
Regards / subho100