Show / Hide Table of Contents

Class Brush

Defines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted.

Inheritance
System.Object
DependencyObject
Brush
GradientBrush
SolidColorBrush
TileBrush
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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 Source

Brush()

Initializes a new instance of the Brush class.

Declaration
protected Brush()

Fields

| Improve this Doc View Source

OpacityProperty

Identifies the Opacity dependency property.

Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

RelativeTransformProperty

Identifies the RelativeTransform dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty RelativeTransformProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TransformProperty

Identifies the Transform dependency property.

Declaration
public static readonly DependencyProperty TransformProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Opacity

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source