Class ImageBrush
Paints an area with an image.
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 sealed class ImageBrush : TileBrush, IDependencyObject
Constructors
| Improve this Doc View SourceImageBrush()
Initializes a new instance of the ImageBrush class.
Declaration
public ImageBrush()
Fields
| Improve this Doc View SourceImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceImageSource
Gets or sets the image displayed by this ImageBrush.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
ImageSource | The image displayed by this ImageBrush. |
Events
| Improve this Doc View SourceImageFailed
Occurs when there is an error associated with image retrieval or format.
Declaration
[NotImplemented]
public event EventHandler<ExceptionRoutedEventArgs> ImageFailed
Event Type
Type | Description |
---|---|
System.EventHandler<ExceptionRoutedEventArgs> |
ImageOpened
Occurs when the image source is downloaded and decoded with no failure. You can use this event to determine the size of an image before rendering it.
Declaration
[NotImplemented]
public event EventHandler<RoutedEventArgs> ImageOpened
Event Type
Type | Description |
---|---|
System.EventHandler<RoutedEventArgs> |