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
2
votes
1 answer

Setter.TargetName does not work against an element from the BasedOn setting

I have many PathGeometry instances that draw a variety of graphics for different buttons. So I have created a button type for showing a Path which then updates the Path.Stroke depending on the button state. So show it grayed when disabled and…
Phil Wright
  • 22,580
  • 14
  • 83
  • 137
2
votes
1 answer

How do you clone a path resource in Silverlight?

I have a resource defined in my Xaml file as follows:
SergioL
  • 4,905
  • 3
  • 26
  • 30
1
vote
1 answer

How to store PathGeometry in (SQL) database?

I've got .net classes containing PathGeometries and need to store these in a SQL Server database. What columntype would I use and how do I get the PathGeometry into the column and back?
Sam
  • 28,421
  • 49
  • 167
  • 247
1
vote
3 answers

Determine path dynamically in Silverlight 2

I have a border with rounded corners within a canvas and want to add a clipping region to the canvas so that anything I add is clipped to the region within the border. I know that I can set the Clip property of the canvas but as the canvas and…
Steve Crane
  • 4,340
  • 5
  • 40
  • 63
1
vote
2 answers

what is a good database/approach for storing and querying geometric path data

I'm working on a project that tracks blobs (people). We want to track their xy position, turn this into some representation of their traversed path, and do queries that return things like "which paths are near a point (a,b)" or "which paths began…
Alan
  • 2,897
  • 4
  • 23
  • 27
1
vote
2 answers

How to use Svg image with multiple paths

For a test, I used InkScape to create following svg file that correctly displays the the image TEX in all major browsers (IE, Chrome, Edge, FireFox etc.). Now I want to display this as an icon for a button on a WPF app. AS you may have noticed the…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

In an arbitrary polygon, how do I detect freedom from intersection of any side by another?

I am drawing a polygon for the Traveling Salesman problem, and would like to test for non-intersection of any paths, as a means of adaptively halting the genetic search. I tried simply checking line segments or intersection, but sometimes I get an…
user758089
  • 11
  • 1
1
vote
0 answers

Placing text inside a random polygon in three.js

I am trying to make a map with three.js library. To give you an idea, there is a plane. I have divided that into several polygon shaped zones and the shape is totally random. I want to display the zone name. Now there are two problems that I want to…
SAK
  • 65
  • 1
  • 9
1
vote
1 answer

Error when trying to render path geometry in Direct2D UWP (C++/WinRT) project

I am attempting to learn 2D and 3D graphics using DirectX 11_1 and am following a number of online tutorials. However, I am using the latest VS2017 template, Direct3D UWP Game (C++/WinRT), and have been modifying example code as many of the…
user1192887
  • 974
  • 1
  • 9
  • 10
1
vote
2 answers

WPF Real Time Chart Performance using PathGeometry

I'm trying to implement a chart that can handle real time data, which comes in every 1 ms. I poll for 50ms of data so that I'm not trying to redraw the screen every single ms. I am using a PathGeometry on a Canvas to add line segments. I always…
thompsonja
  • 100
  • 5
1
vote
1 answer

Equivalent of IsFilled="false" for PathFigure in Path Mini-language (Silverlight/WPF)

I'm trying to find the equivalent of IsFilled="False" that is used in a PathGeometry, but for Path Mini. You can see that the two paths below are identical, except for the one with geometries has IsFilled="False" in the second…
Todd Main
  • 28,951
  • 11
  • 82
  • 146
1
vote
2 answers

Programmatically split a path into multiple paths

I have a dynamically generated path whose data is composed of a PathGeometry composed of a PathFigure. This PathFigure contains a bunch of line segments. So the overall path is continuous, composed of straight lines. What is a good approach to…
Dalal
  • 1,096
  • 2
  • 17
  • 38
1
vote
0 answers

How to bind PathGeometry objects in MVVM

Imagine an application where the user can type in some text and based on the text input different symbols are shown on an image. I am looking for a way generate a list of Path objects and bind this list in XAML to show the path objects on top of…
Cleo42
  • 11
  • 2
1
vote
1 answer

Getting actual path of PathGeometry

Is there a way to get the actual path of a PathGeometry in WPF? I've looked at RenderedGeometry, but it doesn't appear to provide anything other than what I put in. For example, here's my XAML:
Todd Main
  • 28,951
  • 11
  • 82
  • 146
1
vote
1 answer

WPF/Path - geometry consisting of multiple lines with different line width?

I have the need for drawing in the same drawing with lines of different color, thickness etc. I can create two instances of PathGeometry, but I can't set color on them. I can create two instances of Path, but can't get them displayed in my…
Anders Juul
  • 2,407
  • 3
  • 34
  • 56
1 2 3
8 9