Tag Archives: WPF

Let the user edit polygons in WPF and C#

The post Let the user draw a polygon in WPF and C# shows how you can let the user draw polygons in a WPF application. This post shows how you can let the user edit them. Individually the program’s pieces … Continue reading

Posted in drawing, graphics, wpf | Tagged , , , , , , , , | Leave a comment

Let the user draw a polygon in WPF and C#

In a Windows Forms application, you can let the user draw a polygon by tracking mouse movement and redrawing the picture whenever necessary to draw the partially completed polygon. A WPF program normally does not do its own drawing. Instead … Continue reading

Posted in drawing, graphics, wpf | Tagged , , , , , , , , | 1 Comment

Use code to make a slideshow in C# and WPF

This is example shows how to make a slideshow in WPF. Unlike all of the examples I’ve seen on the internet, however, this one uses C# code rather than XAML. It’s actually fairly simple, it just took a long time … Continue reading

Posted in animation, wpf | Tagged , , , , , , | 4 Comments

Load a picture and manipulate pixels in WPF and C#

The post Easily manipulate pixels in WPF and C# explains a BitmapPixelMaker class that you can use to manipulate the pixels in an image in WPF relatively easily. That example creates the image from scratch. This post extends that class … Continue reading

Posted in graphics, image processing, wpf | Tagged , , , , , , , , , , , , , | Leave a comment

Move and resize polygons in WPF and C#

The example Move and resize multiple shapes in WPF and C# shows how to resize some shapes in WPF, but it doesn’t let you resize polygons. You determine the position and size of most shapes by giving their left, top, … Continue reading

Posted in controls, graphics, wpf, XAML | Tagged , , , , , , , , , , , | 2 Comments

Move and resize multiple shapes in WPF and C#

The example Move and resize multiple rectangles in WPF and C# shows how to let the user move and resize multiple rectangles in a WPF program. This example extends that one to let you move and resize multiple shapes. See … Continue reading

Posted in controls, graphics, wpf, XAML | Tagged , , , , , , , , , , , | 7 Comments

Let the user draw a polyline in WPF and C#

This example shows how you can let the user use the mouse to draw a polyline in and WPF application in C#. I often badmouth WPF by saying that it is “twice as flexible and only ten times as hard” … Continue reading

Posted in drawing, graphics, wpf | Tagged , , , , , , , , , | Leave a comment

Make a pie slice drawing extension in WPF and C#

This example shows how to make an extension method to draw a pie slice easily in WPF and C#. My post Make an intuitive extension method to draw an elliptical arc in WPF and C# shows how to make an … Continue reading

Posted in drawing, geometry, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , , | Leave a comment

Make an intuitive extension method to draw an elliptical arc in WPF and C#

In my previous post Draw an elliptical arc in WPF and XAML, I explained how WPF makes you define an elliptical arc. Their method almost makes sense if you want draw an arc as part of a path. however, if … Continue reading

Posted in drawing, geometry, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , | 2 Comments

Draw an elliptical arc in WPF and XAML

This example shows how to use XAML code to draw an elliptical arc in a WPF. The following sections explain how to specify an elliptical arc and how to draw one in XAML. Specifying an Elliptical Arc WPF provides several … Continue reading

Posted in drawing, geometry, graphics, mathematics, wpf, XAML | Tagged , , , , , , , , , , , , | Leave a comment