[NUI][TEST] sync from nui-dali/NUITizenGallery
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / Examples / BackgroundColorTest / BackgroundColorTest4Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ContentPage x:Class="NUITizenGallery.BackgroundColorTest4Page"
3   xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
5   WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
6   HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
7
8     <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
9     <ContentPage.AppBar>
10         <AppBar x:Name="appBar" Title="BackgroundColorTest4Page"/>
11     </ContentPage.AppBar>
12
13     <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
14     <ContentPage.Content>
15         <View x:Name="ContentView"
16           WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
17           HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
18
19             <View.Layout>
20                 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
21             </View.Layout>
22
23             <View
24               WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
25               HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
26               BackgroundColor="Green"
27               Weight="0.1"/>
28
29             <View x:Name="mainView"
30               WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
31               HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
32               BackgroundColor="White"
33               Weight="0.9">
34
35                 <View.Layout>
36                     <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
37                 </View.Layout>
38
39                 <TextLabel x:Name="label"
40                            WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
41                            PointSize="6"
42                            Text="This is a sample label"
43                            VerticalAlignment="Center"/>
44
45                 <Button x:Name="btnRedLabel"
46                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
47                         PointSize="6"
48                         Text="Set label background color to red"
49                         TextColor="White" />
50
51                 <Button x:Name="btnDefaultLabel"
52                            WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
53                             PointSize="6"
54                             Text="Set label background color to default"
55                             TextColor="White"/>
56
57                 <Button x:Name="button"
58                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
59                         PointSize="6"
60                         Text="This is a sample button"
61                         TextColor="White"/>
62
63                 <Button x:Name="btnBlueButton"
64                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
65                         PointSize="6"
66                         Text="Set button background color to blue"
67                         TextColor="White"/>
68
69                 <Button x:Name="btnDefaultButton"
70                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
71                         PointSize="6"
72                         Text="Set button background color to default"
73                         TextColor="White"/>
74
75             </View>
76         </View>
77     </ContentPage.Content>
78
79 </ContentPage>