2 instantiations of Image
Microsoft.Maui.Controls (2)
Shell\BaseShellItem.cs (1)
454 var image = new Image();
TitleBar\TitleBar.cs (1)
405 var icon = new Image()
41 references to Image
Microsoft.Maui.Controls (29)
DragAndDrop\DropGestureRecognizer.cs (1)
137 if (Parent is Image image)
Hosting\AppHostBuilderExtensions.cs (1)
75 handlersCollection.AddHandler<Image, ImageHandler>();
Image\Image.cs (6)
10 public partial class Image : View, IImageController, IElementConfiguration<Image>, IViewController, IImageElement, IImage 21 internal static readonly BindablePropertyKey IsLoadingPropertyKey = BindableProperty.CreateReadOnly(nameof(IsLoading), typeof(bool), typeof(Image), default(bool)); 29 readonly Lazy<PlatformConfigurationRegistry<Image>> _platformConfigurationRegistry; 34 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<Image>>(() => new PlatformConfigurationRegistry<Image>(this)); 87 public IPlatformElementConfiguration<T, Image> On<T>() where T : IConfigPlatform
Layout\FlexLayout.cs (1)
509 if (child is Image)
PlatformConfiguration\TizenSpecific\Image.cs (9)
5 using FormsElement = Maui.Controls.Image; 11 public static readonly BindableProperty BlendColorProperty = BindableProperty.Create("BlendColor", typeof(Color), typeof(FormsElement), null); 14 public static readonly BindableProperty FileProperty = BindableProperty.Create("File", typeof(string), typeof(FormsElement), default(string)); 29 public static Color GetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config) 35 public static IPlatformElementConfiguration<Tizen, FormsElement> SetBlendColor(this IPlatformElementConfiguration<Tizen, FormsElement> config, Color color) 54 public static string GetFile(this IPlatformElementConfiguration<Tizen, FormsElement> config) 60 public static IPlatformElementConfiguration<Tizen, FormsElement> SetFile(this IPlatformElementConfiguration<Tizen, FormsElement> config, string file)
Shell\BaseShellItem.cs (9)
331 flyoutItemCell.Children.OfType<Image>().First() 373 var defaultImageClass = new Style(typeof(Image)) 376 new Setter { Property = Image.VerticalOptionsProperty, Value = LayoutOptions.Center } 454 var image = new Image(); 468 defaultImageClass.Setters.Add(new Setter() { Property = Image.HeightRequestProperty, Value = sizeRequest }); 469 defaultImageClass.Setters.Add(new Setter() { Property = Image.WidthRequestProperty, Value = sizeRequest }); 474 defaultImageClass.Setters.Add(new Setter { Property = Image.HorizontalOptionsProperty, Value = LayoutOptions.Start }); 475 defaultImageClass.Setters.Add(new Setter { Property = Image.MarginProperty, Value = new Thickness(12, 0, 12, 0) }); 478 defaultImageClass.Setters.Add(new Setter { Property = Image.SourceProperty, Value = imageBinding });
TitleBar\TitleBar.cs (2)
405 var icon = new Image() 418 Image.SourceProperty,
Microsoft.Maui.Controls.Compatibility (12)
iOS\Renderers\ImageElementManager.cs (6)
102 if (e.PropertyName == Image.IsOpaqueProperty.PropertyName) 104 else if (e.PropertyName == Image.AspectProperty.PropertyName) 106 else if (e.PropertyName == Image.IsAnimationPlayingProperty.PropertyName) 145 public static async Task SetImage(IImageVisualElementRenderer renderer, IImageElement imageElement, Image oldElement = null) 220 if ((bool)Element.GetValue(Image.IsAnimationPlayingProperty)) 261 imageController.SetValueFromRenderer(Image.IsAnimationPlayingProperty, false);
iOS\Renderers\ImageRenderer.cs (6)
19 public class ImageRenderer : ViewRenderer<Image, FormsUIImageView>, IImageVisualElementRenderer 49 protected override async void OnElementChanged(ElementChangedEventArgs<Image> e) 65 await TrySetImage(e.OldElement as Image); 72 if (e.PropertyName == Image.SourceProperty.PropertyName) 76 protected virtual async Task TrySetImage(Image previous = null) 96 protected async Task SetImage(Image oldElement = null)