-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue11120.xaml
101 lines (99 loc) · 3.96 KB
/
Issue11120.xaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?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.Issues.Issue11120"
Title="Issue 11120">
<Grid
BackgroundColor="Wheat"
RowSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label
Grid.Row="0"
Padding="12"
BackgroundColor="Black"
TextColor="White"
Text="If the corners of the buttons clip to bounds, the test has passed."/>
<Grid
Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Frame
Padding="0"
CornerRadius="{Binding Source={x:Reference CornerRadiusSlider},Path=Value}"
IsClippedToBounds="{Binding Source={x:Reference IsClippedToBoundsCheckBox},Path=IsChecked}">
<Frame.Resources>
<ResourceDictionary>
<Style
TargetType="Frame">
<Setter Property="BackgroundColor" Value="WhiteSmoke"/>
<Setter Property="HasShadow" Value="True"/>
<Setter Property="HorizontalOptions" Value="FillAndExpand"/>
<Setter Property="Margin" Value="40"/>
<Setter Property="Padding" Value="20"/>
<Setter Property="VerticalOptions" Value="Center"/>
</Style>
</ResourceDictionary>
</Frame.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label
FontSize="Subtitle"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Text="..."
VerticalOptions="Center"/>
<Grid
Grid.Row="1"
ColumnSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Button
BackgroundColor="Blue"
TextColor="White"
CornerRadius="0"
Grid.Column="1"
Text="YES"/>
<Button
BackgroundColor="Gray"
TextColor="White"
CornerRadius="0"
Text="NO"/>
</Grid>
</Grid>
</Frame>
<StackLayout
Grid.Row="1">
<StackLayout
Orientation="Horizontal"
VerticalOptions="Start"
Padding="12 , 0">
<CheckBox
x:Name="IsClippedToBoundsCheckBox"
VerticalOptions="Center"
IsChecked="True"/>
<Label
VerticalOptions="Center"
Text="IsClippedToBounds"/>
</StackLayout>
<Label
Text="CornerRadius"
Margin="12, 0"/>
<Slider
x:Name="CornerRadiusSlider"
Minimum="0"
Maximum="48"
Value="12"/>
</StackLayout>
</Grid>
</Grid>
</ContentPage>