4 types derived from ImageSource
Microsoft.Maui.Controls (4)
FileImageSource.cs (1)
8 public sealed partial class FileImageSource : ImageSource
FontImageSource.cs (1)
7 public partial class FontImageSource : ImageSource
StreamImageSource.cs (1)
10 public partial class StreamImageSource : ImageSource, IStreamImageSource
UriImageSource.cs (1)
13 public sealed partial class UriImageSource : ImageSource, IStreamImageSource
144 references to ImageSource
Microsoft.Maui.Controls (130)
AppLinkEntry.cs (4)
25 public static readonly BindableProperty ThumbnailProperty = BindableProperty.Create(nameof(Thumbnail), typeof(ImageSource), typeof(AppLinkEntry), default(ImageSource)); 61 public ImageSource Thumbnail 63 get { return (ImageSource)GetValue(ThumbnailProperty); }
BindableProperty.cs (1)
48 { typeof(ImageSource), new ImageSourceConverter() }
Brush\Brush.cs (1)
48 if (paint is ImageSourcePaint imageSourcePaint && imageSourcePaint.ImageSource is ImageSource imageSource)
Button\Button.cs (4)
209 public ImageSource ImageSource 211 get { return (ImageSource)GetValue(ImageSourceProperty); } 376 ImageSource image = ImageSource; 405 ImageSource IImageElement.Source => ImageSource;
Cells\ImageCell.cs (11)
10 public static readonly BindableProperty ImageSourceProperty = BindableProperty.Create(nameof(ImageSource), typeof(ImageSource), typeof(ImageCell), null, 11 propertyChanging: (bindable, oldvalue, newvalue) => ((ImageCell)bindable).OnSourcePropertyChanging((ImageSource)oldvalue, (ImageSource)newvalue), 12 propertyChanged: (bindable, oldvalue, newvalue) => ((ImageCell)bindable).OnSourcePropertyChanged((ImageSource)oldvalue, (ImageSource)newvalue)); 27 public ImageSource ImageSource 29 get { return (ImageSource)GetValue(ImageSourceProperty); } 46 void OnSourcePropertyChanged(ImageSource oldvalue, ImageSource newvalue) 55 void OnSourcePropertyChanging(ImageSource oldvalue, ImageSource newvalue)
Compatibility\Handlers\ListView\iOS\ImageCellRenderer.cs (1)
41 var source = cell.ImageSource;
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (2)
1509 ImageSource titleIcon = NavigationPage.GetTitleIconImageSource(page); 1547 void UpdateTitleImage(Container titleViewContainer, ImageSource titleIcon)
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (1)
255 var imageSource = _shellContext.Shell.FlyoutBackgroundImage;
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (4)
324 var image = behavior.GetPropertyIfSet<ImageSource>(BackButtonBehavior.IconOverrideProperty, null); 730 var icon = SearchHandler.QueryIcon; 790 void SetSearchBarIcon(UISearchBar searchBar, ImageSource source, UISearchBarIcon icon)
DragAndDrop\DataPackage.cs (1)
19 public ImageSource Image { get; set; }
DragAndDrop\DataPackageView.cs (1)
23 public Task<ImageSource> GetImageAsync()
DragAndDrop\DropGestureRecognizer.cs (1)
119 ImageSource sourceTarget = await dataView.GetImageAsync();
FileImageSourceConverter.cs (1)
21 return (FileImageSource)ImageSource.FromFile(strValue);
IAppLinkEntry.cs (1)
17 ImageSource Thumbnail { get; set; }
Image\IImageElement.cs (1)
12 ImageSource Source { get; }
Image\Image.cs (2)
65 public ImageSource Source 67 get { return (ImageSource)GetValue(SourceProperty); }
ImageBrush.cs (5)
10 public ImageBrush(ImageSource imageSource) 20 nameof(ImageSource), typeof(ImageSource), typeof(ImageBrush), default(ImageSource)); 22 public virtual ImageSource? ImageSource 24 get => (ImageSource?)GetValue(ImageSourceProperty);
ImageButton\ImageButton.cs (2)
124 public ImageSource Source 126 get { return (ImageSource)GetValue(SourceProperty); }
ImageElement.cs (11)
11 public static readonly BindableProperty ImageSourceProperty = BindableProperty.Create("ImageSource", typeof(ImageSource), typeof(IImageElement), default(ImageSource), 15 public static readonly BindableProperty SourceProperty = BindableProperty.Create(nameof(IImageElement.Source), typeof(ImageSource), typeof(IImageElement), default(ImageSource), 28 var newSource = (ImageSource)newValue; 37 var oldSource = (ImageSource)oldValue; 109 public static void ImageSourceChanging(ImageSource oldImageSource) 127 async static void CancelOldValue(ImageSource oldvalue) 139 static void ImageSourceChanged(BindableObject bindable, ImageSource newSource)
ImageSource.cs (9)
31 public static bool IsNullOrEmpty(ImageSource imageSource) => 69 public static ImageSource FromFile(string file) 75 public static ImageSource FromResource(string resource, Type resolvingType) 81 public static ImageSource FromResource(string resource, Assembly sourceAssembly = null) 89 public static ImageSource FromStream(Func<Stream> stream) 95 public static ImageSource FromStream(Func<CancellationToken, Task<Stream>> stream) 101 public static ImageSource FromUri(Uri uri) 108 public static implicit operator ImageSource(string source) 114 public static implicit operator ImageSource(Uri uri)
ImageSourceConverter.cs (4)
23 return (ImageSource)uriValue; 29 return Uri.TryCreate(strValue, UriKind.Absolute, out Uri uri) && uri.Scheme != "file" ? ImageSource.FromUri(uri) : ImageSource.FromFile(strValue); 31 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(ImageSource)));
Menu\MenuItem.cs (4)
33 public static readonly BindableProperty IconImageSourceProperty = BindableProperty.Create(nameof(IconImageSource), typeof(ImageSource), typeof(MenuItem), default(ImageSource), 77 public ImageSource IconImageSource 79 get => (ImageSource)GetValue(IconImageSourceProperty);
NavigationPage\NavigationPage.cs (5)
37 public static readonly BindableProperty TitleIconImageSourceProperty = BindableProperty.CreateAttached("TitleIconImageSource", typeof(ImageSource), typeof(NavigationPage), default(ImageSource)); 185 public static ImageSource GetTitleIconImageSource(BindableObject bindable) 187 return (ImageSource)bindable.GetValue(TitleIconImageSourceProperty); 346 public static void SetTitleIconImageSource(BindableObject bindable, ImageSource value)
Page\Page.cs (11)
53 public static readonly BindableProperty BackgroundImageSourceProperty = BindableProperty.Create(nameof(BackgroundImageSource), typeof(ImageSource), typeof(Page), default(ImageSource)); 65 public static readonly BindableProperty IconImageSourceProperty = BindableProperty.Create(nameof(IconImageSource), typeof(ImageSource), typeof(Page), default(ImageSource)); 103 /// Gets or sets the <see cref="ImageSource"/> that will be used as the background for this page. This is a bindable property. 105 public ImageSource BackgroundImageSource 107 get { return (ImageSource)GetValue(BackgroundImageSourceProperty); } 112 /// Gets or sets the <see cref="ImageSource"/> to be used for the icon associated to this page. This is a bindable property. 115 public ImageSource IconImageSource 117 get { return (ImageSource)GetValue(IconImageSourceProperty); } 839 if (!ImageSource.IsNullOrEmpty(BackgroundImageSource))
Platform\ImageExtensions.cs (1)
5 public static bool IsNullOrEmpty(this ImageSource? imageSource) =>
Shell\BackButtonBehavior.cs (3)
22 BindableProperty.Create(nameof(IconOverride), typeof(ImageSource), typeof(BackButtonBehavior), null, BindingMode.OneTime); 51 public ImageSource IconOverride 53 get { return (ImageSource)GetValue(IconOverrideProperty); }
Shell\BaseShellItem.cs (7)
37 BindableProperty.Create(nameof(FlyoutIcon), typeof(ImageSource), typeof(BaseShellItem), null, BindingMode.OneTime); 41 BindableProperty.Create(nameof(Icon), typeof(ImageSource), typeof(BaseShellItem), null, BindingMode.OneWay, 78 public ImageSource FlyoutIcon 80 get { return (ImageSource)GetValue(FlyoutIconProperty); } 85 public ImageSource Icon 87 get { return (ImageSource)GetValue(IconProperty); } 229 shellItem.FlyoutIcon = (ImageSource)newValue;
Shell\IShellController.cs (1)
31 ImageSource FlyoutIcon { get; }
Shell\SearchHandler.cs (12)
323 BindableProperty.Create(nameof(ClearIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime); 346 BindableProperty.Create(nameof(ClearPlaceholderIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime, 395 BindableProperty.Create(nameof(QueryIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime, 426 public ImageSource ClearIcon 428 get { return (ImageSource)GetValue(ClearIconProperty); } 475 public ImageSource ClearPlaceholderIcon 477 get { return (ImageSource)GetValue(ClearPlaceholderIconProperty); } 539 public ImageSource QueryIcon 541 get { return (ImageSource)GetValue(QueryIconProperty); } 719 var queryIcon = QueryIcon; 720 var clearIcon = ClearIcon; 721 var clearPlaceholderIcon = ClearPlaceholderIcon;
Shell\Shell.cs (7)
1074 BindableProperty.Create(nameof(FlyoutBackgroundImage), typeof(ImageSource), typeof(Shell), default(ImageSource), BindingMode.OneTime); 1140 BindableProperty.Create(nameof(FlyoutIcon), typeof(ImageSource), typeof(Shell), null); 1295 public ImageSource FlyoutIcon 1297 get => (ImageSource)GetValue(FlyoutIconProperty); 1320 public ImageSource FlyoutBackgroundImage 1322 get => (ImageSource)GetValue(FlyoutBackgroundImageProperty);
Slider\Slider.cs (4)
48 public static readonly BindableProperty ThumbImageSourceProperty = BindableProperty.Create(nameof(ThumbImageSource), typeof(ImageSource), typeof(Slider), default(ImageSource)); 105 public ImageSource ThumbImageSource 107 get { return (ImageSource)GetValue(ThumbImageSourceProperty); }
TitleBar\TitleBar.cs (5)
47 public static readonly BindableProperty IconProperty = BindableProperty.Create(nameof(Icon), typeof(ImageSource), 90 var imageSource = newValue as ImageSource; 159 public ImageSource Icon 161 get { return (ImageSource)GetValue(IconProperty); }
Toolbar\Toolbar.cs (2)
18 ImageSource _titleIcon; 38 public ImageSource TitleIcon { get => _titleIcon; set => SetProperty(ref _titleIcon, value); }
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ImageSourceTypeConverter.cs (1)
36 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(ImageSource));
Microsoft.Maui.Controls.Compatibility (10)
Tizen\Extensions\ImageExtensions.cs (2)
8 public static async Task<bool> LoadFromImageSourceAsync(this NImage image, ImageSource source) 19 public static bool IsNullOrEmpty(this ImageSource imageSource) =>
Tizen\Renderers\ImageRenderer.cs (7)
33 if (initialize && Element.Source == default(ImageSource)) 36 ImageSource source = Element.Source; 74 Task<bool> LoadImageAsync(NUIImage image, ImageSource imageSource, CancellationToken cancellationToken = default(CancellationToken)); 79 public async Task<bool> LoadImageAsync(NUIImage image, ImageSource imageSource, CancellationToken cancellationToken = default(CancellationToken)) 90 public async Task<bool> LoadImageAsync(NUIImage image, ImageSource imageSource, CancellationToken cancellationToken = default(CancellationToken)) 108 public async Task<bool> LoadImageAsync(NUIImage image, ImageSource imageSource, CancellationToken cancellationToken = default(CancellationToken)) 127 public Task<bool> LoadImageAsync(NUIImage image, ImageSource imageSource, CancellationToken cancellationToken = default(CancellationToken))
Tizen\ResourcePath.cs (1)
40 internal static string GetPath(ImageSource icon)
Microsoft.Maui.Controls.Xaml (3)
MarkupExtensions\FontImageExtension.cs (3)
8 public class FontImageExtension : IMarkupExtension<ImageSource> 17 public ImageSource ProvideValue(IServiceProvider serviceProvider) 30 return (this as IMarkupExtension<ImageSource>).ProvideValue(serviceProvider);