summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TemplateExtensions.cs
blob: 3e62c52d9e3f9be5e5796c22196d414ebb677dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;

namespace Xamarin.Forms
{
	public static class TemplateExtensions
	{
		public static void SetBinding(this DataTemplate self, BindableProperty targetProperty, string path)
		{
			if (self == null)
				throw new ArgumentNullException("self");

			self.SetBinding(targetProperty, new Binding(path));
		}
	}
}