Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.ImageAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/Image.csControlcontrolpublic static readonly StyledProperty<IImage?> SourceProperty = AvaloniaProperty.Register<Image, IImage?>(nameof(Source));public static readonly StyledProperty<BitmapBlendingMode> BlendModeProperty = AvaloniaProperty.Register<Image, BitmapBlendingMode>(nameof(BlendMode));public static readonly StyledProperty<Stretch> StretchProperty = AvaloniaProperty.Register<Image, Stretch>(nameof(Stretch), Stretch.Uniform);public static readonly StyledProperty<StretchDirection> StretchDirectionProperty = AvaloniaProperty.Register<Image, StretchDirection>( nameof(StretchDirection), StretchDirection.Both);public IImage? Source {public BitmapBlendingMode BlendMode {public Stretch Stretch {public StretchDirection StretchDirection {public sealed override void Render(DrawingContext context) {<Image x:Name="SampleImage" />
using Avalonia.Controls;
var control = new Image();