[NUI] sync with https://github.com/nui-dali/NUITizenGallery
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / Examples / BackgroundColorTest / BackgroundColorTest2Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ContentPage x:Class="NUITizenGallery.BackgroundColorTest2Page"
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="BackgroundColorTest2Page"/>
11     </ContentPage.AppBar>
12
13     <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
14     <ContentPage.Content>
15         <View x:Name="ContentView"
16           BackgroundColor="Yellow"
17           WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
18           HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
19
20             <View.Layout>
21                 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10,0"/>
22             </View.Layout>
23
24             <View x:Name="layout1"
25                    WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
26                    BackgroundColor="Red"
27                    Weight="1.0"
28                    Opacity="0.5">
29
30                 <Button x:Name="button1"
31                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
32                         PointSize="6"
33                         Text="Change Layout 1 Background Color"
34                         TextColor="White"
35                         BackgroundColor="Black"/>
36
37             </View>
38
39             <View x:Name="layout2"
40                   WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
41                   BackgroundColor="Green"
42                   Weight="1.0"
43                   Opacity="0.5">
44
45                 <Button x:Name="button2"
46                         WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
47                         PointSize="6"
48                         Text="Change Layout 2 Background Color &amp; Opacity"
49                         TextColor="White"
50                         BackgroundColor="#800000"/>
51
52             </View>
53         </View>
54     </ContentPage.Content>
55
56 </ContentPage>