blob: 39a618e30660abe43b9d8b3887c25bfa1be62fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
namespace Xamarin.Forms.Internals
{
public interface IFontElement
{
//note to implementor: implement the properties publicly
FontAttributes FontAttributes { get; }
string FontFamily { get; }
[TypeConverter(typeof(FontSizeConverter))]
double FontSize { get; }
//note to implementor: but implement the methods explicitly
void OnFontFamilyChanged(string oldValue, string newValue);
void OnFontSizeChanged(double oldValue, double newValue);
double FontSizeDefaultValueCreator();
void OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue);
void OnFontChanged(Font oldValue, Font newValue);
}
}
|