Initializes a new instance of the Brush class.
For more information about inheriting from Freezable types, see the Freezable Objects Overview. Depending on whether your class must perform additional initialization work or contains non-dependency property data members, you might need to override additional Freezable methods. When you inherit from the Brush class, you must override the CreateInstanceCore() method. For information about Freezable features, such as freezing and cloning, see the Freezable Objects Overview.įor XAML information, see the Remarks section. Freezable FeaturesĪ brush is a type of Freezable object.
#ANTI STROKE BRUSH HOW TO#
Classįor an example showing how to quickly paint an area with a solid color, see How to: Paint an Area with a Solid Color. For detailed syntax information for a specific brush, see that brush's type page. The following table lists the different Brush types that can be used in XAML and the syntax they support. Use the Brushes class to paint an object using a predefined solid color, such as AliceBlue or Red. A VisualBrush enables you to duplicate content from one portion of your application into another area it's very useful for creating reflection effects and magnifying portions of the screen. VisualBrush: Paints an area with a Visual object.
The drawing may include vector and bitmap objects. ImageBrush: Paints an area with an image (represented by an ImageSource object).ĭrawingBrush: Paints an area with a Drawing. RadialGradientBrush: Paints an area with a radial gradient. LinearGradientBrush: Paints an area with a linear gradient. SolidColorBrush: Paints an area with a solid Color. The following list describes the different types of WPF brushes: Some brushes paint an area with a solid color, others with a gradient, pattern, image, or drawing. Different brushes have different types of output.
Interface IFormattable Public MustInherit Class BrushĪ Brush "paints" or "fills" an area with its output. Public abstract class Brush : .Animatable, IFormattable In this article public ref class Brush abstract : System::Windows::Media::Animation::Animatable, IFormattable Classes that derive from Brush describe how the area is painted. Defines objects used to paint graphical objects.