9 implementations of IFontElement
Microsoft.Maui.Controls (9)
Button\Button.cs (1)
16 public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
DatePicker\DatePicker.cs (1)
9 public partial class DatePicker : View, IFontElement, ITextElement, IElementConfiguration<DatePicker>, IDatePicker
InputView\InputView.cs (1)
9 public partial class InputView : View, IPlaceholderElement, ITextElement, ITextInput, IFontElement
Label\Label.cs (1)
15 public partial class Label : View, IFontElement, ITextElement, ITextAlignmentElement, ILineHeightElement, IElementConfiguration<Label>, IDecorableTextElement, IPaddingElement, ILabel
Picker\Picker.cs (1)
16 public partial class Picker : View, IFontElement, ITextElement, ITextAlignmentElement, IElementConfiguration<Picker>, IPicker
RadioButton\RadioButton.cs (1)
12 public partial class RadioButton : TemplatedView, IElementConfiguration<RadioButton>, ITextElement, IFontElement, IBorderElement, IRadioButton
Shell\SearchHandler.cs (1)
14 public class SearchHandler : BindableObject, ISearchHandlerController, IPlaceholderElement, IFontElement, ITextElement, ITextAlignmentElement
Span.cs (1)
10 public class Span : GestureElement, IFontElement, IStyleElement, ITextElement, ILineHeightElement, IDecorableTextElement
TimePicker\TimePicker.cs (1)
9 public partial class TimePicker : View, IFontElement, ITextElement, IElementConfiguration<TimePicker>, ITimePicker
70 references to IFontElement
Microsoft.Maui.Controls (70)
Button\Button.cs (5)
383 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 386 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 389 double IFontElement.FontSizeDefaultValueCreator() => 392 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 395 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
ContentConverter.cs (7)
39 if (view is IFontElement && HasTemplateAncestor(presenter, typeof(IFontElement))) 59 if (HasTemplateAncestor(presenter, typeof(IFontElement))) 88 var source = new RelativeBindingSource(RelativeBindingSourceMode.FindAncestor, typeof(IFontElement)); 91 content.SetBinding(FontElement.FontAttributesProperty, static (IFontElement fe) => fe.FontAttributes, source: source); 96 content.SetBinding(FontElement.FontSizeProperty, static (IFontElement fe) => fe.FontSize, source: source); 101 content.SetBinding(FontElement.FontFamilyProperty, static (IFontElement fe) => fe.FontFamily, source: source);
DatePicker\DatePicker.cs (5)
130 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 133 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 136 double IFontElement.FontSizeDefaultValueCreator() => 139 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 142 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
FontElement.cs (13)
9 /// The backing store for the <see cref="IFontElement.FontFamily" /> bindable property. 12 BindableProperty.Create("FontFamily", typeof(string), typeof(IFontElement), default(string), 16 /// The backing store for the <see cref="IFontElement.FontSize" /> bindable property. 19 BindableProperty.Create("FontSize", typeof(double), typeof(IFontElement), 0d, 24 /// The backing store for the <see cref="IFontElement.FontAttributes" /> bindable property. 27 BindableProperty.Create("FontAttributes", typeof(FontAttributes), typeof(IFontElement), FontAttributes.None, 31 /// The backing store for the <see cref="IFontElement.FontAutoScalingEnabled" /> bindable property. 34 BindableProperty.Create("FontAutoScalingEnabled", typeof(bool), typeof(IFontElement), true, 38 => ((IFontElement)bindable).OnFontFamilyChanged((string)oldValue, (string)newValue); 41 => ((IFontElement)bindable).OnFontSizeChanged((double)oldValue, (double)newValue); 44 => ((IFontElement)bindable).FontSizeDefaultValueCreator(); 47 => ((IFontElement)bindable).OnFontAttributesChanged((FontAttributes)oldValue, (FontAttributes)newValue); 50 => ((IFontElement)bindable).OnFontAutoScalingEnabledChanged((bool)oldValue, (bool)newValue);
FontExtensions.cs (1)
29 public static Font ToFont(this IFontElement element, double? defaultSize = null)
InputView\InputView.cs (5)
234 double IFontElement.FontSizeDefaultValueCreator() => 237 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 240 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 243 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) => 246 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
Label\Label.cs (5)
242 double IFontElement.FontSizeDefaultValueCreator() => 245 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 248 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 251 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 254 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
Picker\Picker.cs (5)
111 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 114 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 117 double IFontElement.FontSizeDefaultValueCreator() => 120 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 123 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
Platform\iOS\Extensions\FontExtensions.cs (1)
20 public static UIFont ToUIFont<TFontElement>(this TFontElement fontElement) where TFontElement : Element, IFontElement
Properties\AssemblyInfo.cs (3)
102[assembly: StyleProperty("font-family", typeof(IFontElement), nameof(FontElement.FontFamilyProperty), Inherited = true)] 103[assembly: StyleProperty("font-size", typeof(IFontElement), nameof(FontElement.FontSizeProperty), Inherited = true)] 104[assembly: StyleProperty("font-style", typeof(IFontElement), nameof(FontElement.FontAttributesProperty), Inherited = true)]
RadioButton\RadioButton.cs (5)
244 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 247 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 250 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 253 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) => 262 double IFontElement.FontSizeDefaultValueCreator() =>
Shell\SearchHandler.cs (5)
226 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) 230 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) 234 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) 238 double IFontElement.FontSizeDefaultValueCreator() => 241 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue)
Span.cs (5)
153 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) 157 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) 161 double IFontElement.FontSizeDefaultValueCreator() => 164 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) 180 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) { }
TimePicker\TimePicker.cs (5)
117 void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) => 120 void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => 123 double IFontElement.FontSizeDefaultValueCreator() => 126 void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) => 129 void IFontElement.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>