Image extensions
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);
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET MAUI Community Toolkit
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for