Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Image extensions provide a series of extension methods that support configuring IImage controls.
The extensions offer the following methods:
Source
The Source method sets the Source property on an IImage element.
The following example sets the Source to "dotnet_bot":
new Image().Source("dotnet_bot");
Aspect
The Aspect method sets the Aspect property on an IImage element.
The following example sets the Aspect to Aspect.AspectFill:
new Image().Aspect(Aspect.AspectFill);
IsOpaque
The IsOpaque method sets the IsOpaque property on an IImage element.
The following example sets the IsOpaque to true:
new Image().IsOpaque(true);
.NET MAUI Community Toolkit