Questions tagged [pathgeometry]

PathGeometry is a class in the System.Windows.Media namespace. It represents a complex shape that may be composed of lines, arcs, points, polygons, etc. PathGeometry has several useful methods that can help in detecting overlap of shapes and overlapping areas. Also, it has methods for handling various operations necessary when working with odd shapes.

126 questions
0
votes
2 answers

How to draw this WPF Path in C#

I have been struggling to convert this piece of WPF code to C#. I am relatively new to WPF, and I really hope someone can help me out here :)
Johan Aspeling
  • 765
  • 1
  • 13
  • 38
-1
votes
1 answer

How to make soft/rounded edges using PathGeometry in .xaml C#

I am trying to draw in C# for the first time and I have a problem with positioning. I made some background but I have problem to finish it. I always destroy the whole figure... I need to change down edges and make them soft/rounded like on mobile…
PredragDj
  • 313
  • 1
  • 3
  • 10
-1
votes
1 answer

In which controls, other than Button, can WPF Geometry icons be shown without defining Stroke or Fill?

I need to show icons like this: M 6.5 0.5 L 7.5 1 L 7.5 0 L 6.5 0.5 z If I put them in Button they're Ok. However I need to show them in many other places but they're not shown. Sometimes it helps to…
char m
  • 7,840
  • 14
  • 68
  • 117
-1
votes
1 answer

Custom shape setting different colors to included geometries wpf

I created a custom Shape constructed from a Rectangle and a Text inside it. Here is the code: protected override Geometry DefiningGeometry { get { var formattedText = new FormattedText(Text,…
Idanis
  • 1,918
  • 6
  • 38
  • 69
-1
votes
1 answer

PathGemoetry resizing issue in WPF

I want to resize my pathgeometry figure according to screen size set by user. Basically want to update the figure dynamically or make it responsive. Currently I am having figure like
Karan Goel
  • 25
  • 4
-2
votes
1 answer

how to move object using path geometry by clicking a button?

I try a Path geometry to move my image in curve path using WPF. However, when i click the 'Start' button,the canvas itself moving in the path, not the image. So how i am going to move the image by clicking a 'Start' button? Below are codes that …
red
  • 3
  • 2
1 2 3
8
9