48 references to NamedSize
Microsoft.Maui.Controls (47)
Device.cs (3)
120 public static double GetNamedSize(NamedSize size, Element targetElement) 127 public static double GetNamedSize(NamedSize size, Type targetElementType) 146 public static double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes) =>
FontSizeConverter.cs (43)
30 NamedSize? namedSize = null; 32 if (value.Equals(nameof(NamedSize.Default), sc)) 33 namedSize = NamedSize.Default; 34 else if (value.Equals(nameof(NamedSize.Micro), sc)) 35 namedSize = NamedSize.Micro; 36 else if (value.Equals(nameof(NamedSize.Small), sc)) 37 namedSize = NamedSize.Small; 38 else if (value.Equals(nameof(NamedSize.Medium), sc)) 39 namedSize = NamedSize.Medium; 40 else if (value.Equals(nameof(NamedSize.Large), sc)) 41 namedSize = NamedSize.Large; 42 else if (value.Equals(nameof(NamedSize.Body), sc)) 43 namedSize = NamedSize.Body; 44 else if (value.Equals(nameof(NamedSize.Caption), sc)) 45 namedSize = NamedSize.Caption; 46 else if (value.Equals(nameof(NamedSize.Header), sc)) 47 namedSize = NamedSize.Header; 48 else if (value.Equals(nameof(NamedSize.Subtitle), sc)) 49 namedSize = NamedSize.Subtitle; 50 else if (value.Equals(nameof(NamedSize.Title), sc)) 51 namedSize = NamedSize.Title; 52 else if (Enum.TryParse(value, ignoreCase, out NamedSize ns)) 76 if (strValue.Equals(nameof(NamedSize.Default), StringComparison.Ordinal)) 77 return Device.GetNamedSize(NamedSize.Default, typeof(Label), false); 78 if (strValue.Equals(nameof(NamedSize.Micro), StringComparison.Ordinal)) 79 return Device.GetNamedSize(NamedSize.Micro, typeof(Label), false); 80 if (strValue.Equals(nameof(NamedSize.Small), StringComparison.Ordinal)) 81 return Device.GetNamedSize(NamedSize.Small, typeof(Label), false); 82 if (strValue.Equals(nameof(NamedSize.Medium), StringComparison.Ordinal)) 83 return Device.GetNamedSize(NamedSize.Medium, typeof(Label), false); 84 if (strValue.Equals(nameof(NamedSize.Large), StringComparison.Ordinal)) 85 return Device.GetNamedSize(NamedSize.Large, typeof(Label), false); 86 if (strValue.Equals(nameof(NamedSize.Body), StringComparison.Ordinal)) 87 return Device.GetNamedSize(NamedSize.Body, typeof(Label), false); 88 if (strValue.Equals(nameof(NamedSize.Caption), StringComparison.Ordinal)) 89 return Device.GetNamedSize(NamedSize.Caption, typeof(Label), false); 90 if (strValue.Equals(nameof(NamedSize.Header), StringComparison.Ordinal)) 91 return Device.GetNamedSize(NamedSize.Header, typeof(Label), false); 92 if (strValue.Equals(nameof(NamedSize.Subtitle), StringComparison.Ordinal)) 93 return Device.GetNamedSize(NamedSize.Subtitle, typeof(Label), false); 94 if (strValue.Equals(nameof(NamedSize.Title), StringComparison.Ordinal)) 95 return Device.GetNamedSize(NamedSize.Title, typeof(Label), false); 96 if (Enum.TryParse(strValue, out NamedSize namedSize))
IFontNamedSizeService.cs (1)
9 double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes);
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\FontSizeTypeConverter.cs (1)
26 if (Enum.TryParse(value, out NamedSize namedSize))