summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs
blob: b329ea12a5a8aa3be42583e961e38cdaf66319b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;

namespace Xamarin.Forms.Controls.GalleryPages
{
	public partial class ControlTemplateXamlPage : ContentPage
	{
		public static readonly BindableProperty AboveTextProperty =
			BindableProperty.Create (nameof (AboveText), typeof (string), typeof (ControlTemplateXamlPage), null);

		public string AboveText
		{
			get { return (string)GetValue (AboveTextProperty); }
			set { SetValue (AboveTextProperty, value); }
		}

		public ControlTemplateXamlPage ()
		{
			BindingContext = new {
				Text = "Testing 123"
			};
			this.SetBinding (AboveTextProperty, "Text");
			InitializeComponent ();
		}
	}
}