Class Brush
Defines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted.
Implements
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, IHasAccessToPropertiesWhereItIsUsed
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 | The RelativeTransform dependency property identifier. |
TransformProperty
Declaration
[NotImplemented]
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. The value of the Opacity property is expressed as a value between 0 and 1.0. The default value is 1.0, which is full opacity. 0 is transparent opacity.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
PropertiesWhereUsed
Declaration
public HashSet<KeyValuePair<DependencyObject, DependencyProperty>> PropertiesWhereUsed { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.Collections.Generic.KeyValuePair<DependencyObject, DependencyProperty>> |
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
Transform - Transform. Default value is Transform.Identity.
Declaration
[NotImplemented]
public Transform Transform { get; set; }
Property Value
Type | Description |
---|---|
Transform |