c07b07e7203ffec06c25110e959a4768cca2873a
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / res / layout / PerformanceTest1Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <comp:ContentPage x:Class="NUITizenGallery.PerformanceTest1Page"
3                   xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4                   xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
5                   xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
6                   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
7                   WidthSpecification="{Static LayoutParamPolicies.MatchParent}"  HeightSpecification="{Static LayoutParamPolicies.MatchParent}" 
8                   ParentOrigin="Center" PivotPoint="Center"
9                   PositionUsesPivotPoint="true" BackgroundColor="White">
10
11     <comp:ContentPage.AppBar>
12         <comp:AppBar x:Name="appBar" Title="PerformanceTest1Page"/>
13     </comp:ContentPage.AppBar>
14
15     <comp:ContentPage.Content>
16         <base:View x:Name="ContentView"
17           WidthSpecification="{Static LayoutParamPolicies.MatchParent}" 
18           HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
19             <View.Layout>
20                 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10" />
21             </View.Layout>
22
23             <comp:Button x:Name="StartButton" Text="Scroll to 999" WidthSpecification="{Static LayoutParamPolicies.MatchParent}"  HeightSpecification="80"/>
24
25             <base:TextLabel x:Name="FPSLabel" WidthSpecification="{Static LayoutParamPolicies.MatchParent}"  HeightSpecification="60" PointSize="8"
26                          Text="Click scroll button to measure FPS"/>
27
28             <comp:ScrollableBase x:Name="Scroller" SnapToPage="true" ScrollingDirection="Vertical" 
29                                  WidthSpecification="{Static LayoutParamPolicies.MatchParent}"  HeightSpecification="{Static LayoutParamPolicies.MatchParent}"  BackgroundColor="Blue">
30               <comp:ScrollableBase.Layout>
31                 <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5"/>
32               </comp:ScrollableBase.Layout>
33             </comp:ScrollableBase>
34         </base:View>
35     </comp:ContentPage.Content>
36 </comp:ContentPage>