Class Brush
Defines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public class Brush : DependencyObject, IDependencyObject
Constructors
| Improve this Doc View SourceBrush()
Initializes a new instance of the Brush class.
Declaration
protected Brush()
Fields
| Improve this Doc View SourceOpacityProperty
Identifies the Opacity dependency property.
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RelativeTransformProperty
Identifies the RelativeTransform dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty RelativeTransformProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TransformProperty
Identifies the Transform dependency property.
Declaration
public static readonly DependencyProperty TransformProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceOpacity
Gets or sets the degree of opacity of a Brush.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The value of the Opacity property is expressed as a value between 0 and 1.0. The default value is 1.0. |
RelativeTransform
Gets or sets the transformation that is applied to the brush using relative coordinates.
Declaration
[NotImplemented]
public Transform RelativeTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform | The transformation that is applied to the brush using relative coordinates. The default value is null. |
Transform
Gets or sets the transformation that is applied to the brush.
Declaration
public Transform Transform { get; set; }
Property Value
Type | Description |
---|---|
Transform | The transformation to apply to the brush. |