WPF Image Brushes


This entry is part 4 of 5 in the series WPF Brushes

Microsoft says: “An ImageBrush paints an area with an image, with the image to paint coming from an image file source. You set the ImageSource property with the path of the image to load. Typically, the image source comes from a Content item that is part of your app’s resources. By default, an ImageBrush stretches its image to completely fill the painted area, possibly distorting the image if the painted area has a different aspect ratio than the image. You can change this behavior by changing the Stretch property from its default value of Fill and setting it as None, Uniform, or UniformToFill.”

Series Navigation<< WPF Linear Gradient BrushesWPF Brushes and Text >>