VisualBrush Class
Paints an area with an Visual.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class VisualBrush : TileBrush,
ISceneBrush, ITileBrush, IBrush
Public NotInheritable Class VisualBrush
Inherits TileBrush
Implements ISceneBrush, ITileBrush, IBrush
[<SealedAttribute>]
type VisualBrush =
class
inherit TileBrush
interface ISceneBrush
interface ITileBrush
interface IBrush
end
Inheritance | Object → AvaloniaObject → Animatable → Brush → TileBrush → VisualBrush |
Implements | IBrush, ISceneBrush, ITileBrush |
Constructors
VisualBrush() | Initializes a new instance of the VisualBrush class. |
VisualBrush(Visual) | Initializes a new instance of the VisualBrush 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) |
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) |
Visual | Gets or sets the visual to draw. |
Methods
Events
PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
VisualProperty | Defines the Visual property. |