Class ImageBrush
Paints an area with an IBitmap.
public sealed class ImageBrush : TileBrush, INotifyPropertyChanged, IImageBrush, ITileBrush, IBrush
- Inheritance
-
ImageBrush
- Implements
- Inherited Members
- Extension Methods
Constructors
ImageBrush()
Initializes a new instance of the ImageBrush class.
public ImageBrush()
ImageBrush(IImageBrushSource?)
Initializes a new instance of the ImageBrush class.
public ImageBrush(IImageBrushSource? source)
Parameters
source
IImageBrushSourceThe image to draw.
Fields
SourceProperty
Defines the Visual property.
public static readonly StyledProperty<IImageBrushSource?> SourceProperty
Field Value
Properties
Source
Gets or sets the image to draw.
public IImageBrushSource? Source { get; set; }
Property Value
Methods
ToImmutable()
Creates an immutable clone of the brush.
public IImmutableBrush ToImmutable()
Returns
- IImmutableBrush
The immutable clone.