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.Xaml.UnitTests/XReference.xaml | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/XReference.xaml')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/XReference.xaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/XReference.xaml b/Xamarin.Forms.Xaml.UnitTests/XReference.xaml new file mode 100644 index 00000000..f09af13e --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/XReference.xaml @@ -0,0 +1,37 @@ +<?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.Xaml.UnitTests.XReference"> + <ContentPage.Resources> + <ResourceDictionary> + <Image x:Name="image" x:Key="imageKey"/> + </ResourceDictionary> + </ContentPage.Resources> + <StackLayout> + <ContentView x:Name="imageView" Content="{x:Reference image}"/> + <Button + x:Name="aButton" + Text="My Button" + Command="{Binding ButtonClickCommand}" + CommandParameter="{x:Reference aButton}"/> + <StackLayout> + <Label x:Name="label0" Text="foo" BindingContext="{x:Reference label1}"/> + <Label x:Name="label1" Text="bar" BindingContext="{x:Reference label0}"/> + <Entry x:Name="entry" Text="{Binding Text, Source={x:Reference label0}}" Placeholder="{Binding Text, Source={x:Reference label1}}"/> + </StackLayout> + +<!-- <ListView x:Name="listView"> + <ListView.ItemTemplate> + <DataTemplate> + <ViewCell> + <StackLayout> + <Label x:Name="foo" BindingContext="{x:Reference bar}"/> + <Label x:Name="bar" BindingContext="{x:Reference foo}"/> + </StackLayout> + </ViewCell> + </DataTemplate> + </ListView.ItemTemplate> + </ListView>--> + </StackLayout> +</ContentPage>
\ No newline at end of file |