diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs b/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs new file mode 100644 index 00000000..b329ea12 --- /dev/null +++ b/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml.cs @@ -0,0 +1,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 (); + } + } +} |