Show / Hide Table of Contents

Class ImageBrush

Paints an area with an image.

Inheritance
System.Object
DependencyObject
Brush
TileBrush
ImageBrush
Inherited Members
TileBrush.AlignmentXProperty
TileBrush.AlignmentX
TileBrush.AlignmentYProperty
TileBrush.AlignmentY
TileBrush.StretchProperty
TileBrush.Stretch
Brush.OpacityProperty
Brush.Opacity
Brush.RelativeTransformProperty
Brush.RelativeTransform
Brush.TransformProperty
Brush.Transform
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 sealed class ImageBrush : TileBrush, IDependencyObject

Constructors

| Improve this Doc View Source

ImageBrush()

Initializes a new instance of the ImageBrush class.

Declaration
public ImageBrush()

Fields

| Improve this Doc View Source

ImageSourceProperty

Identifies the ImageSource dependency property.

Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ImageSource

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 Source

ImageFailed

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>
| Improve this Doc View Source

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>

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