summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Configuration.cs
blob: 0e00d942acd779659598032513af5cf0e3344949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

namespace Xamarin.Forms
{
	public class Configuration<TPlatform, TElement> : IPlatformElementConfiguration<TPlatform, TElement>
			where TPlatform : IConfigPlatform
			where TElement : Element

	{
		public Configuration(TElement element)
		{
			Element = element;
		}

		public TElement Element { get; }

		public static Configuration<TPlatform, TElement> Create(TElement element)
		{
			return new Configuration<TPlatform, TElement>(element);
		}
	}
}