[NUI] Fix NUITizenGallery to run on Ubuntu VS-Code debugging
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / Examples / BackgroundColorTest / BackgroundColorTest1Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ContentPage x:Class="NUITizenGallery.BackgroundColorTest1Page"
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="BackgroundColorTest1Page"/>
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"/>
21             </View.Layout>
22
23             <View x:Name="mainView"
24                   WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
25                   HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
26                   BackgroundColor="#00ffff"
27                   Opacity="0.9"
28                   Weight="1.0">
29
30                 <View.Layout>
31                     <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
32                 </View.Layout>
33
34                 <Button x:Name="button1"
35                             WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
36                             PointSize="8"
37                             Text="Change BackgroundColor"
38                             TextColor="White"
39                             BackgroundColor="Black"/>
40
41                 <Button x:Name="button2"
42                             WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
43                             PointSize="8"
44                             Text="Button1 (Red)"
45                             TextColor="White"
46                             BackgroundColor="Red"/>
47
48                 <Button x:Name="button3"
49                             WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
50                             PointSize="8"
51                             Text="Button2 (Blue/0.5)"
52                             TextColor="White"
53                             BackgroundColor = "Blue"
54                             Opacity="0.5"/>
55
56                 <Button x:Name="button4"
57                             WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
58                             PointSize="8"
59                             Text="Button3 (0,0,1,.5)"
60                             TextColor="White"
61                             BackgroundColor="0,0,1,.5"
62                             Opacity="0.4"/>
63
64                 <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
65                            PointSize="8"
66                            Text="Label1 (Silver)"
67                            BackgroundColor="#C0C0C0"/>
68
69                 <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
70                            PointSize="8"
71                            Text="Label2 (Pink/0.5)"
72                            BackgroundColor="#FF66FF"
73                            Opacity="0.4"/>
74
75                 <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
76                            PointSize="8"
77                            Text="This is a Entry with very looooooooooooong looooooooooooooong text,  (Background color : Color.Lime)"
78                            BackgroundColor="#00FF00"
79                            Weight="1.0"/>
80
81                 <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
82                            PointSize="8"
83                            Text="Formatted entry (Background color : Color.Maroon)"
84                            BackgroundColor="#800000"
85                            Weight="1.0"/>
86
87                 <Progress WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
88                           MinValue="0.0"
89                           MaxValue="1.0"
90                           BufferColor="#FF66FF"
91                           CurrentValue="0.5"
92                           Weight="1.0"/>
93
94                 <Slider WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
95                         MinValue="0"
96                         MaxValue="1.0"
97                         BgTrackColor="#800080"
98                         Weight="1.0"/>
99
100             </View>
101
102             <View x:Name="loadingView"
103                   BackgroundColor="Blue"
104                   WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
105
106                 <Loading x:Name="loading"
107                          PositionUsesPivotPoint="True"
108                          ParentOrigin="Center"
109                          PivotPoint="Center"
110                          Size2D="50,50"/>
111
112             </View>
113         </View>
114     </ContentPage.Content>
115
116 </ContentPage>