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}">
8 <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
10 <AppBar x:Name="appBar" Title="BackgroundColorTest4Page"/>
13 <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
15 <View x:Name="ContentView"
16 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
17 HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
20 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
24 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
25 HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
26 BackgroundColor="Green"
29 <View x:Name="mainView"
30 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
31 HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
32 BackgroundColor="White"
36 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
39 <TextLabel x:Name="label"
40 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
42 Text="This is a sample label"
43 VerticalAlignment="Center"/>
45 <Button x:Name="btnRedLabel"
46 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
48 Text="Set label background color to red"
51 <Button x:Name="btnDefaultLabel"
52 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
54 Text="Set label background color to default"
57 <Button x:Name="button"
58 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
60 Text="This is a sample button"
63 <Button x:Name="btnBlueButton"
64 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
66 Text="Set button background color to blue"
69 <Button x:Name="btnDefaultButton"
70 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
72 Text="Set button background color to default"
77 </ContentPage.Content>