DrawingBrush Class
Paints an area with an Drawing.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class DrawingBrush : TileBrush,
ISceneBrush, ITileBrush, IBrush
Public NotInheritable Class DrawingBrush
Inherits TileBrush
Implements ISceneBrush, ITileBrush, IBrush
[<SealedAttribute>]
type DrawingBrush =
class
inherit TileBrush
interface ISceneBrush
interface ITileBrush
interface IBrush
end
| Inheritance | Object → AvaloniaObject → Animatable → Brush → TileBrush → DrawingBrush |
| Implements | IBrush, ISceneBrush, ITileBrush |
Constructors
| DrawingBrush() | Initializes a new instance of the DrawingBrush class. |
| DrawingBrush(Drawing) | Initializes a new instance of the DrawingBrush class. |
Properties
| AlignmentX | Gets or sets the horizontal alignment of a tile in the destination. (Inherited from TileBrush) |
| AlignmentY | Gets or sets the horizontal alignment of a tile in the destination. (Inherited from TileBrush) |
| DestinationRect | Gets or sets the rectangle on the destination in which to paint a tile. (Inherited from TileBrush) |
| Drawing | Gets or sets the visual to draw. |
| Item(AvaloniaProperty) | Gets or sets the value of a AvaloniaProperty. (Inherited from AvaloniaObject) |
| Item(IndexerDescriptor) | Gets or sets a binding for a AvaloniaProperty. (Inherited from AvaloniaObject) |
| Opacity | Gets or sets the opacity of the brush. (Inherited from Brush) |
| SourceRect | Gets or sets the rectangle of the source image that will be displayed. (Inherited from TileBrush) |
| Stretch | Gets or sets a value controlling how the source rectangle will be stretched to fill the destination rect. (Inherited from TileBrush) |
| TileMode | Gets or sets the brush's tile mode. (Inherited from TileBrush) |
| Transform | Gets or sets the transform of the brush. (Inherited from Brush) |
| TransformOrigin | Gets or sets the origin of the brush Transform (Inherited from Brush) |
| Transitions | Gets or sets the property transitions for the control. (Inherited from Animatable) |
Methods
Events
| PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
| DrawingProperty | Defines the Drawing property. |