[NUI] sync with https://github.com/nui-dali/NUITizenGallery
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / Examples / ButtonTest / ButtonTest2Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ContentPage x:Class="NUITizenGallery.ButtonTest2Page"
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="ButtonTest2Page"/>
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                 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
17                 HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
18
19             <View.Layout>
20                 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="20,20" Padding="20,20,20,20"/>
21             </View.Layout>
22
23             <Button x:Name="coloredButton"
24                       WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
25                       BackgroundColor="Transparent"
26                       Text="Color change"
27                       TextColor="Color.Blue"
28                       Opacity="0.5"
29                       PointSize="8">
30
31                 <Button.Icon>
32                     <ImageView x:Name="imageview1" Size2D="60,60" />
33                 </Button.Icon>
34
35             </Button>
36
37             <Button x:Name="button2"
38                       WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
39                       IsEnabled="False"
40                       PointSize="8"
41                       Text="Disabled button"/>
42
43             <Button x:Name="button3"
44                       WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
45                       PointSize="8"
46                       Text="Disabled toggle"/>
47
48         </View>
49     </ContentPage.Content>
50
51 </ContentPage>