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}">
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="BackgroundColorTest2Page"/>
13 <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
15 <View x:Name="ContentView"
16 BackgroundColor="Yellow"
17 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
18 HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
21 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10,0"/>
24 <View x:Name="layout1"
25 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
30 <Button x:Name="button1"
31 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
33 Text="Change Layout 1 Background Color"
35 BackgroundColor="Black"/>
39 <View x:Name="layout2"
40 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
41 BackgroundColor="Green"
45 <Button x:Name="button2"
46 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
48 Text="Change Layout 2 Background Color & Opacity"
50 BackgroundColor="#800000"/>
54 </ContentPage.Content>