diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-08-02 22:24:50 +0200 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-08-02 13:24:50 -0700 |
commit | 89199205e48fe3fdf4336fe7e0f8af7dc0b662de (patch) | |
tree | 42e4d3a8f53ecd45d95b290bcdedd809eb046e4c /Xamarin.Forms.Xaml.UnitTests/SetValue.xaml | |
parent | ac44cf9dec53b3b8be1836f20479f01820f3667f (diff) | |
download | xamarin-forms-89199205e48fe3fdf4336fe7e0f8af7dc0b662de.tar.gz xamarin-forms-89199205e48fe3fdf4336fe7e0f8af7dc0b662de.tar.bz2 xamarin-forms-89199205e48fe3fdf4336fe7e0f8af7dc0b662de.zip |
Xaml convert on add (#273)
* [Xaml] add test for conversion on Set and Add
* [Xaml] Fix conversion on Add()
* [XamlC] use op_implicit before Add()
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/SetValue.xaml')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/SetValue.xaml | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml new file mode 100644 index 00000000..133e0e9b --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ContentPage + xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests" + x:Class="Xamarin.Forms.Xaml.UnitTests.SetValue"> + <ContentPage.Resources> + <ResourceDictionary> + <Color x:Key="purple">Purple</Color> + </ResourceDictionary> + </ContentPage.Resources> + <StackLayout> + <Label x:Name="label0" Text="Foo"/> + <Label x:Name="label1" Text="{Binding Path=labeltext}"/> + <Button x:Name="button0" Clicked="onButtonClicked" /> + <Image x:Name="image0" IsOpaque="true" /> + <Label x:Name="label2" Grid.Column="1"> + <Grid.Row>2</Grid.Row> + </Label> + <ContentView x:Name="contentview0"> + <ContentView.Content> + <Label x:Name="label3"/> + </ContentView.Content> + </ContentView> + <ContentView x:Name="contentview1"> + <Label x:Name="label4"/> + </ContentView> + <StackLayout x:Name="stack0"> + <StackLayout.Children> + <Label x:Name="label5"/> + <Label x:Name="label6"/> + </StackLayout.Children> + </StackLayout> + <StackLayout x:Name="stack1"> + <Label x:Name="label7"/> + <Label x:Name="label8"/> + </StackLayout> + <StackLayout x:Name="stack2"> + <StackLayout.Children> + <Label x:Name="label9"/> + </StackLayout.Children> + </StackLayout> + <StackLayout x:Name="stack3"> + <Label x:Name="label10"/> + </StackLayout> + <Label x:Name="label11" Text="{Binding labeltext}"/> + <ListView x:Name="listView"> + <ListView.ItemsSource> + <x:Array Type="{x:Type x:String}" x:Key="array"> + <x:String>foo</x:String> + <x:String>bar</x:String> + </x:Array> + </ListView.ItemsSource> + </ListView> + <Label x:Name="label12" TextColor="Red" /> + <Label x:Name="label13"> + <Label.TextColor> + <Color>Pink</Color> + </Label.TextColor> + </Label> + <Grid x:Name="grid0"> + <Grid.RowDefinitions> + <RowDefinition/> + <RowDefinition/> + </Grid.RowDefinitions> + <Grid.ColumnDefinitions> + <ColumnDefinition/> + </Grid.ColumnDefinitions> + </Grid> + <Label x:Name="label14" AbsoluteLayout.LayoutFlags="PositionProportional,WidthProportional" /> + <ContentView x:Name="content0"> + <local:ConvertibleToView/> + </ContentView> + <StackLayout x:Name="stack4"> + <local:ConvertibleToView/> + </StackLayout> + </StackLayout> +</ContentPage>
\ No newline at end of file |