diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 13:02:25 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 16:13:41 -0700 |
commit | 17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch) | |
tree | b5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml b/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml new file mode 100644 index 00000000..38ad4753 --- /dev/null +++ b/Xamarin.Forms.Controls/GalleryPages/ControlTemplateXamlPage.xaml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8" ?> +<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + x:Class="Xamarin.Forms.Controls.GalleryPages.ControlTemplateXamlPage"> + <ContentPage.Resources> + <ResourceDictionary> + <ControlTemplate x:Key="ViewTemplate"> + <StackLayout> + <Label Text="{TemplateBinding Parent.AboveText}" /> + <ContentPresenter /> + <Label Text="Below" /> + </StackLayout> + </ControlTemplate> + <Style TargetType="ContentView"> + <Style.Setters> + <Setter Property="ControlTemplate" Value="{StaticResource ViewTemplate}" /> + </Style.Setters> + </Style> + </ResourceDictionary> + </ContentPage.Resources> + <ContentView> + <Label Text="I R CONTENT" /> + </ContentView> +</ContentPage>
\ No newline at end of file |