Questions tagged [wpf-graphics]
8 questions
2
votes
1 answer
WPF PathGeometry Fill
I'm running into a problem with WPF and PathGeometry. I have the following Path object which is a combination of lines and arcs.

MADC0D3R
- 261
- 3
- 10
1
vote
2 answers
What is wrong with my Rectangle drawing coordinates?
I'm trying to use the following code to allow the user to draw a rectangle around something on the screen, to select that area.
public partial class MainWindow : Window
{
public enum DrawMode
{
Move,
Draw
}
private…

ProfK
- 49,207
- 121
- 399
- 775
1
vote
1 answer
Position a WPF control absolute, above all other elements
I need to display a stripe at the top of my main window to hide unwanted artefacts. This is an urgent workaround, but would be nice to know as well. I have two main grid columns, but would like to position the stripe at 0,0 relative to the client…

ProfK
- 49,207
- 121
- 399
- 775
0
votes
1 answer
How to change color of a DrawingVisual on MouseHit
The following code is an adaptation of the code example on page 502 of Adam Nathan, WPF 4.5 unleashed.
Following the advice there I created a class VisualHostClass that "hosts" a list of DrawingVisuals, thereby making them displayable. This worked…

Jürgen Böhm
- 389
- 3
- 11
0
votes
1 answer
Circle Same Diameter on All Resolutions WPF (Resolution Independence)
I have a physical object in the shape of a circle that measures 3 inches in diameter. My application transposes this circle shape onto the screen so the user can visually check off what they see into the application from the circle object. The…

J-man
- 1,743
- 3
- 26
- 50
0
votes
1 answer
Adding Axis to a Canvas in WPF
Hi I have a simple requirement. I am given the task to show a Couple of PolyLines on an XY Axis that scale well on any screen and can show any range of data.
So I created PloyLines and Added scaling transform on them using the Screen Size and the…

user2675267
- 25
- 6
0
votes
0 answers
add a grid in grid at click postition wpf
I want to add a grid in a grid at click position . that grid have a usercontrol as its content. On click event in the main grid i get the with respect to that grid through this code :
Dim mousePositin As Point
mousePosition =…

pasha pash
- 99
- 11
0
votes
0 answers
Best way to render transitions on a WPF desktop application
I'm working on a WPF application with huge performance issues.
When a user is going between screens, there should be a quick animation of the current screen fading out and zooming out while the next screen is fading in and sliding in from left.
This…

Uri Abramson
- 6,005
- 6
- 40
- 62