summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/IFontElement.cs
blob: 044497455f19195d317a4ab2a0752b4af610180c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Xamarin.Forms
{
	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);
	}
}