summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/VisualElementExtensions.cs
blob: a39cc88e09d3a495be0fb61e7b24bc5358a8c576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace Xamarin.Forms.Platform.Android
{
	public static class VisualElementExtensions
	{
		public static IVisualElementRenderer GetRenderer(this VisualElement self)
		{
			if (self == null)
				throw new ArgumentNullException("self");

			IVisualElementRenderer renderer = Platform.GetRenderer(self);

			return renderer;
		}
	}
}