Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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