Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The .NET Multi-platform App UI (.NET MAUI) Image
displays an image that can be loaded from a local file, a URI, an embedded resource, or a stream. The standard platform image formats are supported, including animated GIFs, and local Scalable Vector Graphics (SVG) files are also supported. For more information about the Image
control, see Image.
Any control that has a property of type ImageSource
, can specify the source of an image. The ImageSource
property has the following methods that can be used to load an image from different sources:
FromFile
returns a FileImageSource
that reads an image from a local file.FromUri
returns an UriImageSource
that downloads and reads an image from a specified URI.FromResource
returns a StreamImageSource
that reads an image file embedded in an assembly.FromStream
returns a StreamImageSource
that reads an image from a stream that supplies image data.The .NET MAUI Community Toolkit provides a collection of additional pre-built, reusable ImageSources
to make developers lives easier. Here are the sources provided by the toolkit:
View | Description |
---|---|
GravatarImageSource |
The GravatarImageSource provides an Image source to display a users Gravatar registered image via their email address. |
.NET MAUI Community Toolkit feedback
.NET MAUI Community Toolkit is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Design consistent .NET MAUI XAML pages by using shared resources - Training
Learn how to use static and dynamic shared resources to build a .NET Multi-platform App UI (MAUI) user interface. And see how styles can make the user interface both consistent and accessible.