Tag Archives: save png file

Draw a smiley face with WPF in C#

Often I need to use images for demonstration purposes or for a book, and a smiley face makes a neutral, pleasant image. This example shows how to draw a smiley face with XAML and WPF, and then save an image … Continue reading

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

Save WPF control images in C#

Occasionally I need to save WPF control images with transparent backgrounds for one reason or another. This time I needed to make some icons that displayed numbers. I could have used a Windows Forms application (it would have been a … Continue reading

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

Use WPF to make a download button in C#

This example uses WPF to make a download button similar to the one shown on the C# Helper web site’s blog posts. The following XAML code shows how the program builds the button. <Window x:Class=”howto_download_button.Window1″ xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”Window1″ Height=”107″ Width=”140″ … Continue reading

Posted in graphics, user interface, wpf, XAML | Tagged , , , , , , , , , , , , , , , | Leave a comment