summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39636.xaml
blob: 1f90ee85b7cf5b161bbdfd0fa16a7a00d9168aa6 (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
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8" ?>
<local:TestContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                  xmlns:local="clr-namespace:Xamarin.Forms.Controls"
             x:Class="Xamarin.Forms.Controls.Issues.Bugzilla39636">

  <local:TestContentPage.Resources>
    <ResourceDictionary>

      <OnPlatform
          x:Key="SizeMedium"
          x:TypeArguments="x:Double"
          iOS="40"
          Android="30"
          WinPhone="60" />

      <x:Double x:Key="SizeLarge">80</x:Double>

    </ResourceDictionary>
  </local:TestContentPage.Resources>

  <local:TestContentPage.Content>
    <StackLayout HorizontalOptions="Fill" VerticalOptions="Fill">
      <Label Text="Success"></Label>
      <Label Text="If there is a blue box and a red box below, this test has passed. If the application crashes, the test has not passed."></Label>
      <BoxView HorizontalOptions="Center" VerticalOptions="Center" BackgroundColor="Blue" WidthRequest="{StaticResource SizeMedium}">
        <BoxView.HeightRequest>
          <OnPlatform
                        x:TypeArguments="x:Double"
                        iOS="40"
                        Android="30"
                        WinPhone="60" />
        </BoxView.HeightRequest>
      </BoxView>
      <BoxView  HorizontalOptions="Center" VerticalOptions="Center" BackgroundColor="Red" WidthRequest="{StaticResource SizeLarge}">

      </BoxView>
    </StackLayout>
  </local:TestContentPage.Content>
</local:TestContentPage>