Image
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class Image : Control
A Fluent Design image presenter that frames a picture with a theme-aware 1px stroke and rounded-corner clipping while delegating natural sizing, stretch semantics, and DPI handling to a real inner Image. Authority: in-tree precedent (PersonPicture stroke tokens, FontIcon non-interactive shape); WinUI 3 ships no styled Image control, so the frame follows the Card stroke idiom.
Base type: Control (including inherited WPF and .NET members)
Constructors
Image
public Image()
Creates a new Image instance.
Properties
CornerRadius
public CornerRadius CornerRadius { get; set; }
Gets or sets the corner radius of the frame. The stroke border template-binds this value directly; the inner image is clipped in code using the top-left radius uniformly (the WPF Border corner-clip idiom). Set to 0 to disable clipping.
Source
public ImageSource? Source { get; set; }
Gets or sets the image source to display. When null (default) nothing is drawn inside the frame.
Stretch
public Stretch Stretch { get; set; }
Gets or sets how the image fills the available space. The default is Uniform, preserving the source aspect ratio.
Methods
OnApplyTemplate
public override void OnApplyTemplate()
Documentation inherited from the Control API.
OnCreateAutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
Documentation inherited from the Control API.
OnRenderSizeChanged
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Documentation inherited from the Control API.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.
SourceProperty
public static readonly DependencyProperty SourceProperty
Identifies the Source dependency property.
StretchProperty
public static readonly DependencyProperty StretchProperty
Identifies the Stretch dependency property.