9 implementations of IFontElement
Microsoft.Maui.Controls (9)
Button\Button.cs (1)
17
public partial class Button : View,
IFontElement
, ITextElement, IBorderElement, IButtonController, IElementConfiguration<Button>, IPaddingElement, IImageController, IViewController, IButtonElement, ICommandElement, IImageElement, IButton, ITextButton, IImageButton
DatePicker\DatePicker.cs (1)
11
public partial class DatePicker : View,
IFontElement
, ITextElement, IElementConfiguration<DatePicker>, IDatePicker
InputView\InputView.cs (1)
11
public partial class InputView : View, IPlaceholderElement, ITextElement, ITextInput,
IFontElement
Label\Label.cs (1)
17
public partial class Label : View,
IFontElement
, ITextElement, ITextAlignmentElement, ILineHeightElement, IElementConfiguration<Label>, IDecorableTextElement, IPaddingElement, ILabel
Picker\Picker.cs (1)
18
public partial class Picker : View,
IFontElement
, ITextElement, ITextAlignmentElement, IElementConfiguration<Picker>, IPicker
RadioButton\RadioButton.cs (1)
14
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)
11
public partial class TimePicker : View,
IFontElement
, ITextElement, IElementConfiguration<TimePicker>, ITimePicker
70 references to IFontElement
Microsoft.Maui.Controls (70)
Button\Button.cs (5)
384
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
387
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
390
double
IFontElement
.FontSizeDefaultValueCreator() =>
393
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
396
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)
132
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
135
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
138
double
IFontElement
.FontSizeDefaultValueCreator() =>
141
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
144
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)
236
double
IFontElement
.FontSizeDefaultValueCreator() =>
239
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
242
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
245
void
IFontElement
.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
248
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
Label\Label.cs (5)
244
double
IFontElement
.FontSizeDefaultValueCreator() =>
247
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
250
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
253
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
256
void
IFontElement
.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
Picker\Picker.cs (5)
113
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
116
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
119
double
IFontElement
.FontSizeDefaultValueCreator() =>
122
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
125
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)
246
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
249
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
252
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
255
void
IFontElement
.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>
264
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)
119
void
IFontElement
.OnFontFamilyChanged(string oldValue, string newValue) =>
122
void
IFontElement
.OnFontSizeChanged(double oldValue, double newValue) =>
125
double
IFontElement
.FontSizeDefaultValueCreator() =>
128
void
IFontElement
.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
131
void
IFontElement
.OnFontAutoScalingEnabledChanged(bool oldValue, bool newValue) =>