1 instantiation of FontImageSource
Microsoft.Maui.Controls.Xaml (1)
MarkupExtensions\FontImageExtension.cs (1)
19
return new
FontImageSource
14 references to FontImageSource
Microsoft.Maui.Controls (12)
Compatibility\iOS\Extensions\ToolbarItemExtensions.cs (1)
112
if (item.IconImageSource is
FontImageSource
fontImageSource && fontImageSource.Color is not null)
FontImageSource.cs (10)
13
public static readonly BindableProperty ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(
FontImageSource
), default(Color),
14
propertyChanged: (b, o, n) => ((
FontImageSource
)b).OnSourceChanged());
24
public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(
FontImageSource
), default(string),
25
propertyChanged: (b, o, n) => ((
FontImageSource
)b).OnSourceChanged());
35
public static readonly BindableProperty GlyphProperty = BindableProperty.Create(nameof(Glyph), typeof(string), typeof(
FontImageSource
), default(string),
36
propertyChanged: (b, o, n) => ((
FontImageSource
)b).OnSourceChanged());
46
public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(double), typeof(
FontImageSource
), 30d,
47
propertyChanged: (b, o, n) => ((
FontImageSource
)b).OnSourceChanged());
59
BindableProperty.Create(nameof(FontAutoScalingEnabled), typeof(bool), typeof(
FontImageSource
), false,
60
propertyChanged: (b, o, n) => ((
FontImageSource
)b).OnSourceChanged());
Hosting\AppHostBuilderExtensions.cs (1)
227
services.AddService<
FontImageSource
>(svcs => new FontImageSourceService(svcs.GetRequiredService<IFontManager>(), svcs.CreateLogger<FontImageSourceService>()));
Microsoft.Maui.Controls.Compatibility (1)
AppHostBuilderExtensions.cs (1)
99
Internals.Registrar.Registered.Register(typeof(
FontImageSource
), typeof(FontImageSourceHandler));
Microsoft.Maui.Controls.Xaml (1)
MarkupExtensions\FontImageExtension.cs (1)
15
public double Size { get; set; } = (double)
FontImageSource
.SizeProperty.DefaultValue;