4 interfaces inheriting from IImageSource
Microsoft.Maui (4)
ImageSources\IFileImageSource.cs (1)
4
public interface IFileImageSource :
IImageSource
ImageSources\IFontImageSource.cs (1)
6
public interface IFontImageSource :
IImageSource
ImageSources\IStreamImageSource.cs (1)
8
public interface IStreamImageSource :
IImageSource
ImageSources\IUriImageSource.cs (1)
6
public interface IUriImageSource :
IImageSource
1 implementation of IImageSource
Microsoft.Maui.Controls (1)
Image\ImageSource.cs (1)
5
public partial class ImageSource :
IImageSource
26 references to IImageSource
Microsoft.Maui (21)
Core\IImage.cs (1)
25
IImageSource
? Source { get; }
Core\ISlider.cs (1)
28
IImageSource
ThumbImageSource { get; }
Hosting\ImageSources\ImageSourceServiceCollectionExtensions.cs (3)
17
where TImageSource :
IImageSource
36
where TImageSource :
IImageSource
45
where TImageSource :
IImageSource
Hosting\ImageSources\ImageSourceServiceProvider.cs (2)
12
static readonly string ImageSourceInterface = typeof(
IImageSource
).FullName!;
81
throw new InvalidOperationException($"Unable to find the image source type because none of the interfaces on {type.Name} were derived from {nameof(
IImageSource
)}.");
Hosting\ImageSources\ImageSourceServiceProviderExtensions.cs (4)
8
public static IImageSourceService? GetImageSourceService(this IImageSourceServiceProvider provider,
IImageSource
imageSource) =>
12
where T :
IImageSource
=>
15
public static IImageSourceService GetRequiredImageSourceService(this IImageSourceServiceProvider provider,
IImageSource
imageSource) =>
19
where T :
IImageSource
=>
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
19
where TImageSource :
IImageSource
34
Debug.Assert(typeof(
IImageSource
).IsAssignableFrom(type));
ImageSources\IImageSourceService.cs (1)
37
where T :
IImageSource
ImageSources\ImageSourceExtensions.cs (4)
23
public static void LoadImage(this
IImageSource
? source, IMauiContext mauiContext, Action<IImageSourceServiceResult<PlatformImage>?>? finished = null)
26
.FireAndForget(mauiContext.Services.CreateLogger<
IImageSource
>(), nameof(LoadImage));
35
public static Task<IImageSourceServiceResult<PlatformImage>?> GetPlatformImageAsync(this
IImageSource
? imageSource, IMauiContext mauiContext)
46
public static Task<IImageSourceServiceResult<PlatformImage>?> GetPlatformImageAsync(this IImageSourceService imageSourceService,
IImageSource
? imageSource, IMauiContext mauiContext)
ImageSources\ImageSourcePaint.cs (2)
12
public ImageSourcePaint(
IImageSource
imageSource)
17
public
IImageSource
? ImageSource { get; set; }
Platform\Standard\ViewExtensions.cs (1)
15
public static Task UpdateBackgroundImageSourceAsync(this object platformView,
IImageSource
? imageSource, IImageSourceServiceProvider? provider)
Microsoft.Maui.Controls (5)
Button\Button.cs (1)
511
IImageSource
IImageSourcePart.Source => ImageSource;
Image\Image.cs (1)
102
IImageSource
IImageSourcePart.Source => Source;
ImageButton\ImageButton.cs (1)
269
IImageSource
IImageSourcePart.Source => Source;
Menu\MenuItem.cs (1)
150
IImageSource
IImageSourcePart.Source => this.IconImageSource;
Slider\Slider.cs (1)
174
IImageSource
ISlider.ThumbImageSource => ThumbImageSource;