<AppBar x:Name="appBar" Title="AbsoluteLayoutTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ActivityIndicatorTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<Loading x:Name="Spinner" Size2D="100, 100" Position2D="10, 10"/>
</ContentPage.Content>
<AppBar x:Name="appBar" Title="AlertDialogTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="AnimationTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="AnimationTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="AnimationTest3Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BackgroundColorTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BackgroundColorTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
BackgroundColor="Yellow"
<AppBar x:Name="appBar" Title="BackgroundColorTest3Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BackgroundColorTest4Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BackgroundColorTest5Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BackgroundTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="BackgroundView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BindingTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar x:Name="appBar" Title="AnimationTest1Page"/>
+ <AppBar x:Name="appBar" Title="BindingTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BoxViewTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BoxViewTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BoxViewTest3Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BoxViewTest4Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BrushBackgroundTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BrushBorderTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="BrushComponentsTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
<ContentPage.AppBar>
- <AppBar x:Name="appBar" Title="BrushImageTest" />
+ <AppBar x:Name="appBar" Title="BrushImageTestPage" />
</ContentPage.AppBar>
<ContentPage.Content>
<AppBar x:Name="appBar" Title="BrushViewerTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ButtonTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ButtonTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ButtonTest5Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ButtonTest6Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ButtonTest7Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar x:Name="appBar" Title="AnimationTest1Page"/>
+ <AppBar x:Name="appBar" Title="CarouselPageTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CarouselViewFocusTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<ScrollableBase x:Name="Scroller"
ScrollingDirection="Horizontal"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}">>
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
<ScrollableBase.Layout>
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="120,0"/>
</ScrollableBase.Layout>
<AppBar x:Name="appBar" Title="CarouselViewTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CarouselViewTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CarouselViewTest4Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CheckBoxTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewCustomItemTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<CollectionView x:Name="ColView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.CollectionViewFooterTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="CollectionViewFooterTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+
+ <ScrollableBase x:Name="ListView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Center"/>
+ </ScrollableBase.Layout>
+ </ScrollableBase>
+
+ <TextLabel x:Name="Footer" Text="No selected item"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="50"
+ BackgroundColor="#6c6c6c"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
<AppBar x:Name="appBar" Title="CollectionViewObservableTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest1Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest2Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest3Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<CollectionView x:Name="ColView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest4Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest5Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest6Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest7Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest8Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="CollectionViewTest9Page"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<CollectionView x:Name="ColView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="ContentPageTestPage1"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<Button x:Name="button"
Text="ONE"
<AppBar x:Name="appBar" Title="ContentPageTestPage2"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<Button x:Name="button"
Text="TWO"
<AppBar x:Name="appBar" Title="CustomCellTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<ScrollableBase x:Name="ListView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
<AppBar x:Name="appBar" Title="DatePickerTestPage"/>
</ContentPage.AppBar>
- <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<View x:Name="ContentView"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
{
Window window;
Navigator navigator;
- EditorTest1Page page;
int pageCount = 0;
public void Activate()
navigator = window.GetDefaultNavigator();
pageCount = navigator.PageCount;
-
- page = new EditorTest1Page();
- navigator.Push(page);
+ navigator.Push(new EditorTest1Page());
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.EditorTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="EditorTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <View x:Name="topView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+ <TextLabel Text="Editor Test 1 : "
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
+ </View>
+
+ <TextEditor x:Name="editor"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+
+ <View x:Name="bottomView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <View x:Name="underline"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#999999" />
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" />
+ </View.Layout>
+
+ <TextLabel Text="Editor Test 2 : "
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <TextField x:Name="field"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ VerticalAlignment="Center" />
+ <View x:Name="underline2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#999999" />
+
+ </View>
+ </View>
+ </View>
+ </View>
+ </ContentPage.Content>
+
+ </ContentPage>
\ No newline at end of file
{
Window window;
Navigator navigator;
- EditorTest2Page page;
int pageCount = 0;
public void Activate()
navigator = window.GetDefaultNavigator();
pageCount = navigator.PageCount;
-
- page = new EditorTest2Page();
- navigator.Push(page);
+ navigator.Push(new EditorTest2Page());
}
public void Deactivate()
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.EditorTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="EditorTest2Page"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <View x:Name="topView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <TextLabel Text="Editor's Event : "
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
+ <TextEditor x:Name="editor"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80" />
+ <View x:Name="underline"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#999999" />
+ <TextLabel Text="Editor's Text : "
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
+ </View>
+ <TextEditor x:Name="editor2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <View x:Name="underline2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#999999" />
+ </View>
+
+ </ContentPage.Content>
+</ContentPage>
+
underline.Margin = new Extents(20, 20, 5, 20);
underline2.Margin = new Extents(20, 20, 0, 10);
- // Set focus highlight to underline
+ // Set focus highlight to underline
editor.FocusGained += (s, e) =>
{
underline.BackgroundColor = Color.Cyan;
{
viewFullSize = (Size2D)mainView.Size2D.Clone();
}
-
+
int width = viewFullSize.Width;
int height = viewFullSize.Height - rectangle.Height;
mainView.Size2D = new Size2D(width, height);
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class EntryTest1 : IExample
{
Window window;
- EntryTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new EntryTest1Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new EntryTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
+
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.EntryTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="EntryTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#FF66FF"
+ Text=" "/>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="This is a TextField with very looooooooooooong looooooooooooooong text"
+ Weight="1.0"/>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Formated TextField"
+ Weight="1.0"/>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <TextLabel Text="Name: "/>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+
+ </View>
+
+ <View WidthResizePolicy="FillToParent">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <TextLabel Text="Passoword: "/>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+
+ </View>
+
+ <View WidthResizePolicy="FillToParent">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <TextField PlaceholderTextColor="1,0,0,1"
+ PlaceholderText="Placeholder Color - Red"/>
+
+ <TextField PlaceholderTextColor="0,1,0,1"
+ PlaceholderText="Placeholder Color - Gren" />
+
+ <TextField PlaceholderTextColor="0,0,1,1"
+ PlaceholderText="Placeholder Color - Blue" />
+
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class EntryTest1Page : View
+ public partial class EntryTest1Page : ContentPage
{
public EntryTest1Page()
{
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class EntryTest2 : IExample
{
Window window;
- EntryTest2Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new EntryTest2Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new EntryTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.EntryTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="EntryTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="5,0"/>
+ </View.Layout>
+
+ <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="This is label"/>
+
+ <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="1.0"
+ Text="This is Entry"/>
+
+ <Button Text="This is button"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class EntryTest2Page : View
+ public partial class EntryTest2Page : ContentPage
{
public EntryTest2Page()
{
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class EntryTest4 : IExample
{
Window window;
- EntryTest4Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new EntryTest4Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new EntryTest4Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.EntryTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="EntryTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <TabView x:Name="tabView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Green"/>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class EntryTest4Page : View
+ public partial class EntryTest4Page : ContentPage
{
public EntryTest4Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class FlexTest1 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new FlexTest1Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FlexTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FlexTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <FlexLayout Direction="Column" Justification="FlexStart" Alignment="FlexStart"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ SizeWidth="720"
+ SizeHeight="120"
+ PointSize="8"
+ Text="label1"
+ BackgroundColor="#ff0000"
+ />
+ <TextLabel x:Name="text2"
+ SizeWidth="720"
+ SizeHeight="100"
+ PointSize="8"
+ Text="label2"
+ BackgroundColor="#aaaaaa"
+ />
+ <TextLabel x:Name="text3"
+ SizeWidth="720"
+ SizeHeight="80"
+ PointSize="8"
+ Text="label3"
+ BackgroundColor="#ffff00"
+ />
+ <TextLabel x:Name="text4"
+ SizeWidth="720"
+ SizeHeight="60"
+ PointSize="8"
+ Text="label4"
+ BackgroundColor="#00aaff"
+ />
+ <TextLabel x:Name="text5"
+ SizeWidth="720"
+ SizeHeight="40"
+ PointSize="8"
+ Text="label5"
+ BackgroundColor="#00ffff"
+ />
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*
*/
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class FlexTest1Page : View
+ public partial class FlexTest1Page : ContentPage
{
public FlexTest1Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class FlexTest2 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new FlexTest2Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FlexTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FlexTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <FlexLayout Direction="Row" Justification="FlexStart" Alignment="FlexStart"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ SizeWidth="160"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="8"
+ Text="label1"
+ BackgroundColor="#ff0000"
+ />
+ <TextLabel x:Name="text2"
+ SizeWidth="100"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="8"
+ Text="label2"
+ BackgroundColor="#aaaaaa"
+ />
+ <TextLabel x:Name="text3"
+ SizeWidth="60"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="8"
+ Text="label3"
+ BackgroundColor="#ffff00"
+ />
+ <TextLabel x:Name="text4"
+ SizeWidth="40"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="8"
+ Text="label4"
+ BackgroundColor="#00aaff"
+ />
+ <TextLabel x:Name="text5"
+ SizeWidth="400"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="8"
+ Text="label5"
+ BackgroundColor="#00ffff"
+ />
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*
*/
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class FlexTest2Page : View
+ public partial class FlexTest2Page : ContentPage
{
public FlexTest2Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class FlexTest3 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new FlexTest3Page());
+
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.FlexTest3Page"
+<ContentPage x:Class="NUITizenGallery.FlexTest3Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FlexTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
<View.Layout>
<FlexLayout Direction="ColumnReverse" Justification="FlexStart" Alignment="FlexEnd"/>
-
</View.Layout>
-
- <b:TextLabel x:Name="text1"
+ <TextLabel x:Name="text1"
SizeWidth="300"
SizeHeight="40"
PointSize="8"
Text="label1"
BackgroundColor="#ff0000"
/>
-
- <b:TextLabel x:Name="text2"
+ <TextLabel x:Name="text2"
SizeWidth="300"
SizeHeight="60"
PointSize="8"
Text="label2"
BackgroundColor="#aaaaaa"
/>
-
- <b:TextLabel x:Name="text3"
+ <TextLabel x:Name="text3"
SizeWidth="300"
SizeHeight="40"
PointSize="8"
Text="label3"
BackgroundColor="#ffff00"
/>
-
- <b:TextLabel x:Name="text4"
+ <TextLabel x:Name="text4"
SizeWidth="300"
SizeHeight="80"
PointSize="8"
Text="label4"
BackgroundColor="#00aaff"
/>
-
- <b:TextLabel x:Name="text5"
+ <TextLabel x:Name="text5"
SizeWidth="300"
SizeHeight="40"
PointSize="8"
Text="label5"
BackgroundColor="#00ffff"
/>
- </b:View>
-</b:View>
-
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*
*/
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class FlexTest3Page : View
+ public partial class FlexTest3Page : ContentPage
{
public FlexTest3Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class FlexTest5 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new FlexTest5Page());
+
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FlexTest5Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FlexTest5Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <FlexLayout Direction="Column" Justification="FlexStart" Alignment="FlexStart"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text"
+ Text="Basic Grids"
+ PointSize="12"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center" />
+ <View x:Name="view1"
+ BackgroundColor="#ff0000"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100">
+
+ <View.Layout>
+ <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
+ </View.Layout>
+
+ <TextLabel BackgroundColor="#444444"
+ TextColor="#ffffff"
+ Text="1/2"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#444444"
+ TextColor="#ffffff"
+ Text="1/2"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ </View>
+
+ <View x:Name="view2"
+ BackgroundColor="#ff0000"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100">
+
+ <View.Layout>
+ <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
+ </View.Layout>
+
+ <TextLabel BackgroundColor="#555555"
+ TextColor="#ffffff"
+ Text="1/3"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#555555"
+ TextColor="#ffffff"
+ Text="1/3"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#555555"
+ TextColor="#ffffff"
+ Text="1/3"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ </View>
+
+ <View x:Name="view3"
+ BackgroundColor="#ff0000"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100">
+
+ <View.Layout>
+ <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
+ </View.Layout>
+
+ <TextLabel BackgroundColor="#666666"
+ TextColor="#ffffff"
+ Text="1/4"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#666666"
+ TextColor="#ffffff"
+ Text="1/4"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#666666"
+ TextColor="#ffffff"
+ Text="1/4"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#666666"
+ TextColor="#ffffff"
+ Text="1/4"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ </View>
+
+ <View x:Name="view4"
+ BackgroundColor="#ff0000"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100">
+
+ <View.Layout>
+ <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
+ </View.Layout>
+
+ <TextLabel BackgroundColor="#777777"
+ TextColor="#ffffff"
+ Text="1/5"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#777777"
+ TextColor="#ffffff"
+ Text="1/5"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#777777"
+ TextColor="#ffffff"
+ Text="1/5"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#777777"
+ TextColor="#ffffff"
+ Text="1/5"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ <TextLabel BackgroundColor="#777777"
+ TextColor="#ffffff"
+ Text="1/5"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center" />
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
*
*/
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class FlexTest5Page : View
+ public partial class FlexTest5Page : ContentPage
{
public FlexTest5Page()
{
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class FlexTest1 : IExample
- {
- private Window window;
- private FlexTest1Page page;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new FlexTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
-
- }
-
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class FlexTest2 : IExample
- {
- private Window window;
- private FlexTest2Page page;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new FlexTest2Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
-
- }
-
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class FlexTest3 : IExample
- {
- private Window window;
- private FlexTest3Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new FlexTest3Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
-
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class FlexTest5 : IExample
- {
- private Window window;
- private FlexTest5Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new FlexTest5Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
-
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class FrameLayoutTest1 : IExample
{
Window window;
- FrameLayoutTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new FrameLayoutTest1Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new FrameLayoutTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FrameLayoutTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FrameLayoutTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <RelativeLayout />
+ </View.Layout>
+
+
+ <View x:Name="topLeft"
+ BackgroundColor="#FF66FF"
+ RelativeLayout.RightRelativeOffset="0.5"
+ RelativeLayout.BottomRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <View x:Name="topRight"
+ BackgroundColor="Blue"
+ RelativeLayout.LeftRelativeOffset="0.5"
+ RelativeLayout.RightRelativeOffset="1.0"
+ RelativeLayout.BottomRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <View x:Name="bottomRight"
+ BackgroundColor="Red"
+ RelativeLayout.RightRelativeOffset="0.5"
+ RelativeLayout.BottomRelativeOffset="1.0"
+ RelativeLayout.TopRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <View x:Name="bottomLeft"
+ BackgroundColor="Yellow"
+ RelativeLayout.LeftRelativeOffset="0.5"
+ RelativeLayout.RightRelativeOffset="1.0"
+ RelativeLayout.BottomRelativeOffset="1.0"
+ RelativeLayout.TopRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <View x:Name="parentBox"
+ BackgroundColor="1.0, 0.3, 0.4, 0.3"
+ RelativeLayout.LeftRelativeOffset="0.25"
+ RelativeLayout.RightRelativeOffset="0.75"
+ RelativeLayout.TopRelativeOffset="0.25"
+ RelativeLayout.BottomRelativeOffset="0.75"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <TextLabel x:Name="label"
+ Text="I'm button & Center Label"
+ MultiLine="True"
+ LineWrapMode="Word"
+ HorizontalAlignment="Center"
+ RelativeLayout.LeftRelativeOffset="0.25"
+ RelativeLayout.RightRelativeOffset="0.75"
+ RelativeLayout.TopRelativeOffset="0.9"
+ RelativeLayout.BottomRelativeOffset="1.0"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"/>
+ <Button x:Name="button"
+ RelativeLayout.LeftTarget="{x:Reference Name=parentBox}"
+ RelativeLayout.RightTarget="{x:Reference Name=parentBox}"
+ RelativeLayout.TopTarget="{x:Reference Name=parentBox}"
+ RelativeLayout.BottomTarget="{x:Reference Name=parentBox}"
+ RelativeLayout.LeftRelativeOffset="0.033"
+ RelativeLayout.RightRelativeOffset="0.967"
+ RelativeLayout.TopRelativeOffset="0.25"
+ RelativeLayout.BottomRelativeOffset="0.75"
+ RelativeLayout.FillHorizontal="True"
+ RelativeLayout.FillVertical="True"
+ Text="I'm centered Button"
+ TextAlignment="Center"
+ PointSize="8"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class StackLayoutTest3Page : View
+ public partial class FrameLayoutTest1Page : ContentPage
{
- public StackLayoutTest3Page()
+ public FrameLayoutTest1Page()
{
InitializeComponent();
}
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class FrameLayoutTest2 : IExample
{
Window window;
- FrameLayoutTest2Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new FrameLayoutTest2Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new FrameLayoutTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FrameLayoutTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FrameLayoutTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="layout"
+ BackgroundColor="White"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View x:Name="leftBGBox"
+ WidthResizePolicy="SizeRelativeToParent"
+ HeightResizePolicy="SizeRelativeToParent"
+ SizeModeFactor="0.25, 0.8, 0.0"
+ ParentOrigin="0.2, 0.1, 0.0"
+ BackgroundColor="#808080"/>
+
+ <View x:Name="rightBGBox"
+ WidthResizePolicy="SizeRelativeToParent"
+ HeightResizePolicy="SizeRelativeToParent"
+ SizeModeFactor="0.25, 0.8, 0.0"
+ ParentOrigin="0.6, 0.1, 0.0"
+ BackgroundColor="#808080"/>
+
+ <View PositionUsesPivotPoint="true"
+ PivotPoint="TopLeft"
+ ParentOrigin="TopLeft"
+ BackgroundColor="Red"
+ Size2D="100,100"/>
+
+ <View x:Name="topCenterBox"
+ PositionUsesPivotPoint="true"
+ PivotPoint="TopCenter"
+ ParentOrigin="TopCenter"
+ BackgroundColor="Yellow"
+ Size2D="100,100"/>
+
+ <View PositionUsesPivotPoint="true"
+ PivotPoint="TopRight"
+ ParentOrigin="TopRight"
+ BackgroundColor="Green"
+ Size2D="100,100"/>
+
+ <View PositionUsesPivotPoint="true"
+ PivotPoint="BottomLeft"
+ ParentOrigin="BottomLeft"
+ BackgroundColor="Blue"
+ Size2D="100,100"/>
+
+ <View PositionUsesPivotPoint="true"
+ PivotPoint="BottomCenter"
+ ParentOrigin="BottomCenter"
+ BackgroundColor="#00FF00"
+ Size2D="100,100"/>
+
+ <View PositionUsesPivotPoint="true"
+ PivotPoint="BottomRight"
+ ParentOrigin="BottomRight"
+ BackgroundColor="#800080"
+ Size2D="100,100"/>
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class FrameLayoutTest2Page : View
+ public partial class FrameLayoutTest2Page : ContentPage
{
public FrameLayoutTest2Page()
{
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-
-namespace NUITizenGallery
-{
- public partial class FrameLayoutTest1Page : View
- {
- public FrameLayoutTest1Page()
- {
- InitializeComponent();
- RelativeLayout.SetLeftTarget(button, parentBox);
- RelativeLayout.SetRightTarget(button, parentBox);
- RelativeLayout.SetTopTarget(button, parentBox);
- RelativeLayout.SetBottomTarget(button, parentBox);
-
- }
- protected override void Dispose(DisposeTypes type)
- {
- if (Disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- RemoveAllChildren(true);
- }
-
- base.Dispose(type);
- }
-
- private void RemoveAllChildren(bool dispose = false)
- {
- RecursiveRemoveChildren(this, dispose);
- }
-
- private void RecursiveRemoveChildren(View parent, bool dispose)
- {
- if (parent == null)
- {
- return;
- }
-
- int maxChild = (int)parent.ChildCount;
- for (int i = maxChild - 1; i >= 0; --i)
- {
- View child = parent.GetChildAt((uint)i);
- if (child == null)
- {
- continue;
- }
-
- RecursiveRemoveChildren(child, dispose);
- parent.Remove(child);
- if (dispose)
- {
- child.Dispose();
- }
- }
- }
- }
-}
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class FrameTest1 : IExample
{
Window window;
- FrameTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new FrameTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new FrameTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.FrameTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="FrameTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Center"/>
+ </View.Layout>
+
+ <Button x:Name="ShadowOnBackground"
+ Text="Shadow On"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ <Button x:Name="ShadowOffBackground"
+ Text="Shadow Off"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class FrameTest1Page : View
+ public partial class FrameTest1Page : ContentPage
{
VisualView FrameView;
TextVisual FrameText;
FrameView.AddVisual("_textVisual", FrameText);
InitializeComponent();
- Add(FrameView);
+ ContentView.Add(FrameView);
ShadowOnBackground.Clicked += OnShadowOnButtonClicked;
ShadowOffBackground.Clicked += OnShadowOffButtonClicked;
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class GridTest1 : IExample
{
private Window window;
- private GridTest1Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new GridTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new GridTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.GridTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="GridTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout >
+ <GridLayout Columns="3" Rows="4" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
+ </View.Layout>
+
+ <!-- Row 0 -->
+ <Button Text="Button 1"
+ GridLayout.Column="0"
+ GridLayout.Row="0"
+ GridLayout.ColumnSpan="3"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <!-- Row 0 Column 1 is expanded by span -->
+ <!-- Row 0 Column 2 is expanded by span -->
+ <!-- Row 1 -->
+ <Button Text="Button 2"
+ GridLayout.Column="0"
+ GridLayout.Row="1"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <Button Text="Button 3"
+ GridLayout.Column="1"
+ GridLayout.Row="1"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <Button Text="Button 4"
+ GridLayout.Column="2"
+ GridLayout.Row="1"
+ GridLayout.RowSpan="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <!-- Row 2 -->
+ <Button Text="Button 5"
+ GridLayout.Column="0"
+ GridLayout.Row="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <Button Text="Button 6"
+ GridLayout.Column="1"
+ GridLayout.Row="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <!-- Row 2 Column 2 is expanded by span -->
+ <!-- Row 3 -->
+ <Button Text="Button 7"
+ GridLayout.Column="0"
+ GridLayout.Row="3"
+ GridLayout.ColumnSpan="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <!-- Row 3 Column 1 is expanded by span -->
+ <Button Text="Button 8"
+ GridLayout.Column="2"
+ GridLayout.Row="3"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
+
namespace NUITizenGallery
{
- public partial class GridTest1Page : View
+ public partial class GridTest1Page : ContentPage
{
public GridTest1Page()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class GridTest2 : IExample
{
private Window window;
- private GridTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new GridTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new GridTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.GridTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="GridTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout >
+ <GridLayout Columns="3" Rows="3" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
+ </View.Layout>
+
+ <!-- Row 0 -->
+ <Button Text="Button 1"
+ GridLayout.Column="0"
+ GridLayout.Row="0"
+ GridLayout.ColumnSpan="3"
+ GridLayout.HorizontalStretch="ExpandAndFill" />
+ <!-- Row 0 Column 1 is expanded by span -->
+ <!-- Row 0 Column 2 is expanded by span -->
+ <!-- Row 1 -->
+ <Button Text="Button 2"
+ GridLayout.Column="0"
+ GridLayout.Row="1"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Blue"/>
+ <Button Text="Button 3"
+ GridLayout.Column="1"
+ GridLayout.Row="1"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Yellow"/>
+ <Button Text="Button 4"
+ GridLayout.Column="2"
+ GridLayout.Row="1"
+ GridLayout.RowSpan="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill"/>
+ <!-- Row 2 -->
+ <Button Text="Button 5"
+ GridLayout.Column="0"
+ GridLayout.Row="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill" />
+ <Button Text="Button 6"
+ GridLayout.Column="1"
+ GridLayout.Row="2"
+ GridLayout.VerticalStretch="ExpandAndFill"
+ GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Magenta"/>
+ <!-- Row 2 Column 1 is expanded by span -->
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class GridTest2Page : View
+ public partial class GridTest2Page : ContentPage
{
public GridTest2Page()
{
internal class GridTest3 : IExample
{
private Window window;
- private GridTest3Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new GridTest3Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new GridTest3Page());
}
-
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.GridTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="GridTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <View x:Name="operationView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Bottom" CellPadding="10,10"/>
+ </View.Layout>
+
+ <TextField x:Name="textPlaceholder" Text="0.00" />
+ </View>
+
+ <View x:Name="btnView" Weight="0.5" >
+
+ <View.Layout >
+ <GridLayout Columns="4" Rows="5" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
+ </View.Layout>
+ <!-- Row 0 -->
+ <Button x:Name="btnClear" Text="C"
+ GridLayout.Column="0"
+ GridLayout.Row="0"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnUp" Text="^"
+ GridLayout.Column="1"
+ GridLayout.Row="0"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnProc" Text="%"
+ GridLayout.Column="2"
+ GridLayout.Row="0"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnDiv" Text="/"
+ GridLayout.Column="3"
+ GridLayout.Row="0"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <!-- Row 1 -->
+ <Button x:Name="btn7" Text="7"
+ GridLayout.Column="0"
+ GridLayout.Row="1"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn8" Text="8"
+ GridLayout.Column="1"
+ GridLayout.Row="1"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn9" Text="9"
+ GridLayout.Column="2"
+ GridLayout.Row="1"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnMultiply" Text="*"
+ GridLayout.Column="3"
+ GridLayout.Row="1"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <!-- Row 2 -->
+ <Button x:Name="btn4" Text="4"
+ GridLayout.Column="0"
+ GridLayout.Row="2"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn5" Text="5"
+ GridLayout.Column="1"
+ GridLayout.Row="2"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn6" Text="6"
+ GridLayout.Column="2"
+ GridLayout.Row="2"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnMinus" Text="-"
+ GridLayout.Column="3"
+ GridLayout.Row="2"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <!-- Row 3 -->
+ <Button x:Name="btn1" Text="1"
+ GridLayout.Column="0"
+ GridLayout.Row="3"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn2" Text="2"
+ GridLayout.Column="1"
+ GridLayout.Row="3"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btn3" Text="3"
+ GridLayout.Column="2"
+ GridLayout.Row="3"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnPlus" Text="+"
+ GridLayout.Column="3"
+ GridLayout.Row="3"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <!-- Row 4 -->
+ <Button x:Name="btn0" Text="0"
+ GridLayout.Column="0"
+ GridLayout.Row="4"
+ GridLayout.ColumnSpan="2"
+ WidthSpecification="360" HeightSpecification="100"/>
+ <!-- Row 4 Column 1 is expanded by span -->
+ <Button x:Name="btnDot" Text="."
+ GridLayout.Column="2"
+ GridLayout.Row="4"
+ WidthSpecification="180" HeightSpecification="100"/>
+ <Button x:Name="btnEqual" Text="="
+ GridLayout.Column="3"
+ GridLayout.Row="4"
+ WidthSpecification="180" HeightSpecification="100"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
internal class GridTest4 : IExample
{
private Window window;
- private GridTest4Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new GridTest4Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new GridTest4Page());
}
-
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null; ;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.GridTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="GridTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="btnView"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout >
+ <GridLayout Columns="3" Rows="3" ColumnSpacing="3" RowSpacing="3" />
+ </View.Layout>
+
+ <!-- Row 0 -->
+ <Button x:Name="btn1"
+ Text="Button1"
+ GridLayout.Column="0"
+ GridLayout.Row="0"
+ GridLayout.ColumnSpan="3"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <!-- Row 0 Column 1 is expanded by span -->
+ <!-- Row 0 Column 2 is expanded by span -->
+ <!-- Row 1 -->
+ <Button x:Name="btn2"
+ Text="Button2"
+ GridLayout.Column="0"
+ GridLayout.Row="1"
+ WidthSpecification="550"
+ HeightSpecification="525" />
+ <Button x:Name="btn3"
+ Text="Button3"
+ GridLayout.Column="1"
+ GridLayout.Row="1"
+ WidthSpecification="100"
+ HeightSpecification="525" />
+ <Button x:Name="btn6"
+ Text="Button6"
+ GridLayout.Column="2"
+ GridLayout.Row="1"
+ GridLayout.RowSpan="2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <!-- Row 2 -->
+ <Button x:Name="btn4"
+ Text="Button4"
+ GridLayout.Column="0"
+ GridLayout.Row="2"
+ WidthSpecification="550"
+ HeightSpecification="525"/>
+ <Button x:Name="btn5"
+ Text="Button5"
+ GridLayout.Column="1"
+ GridLayout.Row="2"
+ WidthSpecification="100"
+ HeightSpecification="525"/>
+ <!-- Row 2 Column 2 is expanded by span -->
+ </View>
+ </ContentPage.Content>
+</ContentPage>
public GridTest4Page()
{
InitializeComponent();
+/*
btn2.BackgroundColor = Color.Gray;
btn3.BackgroundColor = Color.Yellow;
btn4.BackgroundColor = Color.Green;
btn4.TextColor = Color.Pink;
btn5.BackgroundColor = Color.Purple;
+*/
}
+
protected override void Dispose(DisposeTypes type)
{
if (Disposed)
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
+
namespace NUITizenGallery
{
internal class HelloWorld : IExample
{
private Window window;
- private HelloWorldPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new HelloWorldPage();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new HelloWorldPage());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.HelloWorldPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="HelloWorldPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <TextLabel x:Name="test1PageText"
+ Text="Hello NUI XAML !"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="15"
+ TextColor="Blue"/>
+ </ContentPage.Content>
+</ContentPage>
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
namespace NUITizenGallery
{
- public partial class HelloWorldPage : View
+ public partial class HelloWorldPage : ContentPage
{
public HelloWorldPage()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class IconTest : IExample
{
private Window window;
- private IconTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new IconTestPage();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new IconTestPage());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.IconTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="IconTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" />
+ </View.Layout>
+
+ <ImageView x:Name="image1"
+ SizeWidth="200"
+ SizeHeight="200"/>
+ <ImageView x:Name="image2"
+ SizeWidth="200"
+ SizeHeight="200"/>
+ <ImageView x:Name="image3"
+ SizeWidth="200"
+ SizeHeight="200"/>
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class IconTestPage : View
+ public partial class IconTestPage : ContentPage
{
string ImageURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "images/";
public IconTestPage()
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ImageButtonTest : IExample
{
private Window window;
- private ImageButtonTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ImageButtonTestPage();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
-
+ window.GetDefaultNavigator().Push(new ImageButtonTestPage());
}
+
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageButtonTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageButtonTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" />
+ </View.Layout>
+
+ <Button x:Name="button1"
+ BackgroundColor="#52c7d9"
+ PointSize="10"
+ TextColor="#ffffff"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" >
+ <Button.Icon>
+ <ImageView x:Name="imageview1" Size2D="300, 300" />
+ </Button.Icon>
+ </Button>
+ <TextLabel x:Name="text1"
+ Text="ImageButton Status"
+ PointSize="10"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ </View>
+ </ContentPage.Content>
+ </ContentPage>
+
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class ImageButtonTestPage : View
+ public partial class ImageButtonTestPage : ContentPage
{
string ImageURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "images/";
public ImageButtonTestPage()
}
if (e.CurrentState == ControlState.Pressed) {
text1.Text = "Pressed";
- }
+ }
};
}
}
-}
\ No newline at end of file
+}
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ImageTest1 : IExample
{
private Window window;
- private ImageTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ImageTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ImageTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="CenterVertical"/>
+ </View.Layout>
+
+ <Button x:Name="image1Btn"
+ Text="Image 1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.3"/>
+ <Button x:Name="image2Btn"
+ Text="Image 2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.3"/>
+ <Button x:Name="image3Btn"
+ Text="Image 3"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.3"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="CenterVertical"/>
+ </View.Layout>
+
+ <Button x:Name="image4Btn"
+ Text="Load 4000x2802"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.5"/>
+ <Button x:Name="image5Btn"
+ Text="Load 8000x10454"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.5"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="CenterVertical"/>
+ </View.Layout>
+
+ <Button x:Name="image6Btn"
+ Text="URI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.5" />
+ <Button x:Name="image7Btn"
+ Text="Stream"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.5" />
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
+ </View.Layout>
+
+ <TextLabel x:Name="labelA" Text="Alpha:" Weight="0.15"/>
+ <Slider x:Name="sliderA" MinValue="0" MaxValue="255" CurrentValue="255" Weight="0.85"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
+ </View.Layout>
+
+ <TextLabel x:Name="labelR" Text="R:" Weight="0.03" />
+ <Slider x:Name="sliderR" MinValue="0" MaxValue="255" CurrentValue="255" Weight="0.3"/>
+ <TextLabel x:Name="labelG" Text="G:" Weight="0.03" />
+ <Slider x:Name="sliderG" MinValue="0" MaxValue="255" CurrentValue="255" Weight="0.3"/>
+ <TextLabel x:Name="labelB" Text="B:" Weight="0.03" />
+ <Slider x:Name="sliderB" MinValue="0" MaxValue="255" CurrentValue="255" Weight="0.3"/>
+ </View>
+ <View x:Name="imgView"
+ BackgroundColor="#ffffff"
+ Position2D="0, 450"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <ImageView x:Name="imageView" Position2D="0, 10" Size2D="720, 720"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+ </ContentPage>
\ No newline at end of file
namespace NUITizenGallery
{
- public partial class ImageTest1Page : View
+ public partial class ImageTest1Page : ContentPage
{
private readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/";
public ImageTest1Page()
image1Btn.Clicked += (o, e) =>
{
- imageView.SetImage(ResourcePath + "Icon.png");
+ imageView.SetImage(ResourcePath + "NUITizenGallery.png");
};
image2Btn.Clicked += (o, e) =>
r = sliderR.CurrentValue / 255;
g = sliderG.CurrentValue / 255;
b = sliderB.CurrentValue / 255;
- imageView.BackgroundColor = new Tizen.NUI.Color(r, g, b, a);
+ /* Remind : Color is inofficial Property.
+ * Use Opacity for Alpha blending. */
+ imageView.Color = new Tizen.NUI.Color(r, g, b, a);
}
}
-}
+}
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ImageTest2 : IExample
{
private Window window;
- private ImageTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ImageTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ImageTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="450">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,5" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <Button x:Name="image1Btn"
+ Text="AspectFit"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image2Btn"
+ Text="AspectFill"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image3Btn"
+ Text="Fill"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image4Btn"
+ Text="BackgroundColor (Default - Red)"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ </View>
+
+ <View x:Name="imgView"
+ BackgroundColor="#ffffff"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" CropToMask="false"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+ </ContentPage>
\ No newline at end of file
*
*/
using System;
+using Tizen.NUI;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class ImageTest2Page : View
+ public partial class ImageTest2Page : ContentPage
{
private bool colorChanged = false;
public ImageTest2Page()
image1Btn.Clicked += (o, e) =>
{
+ imageView.FittingMode = FittingModeType.ShrinkToFit;
imageView.WidthResizePolicy = Tizen.NUI.ResizePolicyType.UseNaturalSize;
imageView.HeightResizePolicy = Tizen.NUI.ResizePolicyType.UseNaturalSize;
};
image2Btn.Clicked += (o, e) =>
{
+ imageView.FittingMode = FittingModeType.ScaleToFill;
+ imageView.HeightResizePolicy = Tizen.NUI.ResizePolicyType.FillToParent;
imageView.HeightResizePolicy = Tizen.NUI.ResizePolicyType.FillToParent;
};
image3Btn.Clicked += (o, e) =>
{
+ imageView.FittingMode = FittingModeType.Fill;
imageView.HeightResizePolicy = Tizen.NUI.ResizePolicyType.FillToParent;
imageView.WidthResizePolicy = Tizen.NUI.ResizePolicyType.FillToParent;
};
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ImageTest3 : IExample
{
private Window window;
- private ImageTest3Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ImageTest3Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ImageTest3Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <ImageView x:Name="imageView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ ResourceUrl="http://pe.tedcdn.com/images/ted/2e306b9655267cee35e45688ace775590b820510_615x461.jpg"/>
+ </ContentPage.Content>
+ </ContentPage>
namespace NUITizenGallery
{
- public partial class ImageTest3Page : View
+ public partial class ImageTest3Page : ContentPage
{
public ImageTest3Page()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ImageTest4 : IExample
{
private Window window;
- private ImageTest4Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ImageTest4Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ImageTest4Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="imgView"
+ BackgroundColor="#ffffff"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
+ </View>
+ </ContentPage.Content>
+
+ </ContentPage>
namespace NUITizenGallery
{
- public partial class ImageTest4Page : View
+ public partial class ImageTest4Page : ContentPage
{
public ImageTest4Page()
{
internal class ImageTest5 : IExample
{
private Window window;
- private ImageTest5Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new ImageTest5Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new ImageTest5Page());
}
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null; ;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ImageTest5Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ImageTest5Page"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View x:Name="rootView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <View x:Name="imageContainer"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="650">
+ <ImageView x:Name="imageView"
+ ResourceUrl="*Resource*/images/a.jpg"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ <TextLabel x:Name="desc1"
+ Text=""
+ PointSize="7"
+ TextColor="Black"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ <Button x:Name="image1Btn"
+ Text="size + 100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image2Btn"
+ Text="size - 100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image3Btn"
+ Text="height + 100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image4Btn"
+ Text="height - 100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="image5Btn"
+ Text="change mode"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class IndicatorViewTest1 : IExample
{
Window window;
- IndicatorViewTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new IndicatorViewTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new IndicatorViewTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.IndicatorViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="IndicatorViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ScrollableBase x:Name="Scroller"
+ SnapToPage="true"
+ ScrollingDirection="Horizontal"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
+ </ScrollableBase.Layout>
+
+ <View x:Name="Page0"
+ Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }"
+ BackgroundColor="#ff0000">
+ <TextLabel Text="Page 0" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page1"
+ Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 1" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page2"
+ Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }"
+ BackgroundColor="#0000ff">
+ <TextLabel Text="Page 2" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page3"
+ Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }"
+ BackgroundColor="#ff00ff">
+ <TextLabel Text="Page 3" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page4"
+ Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 4" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
+ </View>
+ </ScrollableBase>
+
+ <Pagination x:Name="Index" Size2D="186,50"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class IndicatorViewTest1Page : View
+ public partial class IndicatorViewTest1Page : ContentPage
{
private readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/";
private readonly int PagesCount = 5;
internal class IndicatorViewTest2 : IExample
{
private Window window;
- private IndicatorViewTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new IndicatorViewTest2Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new IndicatorViewTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.IndicatorViewTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="IndicatorViewTest2Page"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
+ </View.Layout>
+
+ <ScrollableBase x:Name="Scroller"
+ SnapToPage="true"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ ScrollingDirection="Horizontal"
+ BackgroundColor="White" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal" CellPadding="5,5"/>
+ </ScrollableBase.Layout>
+
+ <View x:Name="Page0"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#ff0000">
+ <TextLabel Text="Page 0"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+ <View x:Name="Page1"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 1"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+ <View x:Name="Page2"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#0000ff">
+ <TextLabel Text="Page 2"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+ <View x:Name="Page3"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#ff00ff">
+ <TextLabel Text="Page 3"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+ <View x:Name="Page4"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 4"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+
+ </ScrollableBase>
+
+ <Pagination x:Name="Index"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="50"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
internal class IndicatorViewTest3 : IExample
{
private Window window;
- private IndicatorViewTest3Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new IndicatorViewTest3Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new IndicatorViewTest3Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.IndicatorViewTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="IndicatorViewTest3Page"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <AbsoluteLayout/>
+ </View.Layout>
+
+ <ScrollableBase x:Name="Scroller"
+ SnapToPage="true"
+ ScrollingDirection="Horizontal"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
+ </ScrollableBase.Layout>
+
+ <View x:Name="Page0"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#ff0000">
+ <TextLabel Text="Page 0"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page1"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 1"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page2"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#0000ff">
+ <TextLabel Text="Page 2"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page3"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#ff00ff">
+ <TextLabel Text="Page 3"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ <View x:Name="Page4"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#00ff00">
+ <TextLabel Text="Page 4"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"/>
+ </View>
+ </ScrollableBase>
+
+ <Pagination x:Name="Index" Size2D="186,50"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class IndicatorViewTest4 : IExample
{
Window window;
- IndicatorViewTest4Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new IndicatorViewTest4Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new IndicatorViewTest4Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.IndicatorViewTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="IndicatorViewTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <Pagination x:Name="Index0" Size2D="90,50"/>
+ <Pagination x:Name="Index1" Size2D="186,50"/>
+ <Pagination x:Name="Index2" Size2D="220,50"/>
+ <Pagination x:Name="Index3" Size2D="186,50"/>
+ <Pagination x:Name="Index4" Size2D="186,50"/>
+ <Pagination x:Name="Index5" Size2D="186,50"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class IndicatorViewTest4Page : View
+ public partial class IndicatorViewTest4Page : ContentPage
{
public IndicatorViewTest4Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class KeyboardTest1 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new KeyboardTest1Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.KeyboardTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ContentPage.AppBar>
+ <AppBar Title="KeyboardTest1Page"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="TextField"
+ HorizontalAlignment="Center"/>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel Text="TextField"/>
+ <TextField x:Name="textField"
+ Weight="1.0"
+ PlaceholderText="Type Text Here"/>
+ </View>
+ <ScrollableBase WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <Button x:Name="dateTimeKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Datetime keyboard"/>
+ <Button x:Name="emailKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Email keyboard"/>
+ <Button x:Name="emoticonKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Emoticon keyboard"/>
+ <Button x:Name="hexKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Hexadecimal keyboard"/>
+ <Button x:Name="ipLayoutKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="IP keyboard"/>
+ <Button x:Name="monthKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Month keyboard"/>
+ <Button x:Name="normalKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Default keyboard"/>
+ <Button x:Name="numberKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Number keyboard"/>
+ <Button x:Name="numberOnlyKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Number only keyboard"/>
+ <Button x:Name="passworKeyboarddButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Password keyboard"/>
+ <Button x:Name="phoneNumberKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Phone number keyboard"/>
+ <Button x:Name="terminalKeyboardButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Terminal keyboard"/>
+ <Button x:Name="urlKeyboarddButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="URL keyboard"/>
+ </ScrollableBase>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class KeyboardTest1 : IExample
- {
- private Window window;
- private KeyboardTest1Page page;
- private Navigator navigator;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new KeyboardTest1Page();
- navigator = window.GetDefaultNavigator();
-
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class LabelTest1 : IExample
{
private Window window;
- private LabelTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new LabelTest1Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new LabelTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LabelTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LabelTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="layout"
+ Padding="10,10,10,10"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+ </View>
+ </ContentPage.Content>
+ </ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class LabelTest1Page : View
+ public partial class LabelTest1Page : ContentPage
{
public LabelTest1Page()
{
InitializeComponent();
AddLabels();
- this.Padding = new Extents(10, 10, 10, 10);
}
private void AddLabels()
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class LabelTest2 : IExample
{
private Window window;
- private LabelTest2Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new LabelTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new LabelTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LabelTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.XamlResources>
+ <ResourceDictionary>
+ <x:String x:Key="label2Text">
+ <color value='blue'>This should be Blue</color>
+ </x:String>
+ <x:String x:Key="label3Text">
+ None<font weight='bold' >Bold</font><font slant='italic' >Italic</font><font slant='italic' weight='bold' >Both</font>
+ </x:String>
+ <x:String x:Key="label6Text">
+ <color value='blue'><font slant='italic' >This should be Italic Blue on Red</font></color>
+ </x:String>
+ <x:String x:Key="label8Text">
+ <Html>this is HTML</Html>
+ </x:String>
+ </ResourceDictionary>
+ </View.XamlResources>
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LabelTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
+ </View.Layout>
+
+ <TextLabel Text="NormalTextLabel"/>
+ <TextLabel BackgroundColor="Red"
+ EnableMarkup="True"
+ Text="{StaticResource label2Text}"/>
+ <TextLabel EnableMarkup="True"
+ Text="{StaticResource label3Text}"/>
+ <TextLabel Text="This should be Blue"
+ BackgroundColor="Red"
+ TextColor="Blue"/>
+ <TextLabel Text="This should be Red"
+ TextColor="Red"/>
+ <TextLabel EnableMarkup="True"
+ Text="{StaticResource label6Text}"
+ BackgroundColor="Red"/>
+ <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="This is reeeeeeeeeeeeeeeeeeeeealy looooooooooooooooooooooong and looooooooooooooooooong text"
+ MultiLine="True"
+ LineWrapMode="Character"/>
+ <TextLabel Text="{StaticResource label8Text}"/>
+ </View>
+ </ContentPage.Content>
+
+ </ContentPage>
using System;
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class LabelTest2Page : View
+ public partial class LabelTest2Page : ContentPage
{
public LabelTest2Page()
{
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class LabelTest3 : IExample
{
private Window window;
- private LabelTest3Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new LabelTest3Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new LabelTest3Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LabelTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LabelTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="mainView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Yellow">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+ <TextLabel Text="LeftAligned"
+ CellHorizontalAlignment="Left"
+ BackgroundColor="#00ffff"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
+ </View.Layout>
+ <TextLabel Text="CenterAligned"
+ CellHorizontalAlignment="Center"
+ BackgroundColor="#00ffff"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
+ </View.Layout>
+ <TextLabel Text="RightAligned"
+ CellHorizontalAlignment="Right"
+ BackgroundColor="#00ffff"/>
+ </View>
+ <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Fill"
+ BackgroundColor="#00ffff"/>
+ </View>
+ </ContentPage.Content>
+
+ </ContentPage>
*/
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class LabelTest3Page : View
+ public partial class LabelTest3Page : ContentPage
{
public LabelTest3Page()
{
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LabelTest5 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LabelTest5Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.LabelTest5Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
<ContentPage.AppBar>
<AppBar Title="LabelTest5"/>
</ContentPage.AppBar>
<ContentPage.Content>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
<View.Layout>
<ImageView Size2D="88,88"
ResourceUrl="*Resource*/images/tizen.png"/>
-
<View x:Name="listItemContent1">
<View.Layout>
<TextLabel Text="Anuj Bhatia"
PointSize="8"/>
-
<TextLabel Text="Customer Success Engineer"
PointSize="8"/>
-
</View>
-
</View>
-
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
<View.Layout>
</View.Layout>
<ImageView Size2D="88,88"
- ResourceUrl="*Resource*/images/tizen.png"/>
-
+ ResourceUrl="*Resource*/images/tizen.png"/>
<View x:Name="listItemContent2"
- WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
- HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
<TextLabel Text="Jo Ann Buckner"
PointSize="8"/>
-
<TextLabel Text="Marketing"
PointSize="8"/>
-
</View>
-
</View>
-
</View>
-
</ContentPage.Content>
</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class LabelTest5 : IExample
- {
- private Window window;
- private LabelTest5Page page;
- private Navigator navigator;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new LabelTest5Page();
- navigator = window.GetDefaultNavigator();
-
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LayoutAddRemoveTest1 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LayoutAddRemoveTest1Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
</View.Layout>
<View x:Name="linear"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
</View.Layout>
</View>
-
<Button x:Name="addButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Add"/>
-
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Add"/>
<Button x:Name="removeButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Remove"/>
-
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Remove"/>
</ScrollableBase>
</ContentPage.Content>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LayoutAddRemoveTest2 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LayoutAddRemoveTest2Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.LayoutAddRemoveTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
</ContentPage.AppBar>
<ContentPage.Content>
-
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
</View.Layout>
-
+
<View x:Name="linear"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
</View.Layout>
</View>
-
<Button x:Name="addButton"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
Text="Add"/>
-
<Button x:Name="addTaskButton"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
Text="Add with task"/>
-
<Button x:Name="removeButton"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
Text="Remove"/>
-
</View>
-
</ContentPage.Content>
</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class LayoutAddRemoveTest1 : IExample
- {
- private Window window;
- private LayoutAddRemoveTest1Page page;
- private Navigator navigator;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new LayoutAddRemoveTest1Page();
- navigator = window.GetDefaultNavigator();
-
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class LayoutAddRemoveTest2 : IExample
- {
- private Window window;
- private LayoutAddRemoveTest2Page page;
- private Navigator navigator;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new LayoutAddRemoveTest2Page();
- navigator = window.GetDefaultNavigator();
-
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest1 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest1Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <TextLabel Text="1 Row - 1 Label" PointSize="8"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <TextLabel Text="1 Row - 2 Label" PointSize="8"/>
+ </View>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <TextLabel Text="2 Row - 1 Label" PointSize="8"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <TextLabel Text="2 Row - 2 Label" PointSize="8"/>
+ </View>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <TextLabel Text="Third Row - I'm on left" PointSize="8"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
+ </View.Layout>
+
+ <TextLabel Text="Fourth Row - I'm on right" PointSize="8"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
using System.Diagnostics;
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class StackLayoutTest1Page : View
+ public partial class LinearLayoutTest1Page : ContentPage
{
- public StackLayoutTest1Page()
+ public LinearLayoutTest1Page()
{
InitializeComponent();
this.Relayout += OnRelayoutChanged;
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest2 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest2Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <Button Text="button1"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
+ </View.Layout>
+
+ <Button Text="button2"/>
+ </View>
+ </View>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ public partial class LinearLayoutTest2Page : ContentPage
+ {
+ public LinearLayoutTest2Page()
+ {
+ InitializeComponent();
+ }
+
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (Disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ RemoveAllChildren(true);
+ }
+
+ base.Dispose(type);
+ }
+
+ private void RemoveAllChildren(bool dispose = false)
+ {
+ RecursiveRemoveChildren(this, dispose);
+ }
+
+ private void RecursiveRemoveChildren(View parent, bool dispose)
+ {
+ if (parent == null)
+ {
+ return;
+ }
+
+ int maxChild = (int)parent.ChildCount;
+ for (int i = maxChild - 1; i >= 0; --i)
+ {
+ View child = parent.GetChildAt((uint)i);
+ if (child == null)
+ {
+ continue;
+ }
+
+ RecursiveRemoveChildren(child, dispose);
+ parent.Remove(child);
+ if (dispose)
+ {
+ child.Dispose();
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest3 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest3Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10,10"/>
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="10,10"/>
+ </View.Layout>
+
+ <View Size2D="100,100" BackgroundColor="1,0,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,1,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,0,1,1"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="20,20"/>
+ </View.Layout>
+
+ <View Size2D="100,100" BackgroundColor="1,0,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,1,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,0,1,1"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View Size2D="100,100" BackgroundColor="1,0,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,1,0,1"/>
+ <View Size2D="100,100" BackgroundColor="0,0,1,1"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ public partial class LinearLayoutTest3Page : ContentPage
+ {
+ public LinearLayoutTest3Page()
+ {
+ InitializeComponent();
+ }
+
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (Disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ RemoveAllChildren(true);
+ }
+
+ base.Dispose(type);
+ }
+
+ private void RemoveAllChildren(bool dispose = false)
+ {
+ RecursiveRemoveChildren(this, dispose);
+ }
+
+ private void RecursiveRemoveChildren(View parent, bool dispose)
+ {
+ if (parent == null)
+ {
+ return;
+ }
+
+ int maxChild = (int)parent.ChildCount;
+ for (int i = maxChild - 1; i >= 0; --i)
+ {
+ View child = parent.GetChildAt((uint)i);
+ if (child == null)
+ {
+ continue;
+ }
+
+ RecursiveRemoveChildren(child, dispose);
+ parent.Remove(child);
+ if (dispose)
+ {
+ child.Dispose();
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest4 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest4Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+
+ <View x:Name="layout" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+
+ <Button x:Name="addButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Add label"/>
+ </View>
+ <TextLabel Text="End"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class StackLayoutTest4Page : View
+ public partial class LinearLayoutTest4Page : ContentPage
{
private int i = 0;
- public StackLayoutTest4Page()
+ public LinearLayoutTest4Page()
{
InitializeComponent();
- this.Padding = new Extents(15, 15, 15, 15);
addButton.Clicked += OnAddButtonClicked;
}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest5: IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest5Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest5Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest5Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="20,20,20,20">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel Text="abcde"
+ PointSize="6"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.2"/>
+ <TextLabel Text="12345"
+ PointSize="6"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.2"/>
+ <TextLabel Text="This is rather looooooonoooooooooooog and looooooooong text"
+ PointSize="6"
+ MultiLine="True"
+ LineWrapMode="Character"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.2"/>
+ <TextLabel Text="This is blue text"
+ TextColor="0,0,1,1"
+ PointSize="6"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.2"/>
+ <View BackgroundColor="0,1,0,1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.2"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ public partial class LinearLayoutTest5Page : ContentPage
+ {
+ public LinearLayoutTest5Page()
+ {
+ InitializeComponent();
+ }
+
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (Disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ RemoveAllChildren(true);
+ }
+
+ base.Dispose(type);
+ }
+
+ private void RemoveAllChildren(bool dispose = false)
+ {
+ RecursiveRemoveChildren(this, dispose);
+ }
+
+ private void RecursiveRemoveChildren(View parent, bool dispose)
+ {
+ if (parent == null)
+ {
+ return;
+ }
+
+ int maxChild = (int)parent.ChildCount;
+ for (int i = maxChild - 1; i >= 0; --i)
+ {
+ View child = parent.GetChildAt((uint)i);
+ if (child == null)
+ {
+ continue;
+ }
+
+ RecursiveRemoveChildren(child, dispose);
+ parent.Remove(child);
+ if (dispose)
+ {
+ child.Dispose();
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest6: IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest6Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest6Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest6Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="20,20,20,20">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="20,20"/>
+ </View.Layout>
+
+ <Button x:Name="changeOrientationButton"
+ Text="Change orientation"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel Text="Padding"/>
+ <Slider x:Name="paddingSlider"
+ Weight="1.0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ MinValue="0.0"
+ MaxValue="100.0"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearAlignment="Begin" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel Text="CellPadding"/>
+ <Slider x:Name="cellPaddingSlider"
+ Weight="1.0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ MinValue="0.0"
+ MaxValue="100.0"/>
+ </View>
+ <View BackgroundColor="Black"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="20"/>
+ <View x:Name="layout"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin"/>
+ </View.Layout>
+
+ <TextLabel x:Name="firstLabel"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="this is first label with loooooooong and loooooooong and loooooooongand loooooooongand loooooooong text"
+ MultiLine="True"
+ PointSize="6"/>
+ <View x:Name="switchView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearAlignment="Center" />
+ </View.Layout>
+
+ <Switch IsSelectable="True"
+ IsSelected="False"/>
+ </View>
+ <View x:Name="blueBox"
+ BackgroundColor="Blue"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="300"/>
+ <TextLabel x:Name="lastLabel"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="this is first label with loooooooong and loooooooong and loooooooongand loooooooongand loooooooong text"
+ MultiLine="True"
+ PointSize="6"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
\ No newline at end of file
namespace NUITizenGallery
{
- public partial class StackLayoutTest6Page : View
+ public partial class LinearLayoutTest6Page : ContentPage
{
- public StackLayoutTest6Page()
+ public LinearLayoutTest6Page()
{
InitializeComponent();
- this.Padding = new Extents(20, 20, 20, 20);
paddingSlider.ValueChanged += OnPaddingSilderValueChanged;
cellPaddingSlider.ValueChanged += OnCellPaddingilderValueChanged;
changeOrientationButton.Clicked += OnOrientationButtonChanged;
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class LinearLayoutTest8: IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new LinearLayoutTest8Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.LinearLayoutTest8Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="LinearLayoutTest8Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel Text="Padding"
+ TextColor="Black"/>
+ <Slider x:Name="sliderPadding"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CurrentValue="0.0"
+ MinValue="0.0"
+ MaxValue="50.0"/>
+ <TextLabel Text="CellPadding"
+ TextColor="Black"/>
+ <Slider x:Name="sliderCellPadding"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CurrentValue="0.0"
+ MinValue="0.0"
+ MaxValue="50.0"/>
+ <TextLabel Text="Margin"
+ TextColor="Black"/>
+ <Slider x:Name="sliderMargin"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CurrentValue="0.0"
+ MinValue="0.0"
+ MaxValue="50.0"/>
+ <Button x:Name="buttonOrientation"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Toggle Orientation"/>
+ <Button x:Name="buttonReset"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Reset"/>
+ <View x:Name="layout"
+ BackgroundColor="#BBFFBB"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+
+ <View x:Name="redBox"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Red"
+ HeightSpecification="80"/>
+ <View x:Name="greenBox"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Green"
+ HeightSpecification="80"/>
+ <View x:Name="blueBox"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Blue"
+ HeightSpecification="80"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class StackLayoutTest8Page : View
+ public partial class LinearLayoutTest8Page : ContentPage
{
- public StackLayoutTest8Page()
+ public LinearLayoutTest8Page()
{
InitializeComponent();
this.Padding = new Extents(20, 20, 20, 20);
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class ListViewFooterTest1 : IExample
- {
- Window window;
- ListViewFooterTest1Page page;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
- window = NUIApplication.GetDefaultWindow();
-
- page = new ListViewFooterTest1Page();
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using System.Collections.Generic;
-
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-
-namespace NUITizenGallery
-{
- public partial class ListItemClickedEventArgs : EventArgs
- {
- public string ClickedItemText;
- public int Index;
-
- public ListItemClickedEventArgs(string text, int index)
- {
- ClickedItemText = text;
- Index = index;
- }
- }
-
- public class ListItem : TextLabel
- {
- private int Index = -1;
- public event EventHandler<ListItemClickedEventArgs> Clicked;
- public ListItem(string text, int index)
- {
- Text = text;
- Index = index;
- TouchEvent += OnTouchEvent;
- Size2D = new Tizen.NUI.Size2D(720, 100);
- }
-
- private bool OnTouchEvent(object sender, TouchEventArgs args)
- {
- if (args.Touch.GetState(0) == Tizen.NUI.PointStateType.Finished)
- {
- Clicked.Invoke(this, new ListItemClickedEventArgs(Text, Index));
- }
-
- return true;
- }
-
- public void ChangeSelectionState(bool selected)
- {
- if (selected == true)
- {
- BackgroundColor = Color.Gray;
- }
- else
- {
- BackgroundColor = Color.White;
- }
- }
- }
-
- public partial class ListViewFooterTest1Page : View
- {
- private readonly int ItemsCount = 20;
-
- private int SelectedItemIndex = -1;
- private List<ListItem> items;
-
- public ListViewFooterTest1Page()
- {
- InitializeComponent();
- items = new List<ListItem>();
-
- for (int i = 0; i < ItemsCount; ++i)
- {
- items.Add(new ListItem(string.Format("{0}th list item", i), i));
- items[i].Clicked += OnClicked;
- ListView.Add(items[i]);
- }
- }
-
- private void OnClicked(object sender, ListItemClickedEventArgs args)
- {
- Footer.Text = args.ClickedItemText;
-
- if (SelectedItemIndex != -1)
- {
- items[SelectedItemIndex].ChangeSelectionState(false);
- }
-
- SelectedItemIndex = args.Index;
- items[SelectedItemIndex].ChangeSelectionState(true);
- }
- }
-}
{
Window window;
Navigator navigator;
- MenuTestPage page;
int pageCount = 0;
public void Activate()
navigator = window.GetDefaultNavigator();
pageCount = navigator.PageCount;
-
- page = new MenuTestPage();
- navigator.Push(page);
+ navigator.Push(new MenuTestPage());
}
public void Deactivate()
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<Menu x:Class="NUITizenGallery.MenuTestMenu"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
+
+ <Menu.Items>
+ <Array Type="{x:Type MenuItem}">
+ <MenuItem x:Name="menuItem1"
+ Text="Item1"/>
+ <MenuItem x:Name="menuItem2"
+ Text="Item2"/>
+ <MenuItem x:Name="menuItem3"
+ Text="Item3"/>
+ <MenuItem x:Name="menuItem4"
+ Text="Item4"/>
+ </Array>
+ </Menu.Items>
+</Menu>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.MenuTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="MenuTestPage"/>
+ </ContentPage.AppBar>
+
+ <ContentPage.Content>
+ <View x:Name="content"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+
+ <View.Layout>
+ <RelativeLayout/>
+ </View.Layout>
+
+ <Button x:Name="buttonCenterEnd"
+ Text="Bottom Menu"
+ RelativeLayout.LeftRelativeOffset="0.5"
+ RelativeLayout.RightRelativeOffset="0.5"
+ RelativeLayout.TopRelativeOffset="0.0"
+ RelativeLayout.BottomRelativeOffset="0.0"
+ RelativeLayout.FillHorizontal="False"
+ RelativeLayout.FillVertical="False"
+ RelativeLayout.HorizontalAlignment="Center"
+ RelativeLayout.VerticalAlignment="Start"
+ Clicked="ButtonCenterEndClicked"
+ />
+ <Button x:Name="buttonCenterStart"
+ Text="Top Menu"
+ RelativeLayout.LeftRelativeOffset="0.5"
+ RelativeLayout.RightRelativeOffset="0.5"
+ RelativeLayout.TopRelativeOffset="1.0"
+ RelativeLayout.BottomRelativeOffset="1.0"
+ RelativeLayout.FillHorizontal="False"
+ RelativeLayout.FillVertical="False"
+ RelativeLayout.HorizontalAlignment="Center"
+ RelativeLayout.VerticalAlignment="End"
+ Clicked="ButtonCenterStartClicked"
+ />
+ <Button x:Name="buttonEndCenter"
+ Text="Right Menu"
+ RelativeLayout.LeftRelativeOffset="0.0"
+ RelativeLayout.RightRelativeOffset="0.0"
+ RelativeLayout.TopRelativeOffset="0.5"
+ RelativeLayout.BottomRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="False"
+ RelativeLayout.FillVertical="False"
+ RelativeLayout.HorizontalAlignment="Start"
+ RelativeLayout.VerticalAlignment="Center"
+ Clicked="ButtonEndCenterClicked"
+ />
+ <Button x:Name="buttonStartCenter"
+ Text="Left Menu"
+ RelativeLayout.LeftRelativeOffset="1.0"
+ RelativeLayout.RightRelativeOffset="1.0"
+ RelativeLayout.TopRelativeOffset="0.5"
+ RelativeLayout.BottomRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="False"
+ RelativeLayout.FillVertical="False"
+ RelativeLayout.HorizontalAlignment="End"
+ RelativeLayout.VerticalAlignment="Center"
+ Clicked="ButtonStartCenterClicked"
+ />
+ <Button x:Name="buttonCenterCenter"
+ Text="Center Menu"
+ RelativeLayout.LeftRelativeOffset="0.5"
+ RelativeLayout.RightRelativeOffset="0.5"
+ RelativeLayout.TopRelativeOffset="0.5"
+ RelativeLayout.BottomRelativeOffset="0.5"
+ RelativeLayout.FillHorizontal="False"
+ RelativeLayout.FillVertical="False"
+ RelativeLayout.HorizontalAlignment="Center"
+ RelativeLayout.VerticalAlignment="Center"
+ Clicked="ButtonCenterCenterClicked"
+ />
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
public MenuTestPage()
{
InitializeComponent();
-
- // FIXME: Need to write the following positioning in .xaml file.
- RelativeLayout.SetLeftRelativeOffset(buttonCenterEnd, 0.5f);
- RelativeLayout.SetRightRelativeOffset(buttonCenterEnd, 0.5f);
- RelativeLayout.SetHorizontalAlignment(buttonCenterEnd, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillHorizontal(buttonCenterEnd, false);
- RelativeLayout.SetTopRelativeOffset(buttonCenterEnd, 0.0f);
- RelativeLayout.SetBottomRelativeOffset(buttonCenterEnd, 0.0f);
- RelativeLayout.SetVerticalAlignment(buttonCenterEnd, RelativeLayout.Alignment.Start);
- RelativeLayout.SetFillVertical(buttonCenterEnd, false);
-
- RelativeLayout.SetLeftRelativeOffset(buttonCenterStart, 0.5f);
- RelativeLayout.SetRightRelativeOffset(buttonCenterStart, 0.5f);
- RelativeLayout.SetHorizontalAlignment(buttonCenterStart, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillHorizontal(buttonCenterStart, false);
- RelativeLayout.SetTopRelativeOffset(buttonCenterStart, 1.0f);
- RelativeLayout.SetBottomRelativeOffset(buttonCenterStart, 1.0f);
- RelativeLayout.SetVerticalAlignment(buttonCenterStart, RelativeLayout.Alignment.End);
- RelativeLayout.SetFillVertical(buttonCenterStart, false);
-
- RelativeLayout.SetLeftRelativeOffset(buttonEndCenter, 0.0f);
- RelativeLayout.SetRightRelativeOffset(buttonEndCenter, 0.0f);
- RelativeLayout.SetHorizontalAlignment(buttonEndCenter, RelativeLayout.Alignment.Start);
- RelativeLayout.SetFillHorizontal(buttonEndCenter, false);
- RelativeLayout.SetTopRelativeOffset(buttonEndCenter, 0.5f);
- RelativeLayout.SetBottomRelativeOffset(buttonEndCenter, 0.5f);
- RelativeLayout.SetVerticalAlignment(buttonEndCenter, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillVertical(buttonEndCenter, false);
-
- RelativeLayout.SetLeftRelativeOffset(buttonStartCenter, 1.0f);
- RelativeLayout.SetRightRelativeOffset(buttonStartCenter, 1.0f);
- RelativeLayout.SetHorizontalAlignment(buttonStartCenter, RelativeLayout.Alignment.End);
- RelativeLayout.SetFillHorizontal(buttonStartCenter, false);
- RelativeLayout.SetTopRelativeOffset(buttonStartCenter, 0.5f);
- RelativeLayout.SetBottomRelativeOffset(buttonStartCenter, 0.5f);
- RelativeLayout.SetVerticalAlignment(buttonStartCenter, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillVertical(buttonStartCenter, false);
-
- RelativeLayout.SetLeftRelativeOffset(buttonCenterCenter, 0.5f);
- RelativeLayout.SetRightRelativeOffset(buttonCenterCenter, 0.5f);
- RelativeLayout.SetHorizontalAlignment(buttonCenterCenter, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillHorizontal(buttonCenterCenter, false);
- RelativeLayout.SetTopRelativeOffset(buttonCenterCenter, 0.5f);
- RelativeLayout.SetBottomRelativeOffset(buttonCenterCenter, 0.5f);
- RelativeLayout.SetVerticalAlignment(buttonCenterCenter, RelativeLayout.Alignment.Center);
- RelativeLayout.SetFillVertical(buttonCenterCenter, false);
-
- buttonCenterEnd.Clicked += ButtonCenterEndClicked;
- buttonCenterStart.Clicked += ButtonCenterStartClicked;
- buttonEndCenter.Clicked += ButtonEndCenterClicked;
- buttonStartCenter.Clicked += ButtonStartCenterClicked;
- buttonCenterCenter.Clicked += ButtonCenterCenterClicked;
}
private void ButtonCenterEndClicked(object sender, ClickedEventArgs args)
{
Window window;
Navigator navigator;
- NavigatorTest1Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
navigator = window.GetDefaultNavigator();
- page = new NavigatorTest1Page();
- navigator.Push(page);
+ navigator.Push(new NavigatorTest1Page());
}
public void Deactivate()
<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.NavigatorTest1Page"
+<ContentPage x:Class="NUITizenGallery.NavigatorTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:nui="clr-namespace:Tizen.NUI;assembly=Tizen.NUI"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="NavigatorTest1Page1"/>
+ <AppBar x:Name="appBar" Title="NavigatorTest1Page"/>
</ContentPage.AppBar>
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
- <View x:Name="content"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
<View.Layout>
- <LinearLayout LinearOrientation="Vertical"
- CellPadding="0, 10"/>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0, 10"/>
</View.Layout>
<Button x:Name="buttonPush"
Text="Push"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPushClicked"/>
-
<Button x:Name="buttonPop"
Text="Pop"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPopClicked"/>
-
<Button x:Name="buttonInsert"
Text="Insert"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonInsertClicked"/>
-
<Button x:Name="buttonInsertBefore"
Text="InsertBefore"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonInsertBeforeClicked"/>
-
<Button x:Name="buttonRemove"
Text="Remove"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonRemoveClicked"/>
-
<Button x:Name="buttonRemoveAt"
Text="RemoveAt"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonRemoveAtClicked"/>
</View>
</ContentPage.Content>
-</comp:ContentPage>
+</ContentPage>
{
Window window;
Navigator navigator;
- NavigatorTest2Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
navigator = window.GetDefaultNavigator();
- page = new NavigatorTest2Page();
- navigator.Push(page);
+ navigator.Push(new NavigatorTest2Page());
}
public void Deactivate()
<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.NavigatorTest2Page"
+<ContentPage x:Class="NUITizenGallery.NavigatorTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:nui="clr-namespace:Tizen.NUI;assembly=Tizen.NUI"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="NavigatorTest2Page1"/>
+ <AppBar x:Name="appBar" Title="NavigatorTest2Page"/>
</ContentPage.AppBar>
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
- <View x:Name="content"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
<View.Layout>
- <LinearLayout LinearOrientation="Vertical"
- CellPadding="0, 10"/>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0, 10"/>
</View.Layout>
<Button x:Name="buttonPush"
Text="Push"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPushClicked"/>
-
<Button x:Name="buttonPop"
Text="Pop"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPopClicked"/>
-
<Button x:Name="buttonPushAndInsert"
Text="Push 2 Pages"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPushAndInsertClicked"/>
-
<Button x:Name="buttonRemoveAndPop"
Text="Pop 2 Pages"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonRemoveAndPopClicked"/>
-
<Button x:Name="buttonPushAndRemove"
Text="Push and Remove"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPushAndRemoveClicked"/>
-
<Button x:Name="buttonInsertAndPop"
Text="Insert and Pop"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonInsertAndPopClicked"/>
-
<Button x:Name="buttonPopToRoot"
Text="Pop to Root"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
Clicked="ButtonPopToRootClicked"/>
</View>
</ContentPage.Content>
-</comp:ContentPage>
+</ContentPage>
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class OpacityTest1 : IExample
{
Window window;
- OpacityTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new OpacityTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new OpacityTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.OpacityTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="OpacityTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <Button Text="Opacity 0.4" Opacity="0.4" Position2D="80,100"/>
+ <Button Text="Opacity 0.2" Opacity="0.2" Position2D="340,100"/>
+ <Button Text="Opacity 0.9" Opacity="0.9" Position2D="200,200"/>
+ <View Position2D="270,300">
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <TextLabel Text="Opacity 0.2" Opacity="0.2"/>
+ <TextLabel Text="Opacity 0.4" Opacity="0.4"/>
+ <TextLabel Text="Opacity 0.6" Opacity="0.6"/>
+ </View>
+ <Button Text="Opacity 1.0" Opacity="1.0" Position2D="200,520"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class OpacityTest1Page : View
+ public partial class OpacityTest1Page : ContentPage
{
public OpacityTest1Page()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class PanGestureTest1 : IExample
{
private Window window;
- private PanGestureTest1Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new PanGestureTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new PanGestureTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.PanGestureTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PanGestureTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="60,60"/>
+ </View.Layout>
+
+ <View x:Name="imgView" BackgroundColor="#ffffff">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
+ </View>
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<View x:Class="NUITizenGallery.ListItemTitle"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ BackgroundColor="#ff0000"
+ Size2D="680, 50">
+
+ <TextLabel x:Name="TextLabelTitle" Text="Not set"/>
+</View>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<View x:Class="NUITizenGallery.ListItemTitleSwitch"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ Padding="5,5,5,5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="100,10" />
+ </View.Layout>
+
+ <TextLabel x:Name="TextLabelTitle" Text="Not set"/>
+ <Switch x:Name="ListItemSwitch" IsSelected="true"/>
+</View>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI;
+
+namespace NUITizenGallery
+{
+ public partial class ListItemTitleSwitch : View
+ {
+ public ListItemTitleSwitch(string title)
+ {
+ InitializeComponent();
+ TextLabelTitle.Text = title;
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<View x:Class="NUITizenGallery.ListItemTitleView"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ Padding="5,5,5,5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="100,10" />
+ </View.Layout>
+
+ <TextLabel x:Name="TextLabelTitle" Text="Not set"/>
+ <View x:Name="ListItemView" BackgroundColor="#ff0000" Position2D="400, 0" Size2D="40, 40"/>
+</View>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI;
+
+namespace NUITizenGallery
+{
+ public partial class ListItemTitleView : View
+ {
+ public ListItemTitleView(string title)
+ {
+ InitializeComponent();
+ TextLabelTitle.Text = title;
+ }
+ }
+}
internal class PerformanceTest1 : IExample
{
private Window window;
- private PerformanceTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new PerformanceTest1Page();
-
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new PerformanceTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.PerformanceTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PerformanceTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10" />
+ </View.Layout>
+
+ <Button x:Name="StartButton"
+ Text="Scroll to 999"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"/>
+ <TextLabel x:Name="FPSLabel"
+ PointSize="8"
+ Text="Click scroll button to measure FPS"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="60"/>
+ <ScrollableBase x:Name="Scroller"
+ SnapToPage="true"
+ ScrollDuration="5000"
+ ScrollingDirection="Vertical"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="Blue">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5"/>
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
avgElapsedTime = 0;
avgFPS = 0;
}
-
+
public float GetFPS()
{
return avgFPS;
public partial class PerformanceTest1Page : ContentPage
{
private int TestItems = 1000;
- private int ScrollTime = 5000;
private Window AppWindow;
private FrameUpdate FPSCounter;
private bool MeasurementStarted;
AppWindow = NUIApplication.GetDefaultWindow();
StartButton.Clicked += OnButtonScrollClicked;
- Scroller.ScrollDuration = ScrollTime;
var items = new ListItemTitle[TestItems];
for (int i = 0; i < TestItems; i++) {
private void OnButtonScrollClicked(object sender, ClickedEventArgs args)
{
- if (MeasurementStarted == true) return;
+ if (MeasurementStarted == true) return;
MeasurementStarted = true;
internal class PerformanceTest2 : IExample
{
Window window;
- PerformanceTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new PerformanceTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new PerformanceTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.PerformanceTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PerformanceTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="5,5,5,5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="5,5" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <Button x:Name="StartButton" Text="Scroll to 49" Size2D="700,70"/>
+ <ScrollableBase x:Name="LabelsListView"
+ ScrollingDirection="Vertical"
+ ScrollDuration="5000"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="White">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5" />
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ public partial class PerformanceTest2Page : ContentPage
+ {
+ private int TestItems = 50;
+
+ public PerformanceTest2Page()
+ {
+ InitializeComponent();
+ StartButton.Clicked += OnButtonScrollClicked;
+
+ var items = new ListItemTitleSwitch[TestItems];
+ for (int i = 0; i < TestItems; i++) {
+ items[i] = new ListItemTitleSwitch("item: " + i.ToString());
+ LabelsListView.Add(items[i]);
+ }
+ }
+
+ private void OnButtonScrollClicked(object sender, ClickedEventArgs args)
+ {
+ LabelsListView.ScrollToIndex(49);
+ }
+ }
+}
internal class PerformanceTest3 : IExample
{
Window window;
- PerformanceTest3Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new PerformanceTest3Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new PerformanceTest3Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.PerformanceTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PerformanceTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="5,5,5,5">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="5,5" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <View x:Name="ButtonBox"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="5,5" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <Button x:Name="ScrollBegin" Text="Scroll to 0" Size2D="220,70"/>
+ <Button x:Name="ScrollMiddle" Text="Scroll to 100" Size2D="220,70"/>
+ <Button x:Name="ScrollEnd" Text="Scroll to 199" Size2D="220,70"/>
+ </View>
+
+ <ScrollableBase x:Name="LabelsListView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ ScrollDuration="5000"
+ BackgroundColor="White">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5" />
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class PerformanceTest3Page : View
+ public partial class PerformanceTest3Page : ContentPage
{
private int TestItems = 200;
- private int ScrollTime = 5000;
public PerformanceTest3Page()
{
InitializeComponent();
- //Application Linear Layout
- LinearLayout layout = new LinearLayout();
- layout.LinearOrientation = LinearLayout.Orientation.Vertical;
- layout.LinearAlignment = LinearLayout.Alignment.Center;
- layout.Padding = new Extents(5, 5, 5, 5);
- layout.CellPadding = new Size2D(5, 5);
- this.Layout = layout;
-
- LinearLayout hLayout = new LinearLayout();
- hLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- hLayout.LinearAlignment = LinearLayout.Alignment.Center;
- hLayout.Padding = new Extents(5, 5, 5, 5);
- hLayout.CellPadding = new Size2D(5, 5);
- ButtonBox.Layout = hLayout;
-
-
ScrollBegin.Clicked += OnScrollBeginClicked;
ScrollMiddle.Clicked += OnScrollMiddleClicked;
ScrollEnd.Clicked += OnScrollEndClicked;
- //Create List for Labels
- LabelsListView = new ScrollableBase();
- LabelsListView.BackgroundColor = Color.White;
- LabelsListView.Size2D = new Size2D(700, 1200);
-
- //Set linead layout for scrollable widget
- LinearLayout scrollLayout = new LinearLayout();
- scrollLayout.LinearOrientation = LinearLayout.Orientation.Vertical;
- scrollLayout.LinearAlignment = LinearLayout.Alignment.Center;
- scrollLayout.CellPadding = new Size2D(5, 5);
- LabelsListView.Layout = scrollLayout;
- LabelsListView.ScrollDuration = ScrollTime;
- this.Add(LabelsListView);
-
var items = new ListItemTitleView[TestItems];
for (int i = 0; i < TestItems; i++) {
items[i] = new ListItemTitleView("item: " + i.ToString());
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- public partial class ListItemTitleSwitch : View
- {
- public ListItemTitleSwitch(string title)
- {
- InitializeComponent();
- TextLabelTitle.Text = title;
- ListItemSwitch.IsSelected = true;
-
- LinearLayout itemLayout = new LinearLayout();
- itemLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- itemLayout.LinearAlignment = LinearLayout.Alignment.Center;
- itemLayout.Padding = new Extents(5, 5, 5, 5);
- itemLayout.CellPadding = new Size2D(100, 10);
- this.Layout = itemLayout;
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- public partial class PerformanceTest2Page : View
- {
- private int TestItems = 50;
- private int ScrollTime = 5000;
-
- public PerformanceTest2Page()
- {
- InitializeComponent();
-
- //Application Linear Layout
- LinearLayout layout = new LinearLayout();
- layout.LinearOrientation = LinearLayout.Orientation.Vertical;
- layout.LinearAlignment = LinearLayout.Alignment.Center;
- layout.Padding = new Extents(5, 5, 5, 5);
- layout.CellPadding = new Size2D(5, 5);
-
- this.Layout = layout;
- StartButton.Clicked += OnButtonScrollClicked;
-
- //Create List for Labels
- LabelsListView = new ScrollableBase();
- LabelsListView.BackgroundColor = Color.White;
- LabelsListView.Size2D = new Size2D(700, 1200);
-
- //Set linead layout for scrollable widget
- LinearLayout scrollLayout = new LinearLayout();
- scrollLayout.LinearOrientation = LinearLayout.Orientation.Vertical;
- scrollLayout.LinearAlignment = LinearLayout.Alignment.Center;
- scrollLayout.CellPadding = new Size2D(5, 5);
- LabelsListView.Layout = scrollLayout;
- LabelsListView.ScrollDuration = ScrollTime;
- this.Add(LabelsListView);
-
- var items = new ListItemTitleSwitch[TestItems];
- for (int i = 0; i < TestItems; i++) {
- items[i] = new ListItemTitleSwitch("item: " + i.ToString());
- LabelsListView.Add(items[i]);
- }
- }
-
- private void OnButtonScrollClicked(object sender, ClickedEventArgs args)
- {
- LabelsListView.ScrollToIndex(49);
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- public partial class ListItemTitleView : View
- {
- public ListItemTitleView(string title)
- {
- InitializeComponent();
- TextLabelTitle.Text = title;
-
- LinearLayout itemLayout = new LinearLayout();
- itemLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
- itemLayout.LinearAlignment = LinearLayout.Alignment.Center;
- itemLayout.Padding = new Extents(5, 5, 5, 5);
- itemLayout.CellPadding = new Size2D(100, 10);
- this.Layout = itemLayout;
- }
- }
-}
internal class PickerTest1 : IExample
{
private Window window;
- private PickerTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new PickerTest1Page();
-
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new PickerTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.PickerTest1Page"
+<ContentPage x:Class="NUITizenGallery.PickerTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="PickerTest1Page"/>
- </comp:ContentPage.AppBar>
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PickerTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ContentPage.Content>
- <base:View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
<View.Layout>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="30,30"/>
</View.Layout>
- <base:TextLabel x:Name="text1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ <TextLabel x:Name="text1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="100"
HorizontalAlignment="Center"
VerticalAlignment="Center"
PointSize="20"
Text="Black"
/>
- <base:View x:Name="rect1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ <View x:Name="rect1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="80"
BackgroundColor="#000000"
/>
- <comp:Picker x:Name="picker1"
+ <Picker x:Name="picker1"
WidthSpecification="300"
MinValue="0"
MaxValue="6"
/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class PinchGestureTest1 : IExample
{
private Window window;
- private PinchGestureTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new PinchGestureTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new PinchGestureTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.PinchGestureTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="PinchGestureTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="60,60"/>
+ </View.Layout>
+
+ <View x:Name="imageBox" BackgroundColor="White">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ProgressbarTest1 : IExample
{
Window window;
- ProgressbarTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new ProgressbarTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ProgressbarTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ProgressbarTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ProgressbarTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="10,20"/>
+ </View.Layout>
+
+ <Progress x:Name="TestProgress"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CurrentValue="50"/>
+ <Slider x:Name="TestSlider"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CurrentValue="50"
+ ValueChanged="OnValueChanged"/>
+ <Button x:Name="AnimateButton"
+ Text="Animate"
+ Clicked="OnAnimateButtonClicked"/>
+ <Button x:Name="ChangeColorButton"
+ Text="ChangeColor"
+ Clicked="OnChangeColorButtonClicked"/>
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
\ No newline at end of file
namespace NUITizenGallery
{
- public partial class ProgressbarTest1Page : View
+ public partial class ProgressbarTest1Page : ContentPage
{
List<Color> colorlist = new List<Color> { Color.Red, Color.Green, Color.Blue, Color.Yellow, };
int colorIndex = 0;
public ProgressbarTest1Page()
{
InitializeComponent();
-
- ChangeColorButton.Clicked += OnChangeColorButtonClicked;
- AnimateButton.Clicked += OnAnimateButtonClicked;
-
- TestSlider.ValueChanged += OnValueChanged;
- TestSlider.CurrentValue = 50.0f;
- TestProgress.CurrentValue = 50.0f;
}
private void OnChangeColorButtonClicked(object sender, ClickedEventArgs args)
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class RecalculateTest1 : IExample
{
private Window window;
- private RecalculateTest1Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new RecalculateTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new RecalculateTest1Page());
}
public void Deactivate()
{
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.RecalculateTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="RecalculateTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <View x:Name="lblView">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <TextLabel Text="abc1" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc2" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc3" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc4" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc5" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc6" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc7" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc8" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc9" CellHorizontalAlignment="Center"/>
+ <TextLabel Text="abc0" CellHorizontalAlignment="Center"/>
+ </View>
+ <Button x:Name="btn1"
+ Text="clear"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ CellHorizontalAlignment="Center"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
namespace NUITizenGallery
{
- public partial class RecalculateTest1Page : View
+ public partial class RecalculateTest1Page : ContentPage
{
public RecalculateTest1Page()
{
internal class RefreshViewTest1 : IExample
{
private Window window;
- private RefreshViewTest1Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new RefreshViewTest1Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new RefreshViewTest1Page());
}
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null; ;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.RefreshViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="RefreshViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <Button x:Name="btn1" Text="Change"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100" CellHorizontalAlignment="Left"/>
+ <View x:Name="lblView">
+ <ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class RotationTest1 : IExample
{
private Window window;
- private RotationTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new RotationTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new RotationTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.RotationTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="RotationTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <Button x:Name="btn"
+ Size2D="600, 100"
+ Text="WOW!!"
+ CellHorizontalAlignment="Center"
+ CellVerticalAlignment="Center"/>
+ <View x:Name="rect"
+ Size2D="600, 100"
+ BackgroundColor="Blue"
+ CellHorizontalAlignment="Center"
+ CellVerticalAlignment="Center" />
+ <ImageView x:Name="img"
+ CellHorizontalAlignment="Center"
+ CellVerticalAlignment="Center"/>
+ <TextLabel x:Name="label"
+ Text="Rotation"
+ CellHorizontalAlignment="Center"
+ CellVerticalAlignment="Center"/>
+ <TextLabel Text="X:"/>
+ <Slider x:Name="sliderX"
+ Size2D="600, 50"
+ MinValue="0"
+ MaxValue="180"
+ BgTrackColor="#b1b1b1"
+ SlidedTrackColor="#3db9cc"
+ TrackThickness="5" />
+ <TextLabel Text="Y:"/>
+ <Slider x:Name="sliderY"
+ Size2D="600, 50"
+ MinValue="0"
+ MaxValue="180"
+ BgTrackColor="#b1b1b1"
+ SlidedTrackColor="#3db9cc"
+ TrackThickness="5"/>
+ <TextLabel Text="Z:"/>
+ <Slider x:Name="sliderZ"
+ Size2D="600, 50"
+ MinValue="0"
+ MaxValue="180"
+ BgTrackColor="#b1b1b1"
+ SlidedTrackColor="#3db9cc"
+ TrackThickness="5"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
\ No newline at end of file
namespace NUITizenGallery
{
- public partial class RotationTest1Page : View
+ public partial class RotationTest1Page : ContentPage
{
private readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/";
public RotationTest1Page()
internal class ScaleTest1 : IExample
{
Window window;
- ScaleTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new ScaleTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ScaleTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScaleTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScaleTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical"/>
+ </View.Layout>
+
+ <Button x:Name="ScaleButton" Text="Wow!!!"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class ScaleTest1Page : View
+ public partial class ScaleTest1Page : ContentPage
{
private Vector3[] Scales = {
new Vector3(1.0f, 1.0f, 1.0f),
internal class ScaleTest2 : IExample
{
Window window;
- ScaleTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new ScaleTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ScaleTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScaleTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScaleTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="0,10"/>
+ </View.Layout>
+
+ <Button x:Name="ScaleChangeButton" Text="Scale the bottom button"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="50" />
+ <Button x:Name="ScaleButton" Text="Scale me"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="50" />
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class ScaleTest2Page : View
+ public partial class ScaleTest2Page : ContentPage
{
private Vector3[] Scales = {
new Vector3(1.0f, 1.0f, 1.0f),
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ScrollViewTest1 : IExample
{
private Window window;
- private ScrollViewTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ScrollViewTest1Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ScrollViewTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <View x:Name="lblView">
+ <ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="CenterHorizontal"/>
+ </ScrollableBase.Layout>
+
+ <Button x:Name="btn" Text="Test ScrollTo" Size2D="700,100" />
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class ScrollViewTest1Page : View
+ public partial class ScrollViewTest1Page : ContentPage
{
public ScrollViewTest1Page()
{
<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ScrollViewTest2Page"
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
ParentOrigin="Center"
PivotPoint="Center">
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest2"/>
- </comp:ContentPage.AppBar>
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest2Page"/>
+ </ContentPage.AppBar>
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <ContentPage.Content>
+ <View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <base:View.Layout>
+ <View.Layout>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
+ </View.Layout>
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Horizontal" HideScrollbar="false" >
- <comp:ScrollableBase.Layout>
+ <View x:Name="lblView">
+ <ScrollableBase x:Name="Scroller" ScrollingDirection="Horizontal" HideScrollbar="false" >
+ <ScrollableBase.Layout>
<LinearLayout LinearOrientation="Horizontal" CellPadding="10, 10"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+ </ScrollableBase.Layout>
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
internal class ScrollViewTest3 : IExample
{
private Window window;
- private ScrollViewTest3Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new ScrollViewTest3Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new ScrollViewTest3Page());
}
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null; ;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <TextLabel x:Name="scrollInfo" Text="scroll X:0, Y:0" Size2D="700,70" />
+ <View x:Name="lblView">
+ <ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
+ </ScrollableBase.Layout>
+
+ <Button x:Name="btn" Text="Test ScrollTo" Size2D="240,100" />
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <TextLabel x:Name="scrollInfo"
+ Text="scroll X:0, Y:0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="70" />
+ <Button x:Name="btn"
+ Text="change"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100" />
+ <View x:Name="lblView">
+ <ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
internal class ScrollViewTest6 : IExample
{
private Window window;
- private ScrollViewTest6Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new ScrollViewTest6Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new ScrollViewTest6Page());
}
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest6Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest6Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <ScrollableBase x:Name="ScrollAreaMain"
+ HideScrollbar="True"
+ ScrollingDirection="Vertical"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="Begin"/>
+ </ScrollableBase.Layout>
+
+ <ScrollableBase x:Name="ScrollArea"
+ HideScrollbar="True" ScrollingDirection="Horizontal" >
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="Begin"/>
+ </ScrollableBase.Layout>
+
+ <TextLabel x:Name="txtLbl1"
+ Text="This is what a ScrollView widget looks like."
+ TextColor="Blue"
+ CellHorizontalAlignment="Left"/>
+ <TextLabel x:Name="txtLbl2"
+ Text="Please use the widgets to test ScrollView's behavior."
+ TextColor="Green"
+ CellHorizontalAlignment="Left" />
+ <TextLabel x:Name="txtLbl3"
+ Text="This is long horizontal text."
+ TextColor="Cyan"
+ CellHorizontalAlignment="Left"
+ FontSizeScale="0.8"/>
+ </ScrollableBase>
+ <TextLabel x:Name="widthLbl"
+ Text="Width:400.00"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <Slider x:Name="slider1"
+ MinValue="50"
+ MaxValue="800"
+ CurrentValue="400"
+ HeightSpecification="50"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ <TextLabel x:Name="heightLbl"
+ Text="Height:300.00"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <Slider x:Name="slider2"
+ MinValue="50"
+ MaxValue="600"
+ CurrentValue="400"
+ HeightSpecification="50"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
+ <Button x:Name="btn1"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Add more horizontal text"/>
+ <Button x:Name="btn2"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Add more vertical text"/>
+ <Button x:Name="btn3"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Remove more vertical text"/>
+ <TextLabel x:Name="scrollLbl"
+ Text="ScrollX: 0, ScrollY: 0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <Button x:Name="btn4"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Async scroll to (0, 0) without animation"/>
+ <Button x:Name="btn5"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Async scroll to (0, 0) with animation"/>
+ <TextLabel x:Name="orientLbl"
+ Text="Orientation: Horizontal"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <Button x:Name="btn6"
+ HeightSpecification="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Set Orientation to Vertical"/>
+ </ScrollableBase>
+ </ContentPage.Content>
+</ContentPage>
internal class ScrollViewTest7 : IExample
{
private Window window;
- private ScrollViewTest7Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new ScrollViewTest7Page();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new ScrollViewTest7Page());
}
public void Deactivate()
{
window.GetDefaultNavigator().Pop();
- page = null; ;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ScrollViewTest7Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ScrollViewTest7Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
+ </View.Layout>
+
+ <TextLabel x:Name="scrollInfo"
+ Text="scroll X:0, Y:0"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="70"/>
+ <Button x:Name="btn"
+ Text="Random vertical scroll"
+ Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }"
+ HeightSpecification="100"/>
+ <ScrollableBase x:Name="Scroller"
+ ScrollingDirection="Vertical"
+ HideScrollbar="false"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
+ </ScrollableBase.Layout>
+
+ </ScrollableBase>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
internal class SetColorTest : IExample
{
Window window;
- SetColorTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new SetColorTestPage();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new SetColorTestPage());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SetColorTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SetColorTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="5,5" />
+ </View.Layout>
+
+ <Button x:Name="ChangeColorButton" Text="ChangeColor"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ <TextLabel x:Name="ButtonColorName" Text="" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}" MultiLine="true"/>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="50,0"/>
+ </View.Layout>
+
+ <CheckBox x:Name="CheckBox1" Size2D="30,30" IsSelected="false"/>
+ <CheckBox x:Name="CheckBox2" Size2D="30,30" IsSelected="true"/>
+ </View>
+ <TextLabel x:Name="CheckBoxColorName"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ MultiLine="true"/>
+ <Progress x:Name="ProgressBar"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ CurrentValue="50.0"/>
+ <TextLabel x:Name="ProgressBarColorName"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ MultiLine="true"/>
+ <View WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" CellPadding="50,0"/>
+ </View.Layout>
+
+ <RadioButton x:Name="RadioButton1" Size2D="30,30" IsSelected="false"/>
+ <RadioButton x:Name="RadioButton2" Size2D="30,30" IsSelected="true"/>
+ </View>
+ <TextLabel x:Name="RadioColorName"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="120"
+ MultiLine="true"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class ShadowFrameTest1 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new ShadowFrameTest1Page());
+
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ShadowFrameTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ShadowFrameTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placdeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#fcedf0"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View
+ x:Name="UpperView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View x:Name="target"
+ Size2D="125,100"
+ BackgroundColor="#ffffff"
+ BorderlineWidth="10"
+ BorderlineColor="#fac07f"
+ BorderlineOffset="0"
+ CornerRadiusPolicy="Relative"
+ CornerRadius="0.25, 0.25, 0.25, 0.25"
+ BoxShadow = "10.0 | #00000030 | -20, 20"
+ />
+ </View>
+ <View
+ x:Name="BelowView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ >
+ <ScrollableBase
+ x:Name="Scroller"
+ ScrollingDirection="Vertical"
+ HideScrollbar="false"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ >
+ <ScrollableBase.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="Begin"/>
+ </ScrollableBase.Layout>
+
+ <!-- Corner Radius -->
+ <View
+ x:Name="CornerRadiusView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="CornerRadiusViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="CornerRadius"
+ />
+ <View
+ x:Name="CornerRadiusViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="CornerRadiusView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="CornerTopLeftT"
+ Weight = "0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Top L : "
+ />
+ <Slider x:Name="CornerTopLeft"
+ MinValue="0"
+ MaxValue="0.5"
+ CurrentValue="0.25"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="CornerTopRightT"
+ Weight = "0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Top R : "
+ />
+ <Slider x:Name="CornerTopRight"
+ MinValue="0"
+ MaxValue="0.5"
+ CurrentValue="0.25"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ <View
+ x:Name="CornerRadiusView2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="CornerBottomLeftT"
+ Weight = "0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Bot L : "
+ />
+ <Slider x:Name="CornerBottomLeft"
+ MinValue="0"
+ MaxValue="0.5"
+ CurrentValue="0.25"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="CornerBottomRightT"
+ Weight = "0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Bot R : "
+ />
+ <Slider x:Name="CornerBottomRight"
+ MinValue="0"
+ MaxValue="0.5"
+ CurrentValue="0.25"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ </View>
+ </View>
+
+ <!-- Shadow Offset -->
+ <View
+ x:Name="ShadowOffsetView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowOffsetViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="ShadowOffset"
+ />
+ <View
+ x:Name="ShadowOffsetViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="ShadowOffsetView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowOffsetXT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Off X : "
+ />
+ <Slider x:Name="ShadowOffsetX"
+ MinValue="-40"
+ MaxValue="40"
+ CurrentValue="-20"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ShadowOffsetYT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Off Y : "
+ />
+ <Slider x:Name="ShadowOffsetY"
+ MinValue="-30"
+ MaxValue="30"
+ CurrentValue="20"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ </View>
+ </View>
+
+ <!-- Shadow Toggle -->
+ <View
+ x:Name="ShadowToggleView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowToggleViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="ShadowOpacity/BlurRadius"
+ />
+ <View
+ x:Name="ShadowToggleViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="ShadowToggleView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowOpacityT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Opacity"
+ />
+ <Slider x:Name="ShadowOpacity"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="48"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ShadowBlurRadiusT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Blur R"
+ />
+ <Slider x:Name="ShadowBlurRadius"
+ MinValue="0"
+ MaxValue="50"
+ CurrentValue="10"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+
+ <View
+ x:Name="ShadowToggleView2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowToggleButtonT"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Toggle HasShadow:"
+ />
+ <CheckBox x:Name="ShadowToggleButton"
+ IsSelected="True"
+ />
+ </View>
+ </View>
+ </View>
+
+ <!-- Shadow Color -->
+ <View
+ x:Name="ShadowColorView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowColorViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="ShadowColor"
+ />
+ <View
+ x:Name="ShadowColorViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="ShadowColorView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ShadowColorRedT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#ef1010"
+ Text="R:"
+ />
+ <Slider x:Name="ShadowColorRed"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="0"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ShadowColorGreenT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#10ef10"
+ Text="G:"
+ />
+ <Slider x:Name="ShadowColorGreen"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="0"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ShadowColorBlueT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#1010ef"
+ Text="B:"
+ />
+ <Slider x:Name="ShadowColorBlue"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="0"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ </View>
+ </View>
+
+ <!-- Borderline Control -->
+ <View
+ x:Name="BorderlineView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="BorderlineViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="BorderlineWidth/Offset/Color"
+ />
+ <View
+ x:Name="BorderlineViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="BorderlineView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="BorderlineWidthT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Width : "
+ />
+ <Slider x:Name="BorderlineWidthSlider"
+ MinValue="0"
+ MaxValue="50"
+ CurrentValue="10"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="BorderlineOffsetT"
+ Weight="0.15"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ Text="Offset : "
+ />
+ <Slider x:Name="BorderlineOffsetSlider"
+ MinValue="-1"
+ MaxValue="1"
+ CurrentValue="0"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+
+ <View
+ x:Name="BorderlineView2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="BorderlineRedT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#ef1010"
+ Text="R:"
+ />
+ <Slider x:Name="BorderlineRed"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="250"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="BorderlineGreenT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#10ef10"
+ Text="G:"
+ />
+ <Slider x:Name="BorderlineGreen"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="192"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+
+ <View
+ x:Name="BorderlineView3"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="BorderlineBlueT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#1010ef"
+ Text="B:"
+ />
+ <Slider x:Name="BorderlineBlue"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="127"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="BorderlineAlphaT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#101010"
+ Text="A:"
+ />
+ <Slider x:Name="BorderlineAlpha"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="255"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ </View>
+ </View>
+
+ <!-- View Control -->
+ <View
+ x:Name="TargetColorView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="TargetColorViewHeader"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ PixelSize="32"
+ TextColor="#fe7c57"
+ Text="ViewBackgroundColor"
+ />
+ <View
+ x:Name="TargetColorViewContent"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="5,5"/>
+ </View.Layout>
+
+ <View
+ x:Name="TargetColorView1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ViewRedT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#ef1010"
+ Text="R:"
+ />
+ <Slider x:Name="ViewRed"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="255"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ViewGreenT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#10ef10"
+ Text="G:"
+ />
+ <Slider x:Name="ViewGreen"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="255"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+
+ <View
+ x:Name="TargetColorView2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
+ >
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="5,5"/>
+ </View.Layout>
+
+ <TextLabel
+ x:Name="ViewBlueT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#1010ef"
+ Text="B:"
+ />
+ <Slider x:Name="ViewBlue"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="255"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ <TextLabel
+ x:Name="ViewAlphaT"
+ Weight="0.05"
+ PixelSize="20"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
+ TextColor="#101010"
+ Text="A:"
+ />
+ <Slider x:Name="ViewAlpha"
+ MinValue="0"
+ MaxValue="255"
+ CurrentValue="255"
+ ThumbSize="8,8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ />
+ </View>
+ </View>
+ </View>
+ </ScrollableBase>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
--- /dev/null
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ public partial class ShadowFrameTest1Page : ContentPage
+ {
+ private bool shadowToggleShow; // true if we show shadow
+ private Shadow CreateShadowFromeSliders()
+ {
+ return new Shadow
+ (
+ ShadowBlurRadius.CurrentValue,
+ new Color(
+ ShadowColorRed.CurrentValue / 255.0f,
+ ShadowColorGreen.CurrentValue / 255.0f,
+ ShadowColorBlue.CurrentValue / 255.0f,
+ ShadowOpacity.CurrentValue / 255.0f),
+ new Vector2(
+ ShadowOffsetX.CurrentValue,
+ ShadowOffsetY.CurrentValue)
+ );
+ }
+ public ShadowFrameTest1Page()
+ {
+ InitializeComponent();
+ shadowToggleShow = true;
+
+ // CornerRadius
+ CornerTopLeft.ValueChanged += (o, e) =>
+ {
+ Vector4 currentCornerRadius = target.CornerRadius;
+ target.CornerRadius = new Vector4(CornerTopLeft.CurrentValue, currentCornerRadius.Y, currentCornerRadius.Z, currentCornerRadius.W);
+ };
+ CornerTopRight.ValueChanged += (o, e) =>
+ {
+ Vector4 currentCornerRadius = target.CornerRadius;
+ target.CornerRadius = new Vector4(currentCornerRadius.X, CornerTopRight.CurrentValue, currentCornerRadius.Z, currentCornerRadius.W);
+ };
+ CornerBottomRight.ValueChanged += (o, e) =>
+ {
+ Vector4 currentCornerRadius = target.CornerRadius;
+ target.CornerRadius = new Vector4(currentCornerRadius.X, currentCornerRadius.Y, CornerBottomRight.CurrentValue, currentCornerRadius.W);
+ };
+ CornerBottomLeft.ValueChanged += (o, e) =>
+ {
+ Vector4 currentCornerRadius = target.CornerRadius;
+ target.CornerRadius = new Vector4(currentCornerRadius.X, currentCornerRadius.Y, currentCornerRadius.Z, CornerBottomLeft.CurrentValue);
+ };
+
+ // Borderline Width/Offset
+ BorderlineWidthSlider.ValueChanged += (o, e) =>
+ {
+ target.BorderlineWidth = BorderlineWidthSlider.CurrentValue;
+ };
+ BorderlineOffsetSlider.ValueChanged += (o, e) =>
+ {
+ target.BorderlineOffset = BorderlineOffsetSlider.CurrentValue;
+ };
+
+ // Borderline Color
+ BorderlineRed.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BorderlineColor;
+ target.BorderlineColor = new Color(BorderlineRed.CurrentValue / 255.0f, currentColor.G, currentColor.B, currentColor.A);
+ };
+ BorderlineGreen.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BorderlineColor;
+ target.BorderlineColor = new Color(currentColor.R, BorderlineGreen.CurrentValue / 255.0f, currentColor.B, currentColor.A);
+ };
+ BorderlineBlue.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BorderlineColor;
+ target.BorderlineColor = new Color(currentColor.R, currentColor.G, BorderlineBlue.CurrentValue / 255.0f, currentColor.A);
+ };
+ BorderlineAlpha.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BorderlineColor;
+ target.BorderlineColor = new Color(currentColor.R, currentColor.G, currentColor.B, BorderlineAlpha.CurrentValue / 255.0f);
+ };
+
+ // Background Color
+ ViewRed.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BackgroundColor;
+ target.BackgroundColor = new Color(ViewRed.CurrentValue / 255.0f, currentColor.G, currentColor.B, currentColor.A);
+ };
+ ViewGreen.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BackgroundColor;
+ target.BackgroundColor = new Color(currentColor.R, ViewGreen.CurrentValue / 255.0f, currentColor.B, currentColor.A);
+ };
+ ViewBlue.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BackgroundColor;
+ target.BackgroundColor = new Color(currentColor.R, currentColor.G, ViewBlue.CurrentValue / 255.0f, currentColor.A);
+ };
+ ViewAlpha.ValueChanged += (o, e) =>
+ {
+ Color currentColor = target.BackgroundColor;
+ target.BackgroundColor = new Color(currentColor.R, currentColor.G, currentColor.B, ViewAlpha.CurrentValue / 255.0f);
+ };
+
+ // Shadow Toggle
+ ShadowToggleButton.Clicked += (o, e) =>
+ {
+ if(ShadowToggleButton.IsSelected)
+ {
+ shadowToggleShow = true;
+ }
+ else
+ {
+ shadowToggleShow = false;
+ }
+
+ if(shadowToggleShow)
+ {
+ if(target.BoxShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ }
+ }
+ else
+ {
+ if(target.BoxShadow != null)
+ {
+ target.BoxShadow = null;
+ }
+ }
+ };
+ // Shadow Offset
+ ShadowOffsetX.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Vector2 currentOffset = currentShadow.Offset;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, currentShadow.Color, new Vector2(ShadowOffsetX.CurrentValue, currentOffset.Y));
+ };
+ ShadowOffsetY.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Vector2 currentOffset = currentShadow.Offset;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, currentShadow.Color, new Vector2(currentOffset.X, ShadowOffsetY.CurrentValue));
+ };
+
+ // Shadow Color
+ ShadowColorRed.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Color currentColor = currentShadow.Color;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, new Color(ShadowColorRed.CurrentValue / 255.0f, currentColor.G, currentColor.B, currentColor.A), currentShadow.Offset);
+ };
+ ShadowColorGreen.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Color currentColor = currentShadow.Color;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, new Color(currentColor.R, ShadowColorGreen.CurrentValue / 255.0f, currentColor.B, currentColor.A), currentShadow.Offset);
+ };
+ ShadowColorBlue.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Color currentColor = currentShadow.Color;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, new Color(currentColor.R, currentColor.G, ShadowColorBlue.CurrentValue / 255.0f, currentColor.A), currentShadow.Offset);
+ };
+ ShadowOpacity.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ Color currentColor = currentShadow.Color;
+ target.BoxShadow = new Shadow(currentShadow.BlurRadius, new Color(currentColor.R, currentColor.G, currentColor.B, ShadowOpacity.CurrentValue / 255.0f), currentShadow.Offset);
+ };
+ // Shadow Radius
+ ShadowBlurRadius.ValueChanged += (o, e) =>
+ {
+ if(!shadowToggleShow) return;
+ Shadow currentShadow = target.BoxShadow;
+ if(currentShadow == null)
+ {
+ target.BoxShadow = CreateShadowFromeSliders();
+ return;
+ }
+ float currentRadius = ShadowBlurRadius.CurrentValue;
+ target.BoxShadow = new Shadow(currentRadius, currentShadow.Color, currentShadow.Offset);
+ };
+ }
+ }
+}
\ No newline at end of file
internal class SimpleTest : IExample
{
Window window;
- SimpleTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
-
- page = new SimpleTestPage();
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new SimpleTestPage());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SimpleTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SimpleTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="10,10" />
+ </View.Layout>
+
+ <TextLabel x:Name="CounterViewer"
+ Text="aaaaaaaaaa aaaaaa aaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaa"
+ Size2D="320, 100"
+ MultiLine="true"/>
+ <Button x:Name="CounterButton"
+ Text="Click Me!"
+ WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class SliderTest1 : IExample
{
private Window window;
- private SliderTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new SliderTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new SliderTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SliderTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SliderTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="8"
+ Text="slider value: 50.0"/>
+ <Slider x:Name="slider1"
+ MinValue="0"
+ MaxValue="100"
+ CurrentValue="50"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ TrackThickness="5"
+ BgTrackColor="#b1b1b1"
+ SlidedTrackColor="#3db9cc"/>
+ <View x:Name="innerView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="20,20"/>
+ </View.Layout>
+
+ <Button x:Name="button1"
+ SizeHeight="100"
+ BackgroundColor="#3db9cc"
+ PointSize="6"
+ Text="increment"
+ Weight="0.5"/>
+ <Button x:Name="button2"
+ SizeHeight="100"
+ BackgroundColor="#3db9cc"
+ PointSize="6"
+ Text="decrement"
+ Weight="0.5"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class SliderTest1Page : View
+ public partial class SliderTest1Page : ContentPage
{
public SliderTest1Page()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class SliderTest2 : IExample
{
private Window window;
- private SliderTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new SliderTest2Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new SliderTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SliderTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SliderTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="8"
+ Text="slider value: 50.0"/>
+ <Slider x:Name="slider1"
+ MinValue="0"
+ MaxValue="100"
+ CurrentValue="50"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ TrackThickness="5"
+ BgTrackColor="#b1b1b1"
+ SlidedTrackColor="#3db9cc"
+ Direction="Horizontal"/>
+ <Button x:Name="button1"
+ SizeHeight="100"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#3db9cc"
+ PointSize="6"
+ Text="Change orientation"/>
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
namespace NUITizenGallery
{
- public partial class SliderTest2Page : View
+ public partial class SliderTest2Page : ContentPage
{
float saveHeight = 0;
public SliderTest2Page()
<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.StackInGridTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar Title="StackInGridTest1"/>
+ <AppBar x:Name="appBar" Title="StackInGridTest1Page"/>
</ContentPage.AppBar>
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Begin"/>
</View.Layout>
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="700"
Weight="0.25">
GridLayout.ColumnSpan="3"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Green"
GridLayout.Row="1"
GridLayout.Column="0"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Blue"
GridLayout.Row="1"
GridLayout.Column="1"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Yellow"
GridLayout.Row="2"
GridLayout.Column="0"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Cyan"
GridLayout.Row="2"
GridLayout.Column="1"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Red"
GridLayout.Row="1"
GridLayout.Column="2"
GridLayout.RowSpan="2"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Blue"
GridLayout.Row="3"
GridLayout.Column="0"
GridLayout.ColumnSpan="2"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Green"
GridLayout.Row="3"
GridLayout.Column="2"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
</View>
-
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="700"
Weight="0.25">
GridLayout.ColumnSpan="3"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Green"
GridLayout.Row="1"
GridLayout.Column="0"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Blue"
GridLayout.Row="1"
GridLayout.Column="1"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Yellow"
GridLayout.Row="2"
GridLayout.Column="0"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Cyan"
GridLayout.Row="2"
GridLayout.Column="1"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Red"
GridLayout.Row="1"
GridLayout.Column="2"
GridLayout.RowSpan="2"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Blue"
GridLayout.Row="3"
GridLayout.Column="0"
GridLayout.ColumnSpan="2"
GridLayout.VerticalStretch="ExpandAndFill"
GridLayout.HorizontalStretch="ExpandAndFill"/>
-
<View BackgroundColor="Green"
GridLayout.Row="3"
GridLayout.Column="2"
</View>
<TextLabel Weight="0.25"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
Text="Third Row - I'm on left"
MultiLine="True"/>
-
<TextLabel Weight="0.25"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
Text="Fourth Row - I'm on right"
MultiLine="True"/>
</View>
-
</ContentPage.Content>
-
</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest1 : IExample
- {
- private Window window;
- private StackLayoutTest1Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest1Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest2 : IExample
- {
- private Window window;
- private StackLayoutTest2Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest2Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-
-namespace NUITizenGallery
-{
- public partial class StackLayoutTest2Page : View
- {
- public StackLayoutTest2Page()
- {
- InitializeComponent();
- }
-
- protected override void Dispose(DisposeTypes type)
- {
- if (Disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- RemoveAllChildren(true);
- }
-
- base.Dispose(type);
- }
-
- private void RemoveAllChildren(bool dispose = false)
- {
- RecursiveRemoveChildren(this, dispose);
- }
-
- private void RecursiveRemoveChildren(View parent, bool dispose)
- {
- if (parent == null)
- {
- return;
- }
-
- int maxChild = (int)parent.ChildCount;
- for (int i = maxChild - 1; i >= 0; --i)
- {
- View child = parent.GetChildAt((uint)i);
- if (child == null)
- {
- continue;
- }
-
- RecursiveRemoveChildren(child, dispose);
- parent.Remove(child);
- if (dispose)
- {
- child.Dispose();
- }
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest3 : IExample
- {
- private Window window;
- private StackLayoutTest3Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest3Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest4 : IExample
- {
- private Window window;
- private StackLayoutTest4Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest4Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest5: IExample
- {
- private Window window;
- private StackLayoutTest5Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest5Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-
-namespace NUITizenGallery
-{
- public partial class StackLayoutTest5Page : View
- {
- public StackLayoutTest5Page()
- {
- InitializeComponent();
- this.Padding = new Extents(20, 20, 20, 20);
- }
-
- protected override void Dispose(DisposeTypes type)
- {
- if (Disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- RemoveAllChildren(true);
- }
-
- base.Dispose(type);
- }
-
- private void RemoveAllChildren(bool dispose = false)
- {
- RecursiveRemoveChildren(this, dispose);
- }
-
- private void RecursiveRemoveChildren(View parent, bool dispose)
- {
- if (parent == null)
- {
- return;
- }
-
- int maxChild = (int)parent.ChildCount;
- for (int i = maxChild - 1; i >= 0; --i)
- {
- View child = parent.GetChildAt((uint)i);
- if (child == null)
- {
- continue;
- }
-
- RecursiveRemoveChildren(child, dispose);
- parent.Remove(child);
- if (dispose)
- {
- child.Dispose();
- }
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest6: IExample
- {
- private Window window;
- private StackLayoutTest6Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest6Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-
-namespace NUITizenGallery
-{
- internal class StackLayoutTest8: IExample
- {
- private Window window;
- private StackLayoutTest8Page page;
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new StackLayoutTest8Page();
-
- window.Add(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
- }
- }
-}
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class SwipeGestureRecognizerTest : IExample
{
private Window window;
- private SwipeGestureRecognizerTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new SwipeGestureRecognizerTestPage();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new SwipeGestureRecognizerTestPage());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SwipeGestureRecognizerTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SwipeGestureRecognizerTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ PointSize="8"
+ Text="SwipeGestureRecognizer" />
+ <TextLabel x:Name="text2"
+ PointSize="8"
+ Text="Swipe across the red area" />
+ <View x:Name="areaView"
+ BackgroundColor="Red"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+
+ </View>
+ </ContentPage.Content>
+</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class SwipeViewTest1 : IExample
{
private Window window;
- private SwipeViewTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new SwipeViewTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new SwipeViewTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SwipeViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SwipeViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View x:Name="table">
+
+ <View.Layout >
+ <GridLayout Columns="3" Rows="4" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ GridLayout.Column="1" GridLayout.Row="0"
+ HorizontalAlignment="Center"
+ PointSize="8"
+ HeightSpecification="70"
+ Text="SwipeGestureRecognizer" />
+ <TextLabel x:Name="text2"
+ GridLayout.Column="1" GridLayout.Row="1"
+ WidthSpecification="200"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <TextLabel x:Name="text3"
+ GridLayout.Column="1" GridLayout.Row="3"
+ WidthSpecification="200"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="8"/>
+ <View x:Name="img1View"
+ GridLayout.Column="0"
+ GridLayout.Row="2"
+ Size2D="100,100">
+ <ImageView x:Name="image1"
+ Size2D="1,1"
+ ResourceUrl="*Resource*/images/tizen.png" />
+ </View>
+ <View x:Name="img2View"
+ GridLayout.Column="2"
+ GridLayout.Row="2"
+ Size2D="100,100">
+ <ImageView x:Name="image2"
+ Size2D="1,1"
+ ResourceUrl="*Resource*/images/tizen.png" />
+ </View>
+ <View x:Name="imgView"
+ BackgroundColor="#ffffff"
+ GridLayout.Column="1"
+ GridLayout.Row="2">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView"
+ Size2D="200,200"
+ ResourceUrl="*Resource*/images/Boston.png" />
+ </View>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
internal class SwipeViewTest2 : IExample
{
private Window window;
- private SwipeViewTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new SwipeViewTest2Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.GetDefaultNavigator().Push(page);
+ window.GetDefaultNavigator().Push(new SwipeViewTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.SwipeViewTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="SwipeViewTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View x:Name="test1" WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <View x:Name="text1BackView"
+ BackgroundColor="#FF8224"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="End" CellPadding="10,10"/>
+ </View.Layout>
+
+ <ImageView x:Name="image1Back"
+ Size2D="70,70"
+ ResourceUrl="*Resource*/images/tizen.png" />
+ </View>
+ <View x:Name="text1View"
+ BackgroundColor="#AE48A0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <TextLabel x:Name="text1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ HeightSpecification="70"
+ PointSize="8"
+ Text="Swipe Left to be invoked" />
+ </View>
+ </View>
+ <View x:Name="test2" WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <View x:Name="text2BackView"
+ BackgroundColor="#FF8224"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <TextLabel x:Name="text2Back"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="End"
+ VerticalAlignment="Center"
+ HeightSpecification="70"
+ PointSize="8"
+ Text="Tizen" />
+ </View>
+ <View x:Name="text2View"
+ BackgroundColor="#AE48A0"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ <TextLabel x:Name="text2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ HeightSpecification="70"
+ PointSize="8"
+ Text="Swipe Left to be execute command" />
+ </View>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
{
Window window;
Navigator navigator;
- TabViewTestPage page;
int pageCount = 0;
public void Activate()
navigator = window.GetDefaultNavigator();
pageCount = navigator.PageCount;
-
- page = new TabViewTestPage();
- navigator.Push(page);
+ navigator.Push(new TabViewTestPage());
}
public void Deactivate()
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TabViewTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TabViewTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <TabView x:Name="tabView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ </TabView>
+ </ContentPage.Content>
+
+</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class TapGestureTest1 : IExample
{
private Window window;
- private TapGestureTest1Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new TapGestureTest1Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new TapGestureTest1Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.TabViewTestPage"
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TapGestureTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="TabViewTestPage1"/>
+ <AppBar x:Name="appBar" Title="TapGestureTest1Page"/>
</ContentPage.AppBar>
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
<TabView x:Name="tabView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
</TabView>
</ContentPage.Content>
-
</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class TapGestureTest2 : IExample
{
private Window window;
- private TapGestureTest2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new TapGestureTest2Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new TapGestureTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TapGestureTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TapGestureTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="20,20,20,20">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ PointSize="8"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ MultiLine="True" />
+ <View x:Name="imgView" BackgroundColor="#ffffff">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
public TapGestureTest2Page()
{
InitializeComponent();
- ContentView.Padding = new Extents(20, 20, 20, 20);
-
initScale = imageView.Scale;
text1.Text = " Tap the image!\n Onte tap: Rotate 45 degrees\n Two taps: Increase scale by 0.5\n Three taps: Reset the image\n";
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class TapGestureTest3 : IExample
{
private Window window;
- private TapGestureTest3Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new TapGestureTest3Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new TapGestureTest3Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TapGestureTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TapGestureTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="20,20,20,20">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <View x:Name="imgView" BackgroundColor="#ffffff">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
+ </View>
+ <TextLabel x:Name="text1"
+ PointSize="8"
+ Text="Tap the photo!" />
+ <Button x:Name="button1"
+ HeightSpecification="70"
+ BackgroundColor="#3db9cc"
+ PointSize="8"
+ Text="Change the number of taps required"/>
+ <TextLabel x:Name="text2"
+ PointSize="8"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
public TapGestureTest3Page()
{
InitializeComponent();
- ContentView.Padding = new Extents(20, 20, 20, 20);
buttonClicked = 0;
tapCount = 0;
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class TapGestureTest4 : IExample
{
private Window window;
- private TapGestureTest4Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new TapGestureTest4Page();
- page.PositionUsesPivotPoint = true;
- page.ParentOrigin = ParentOrigin.Center;
- page.PivotPoint = PivotPoint.Center;
- page.HeightResizePolicy = ResizePolicyType.FillToParent;
- page.WidthResizePolicy = ResizePolicyType.FillToParent;
- window.Add(page);
+ window.GetDefaultNavigator().Push(new TapGestureTest4Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TapGestureTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TapGestureTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Padding="20,20,20,20">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="20,20"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ PointSize="8"
+ MultiLine="True" />
+ <TextLabel x:Name="text2"
+ PointSize="8"
+ TextColor="Red" />
+ <ImageView x:Name="imageView"
+ ResourceUrl="*Resource*/images/Image.png"
+ HeightSpecification="70"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <View x:Name="boxView"
+ BackgroundColor="Green"
+ HeightSpecification="70"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ <Button x:Name="button1"
+ HeightSpecification="70"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ BackgroundColor="#3db9cc"
+ PointSize="8"
+ Text="It's a Button"/>
+ <TextLabel x:Name="label1"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="70"
+ BackgroundColor="Yellow"
+ PointSize="8"
+ Text="It's a Label"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+
public TapGestureTest4Page()
{
InitializeComponent();
- ContentView.Padding = new Extents(20, 20, 20, 20);
text1.Text = " Please tap the following widgets. \n : Image / BoxView / Button / Label";
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class Test1 : IExample
{
private Window window;
- private Test1Page page;
private Animation animation;
+ private Test1Page page;
+ private Navigator navigator;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
+ navigator = window.GetDefaultNavigator();
page = new Test1Page();
-
- window.Add(page);
+ navigator.Push(page);
+ navigator.Popped += PoppedEvent;
animation = new Animation(2000);
animation.AnimateTo(page.test1PageText, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500);
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- animation.Clear();
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
+ }
+
+ void PoppedEvent(object obj, PoppedEventArgs ev)
+ {
+ if (ev.Page == page)
+ {
+ animation.Clear();
+ animation = null;
+ window = null;
+ page.Dispose();
+ page = null;
+ navigator.Popped -= PoppedEvent;
+ navigator = null;
+ }
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.Test1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="Test1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <TextLabel x:Name="test1PageText"
+ Text="Hello NUI XAML !"
+ PositionUsesPivotPoint="True"
+ ParentOrigin="Center"
+ PivotPoint="Center"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="15"
+ TextColor="Cyan"/>
+ </ContentPage.Content>
+</ContentPage>
+
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class Test1Page : View
+ public partial class Test1Page : ContentPage
{
public Test1Page()
{
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class Test2 : IExample
{
Window window;
- Test2Page page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new Test2Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new Test2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.Test2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="Test2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <TextLabel x:Name="test2PageText"
+ Text="Test2Page"
+ Size2D="500,300"
+ Position2D="50,50"
+ PointSize="20"
+ TextColor="Blue"/>
+ </ContentPage.Content>
+</ContentPage>
using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
- public partial class Test2Page : View
+ public partial class Test2Page : ContentPage
{
public Test2Page()
{
{
Window window;
Navigator navigator;
- TextAnchorTestPage page;
int pageCount = 0;
public void Activate()
window = NUIApplication.GetDefaultWindow();
navigator = window.GetDefaultNavigator();
-
pageCount = navigator.PageCount;
-
- page = new TextAnchorTestPage();
- navigator.Push(page);
+ navigator.Push(new TextAnchorTestPage());
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TextAnchorTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TextAnchorTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <TextField x:Name="field"
+ Text="Text Anchor Test"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"/>
+ <TextLabel x:Name="anchorLabel"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"/>
+ <TextField x:Name="anchorField"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"/>
+ <TextEditor x:Name="anchorEditor"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
\ No newline at end of file
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components;
+
namespace NUITizenGallery
{
public partial class TextAnchorTestPage : ContentPage
internal class TimePickerTest : IExample
{
private Window window;
- private TimePickerTestPage page;
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new TimePickerTestPage();
+ window.GetDefaultNavigator().Push(new TimePickerTestPage());
- window.GetDefaultNavigator().Push(page);
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
window.GetDefaultNavigator().Pop();
- page = null;
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.TimePickerTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="TimePickerTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="30,30"/>
+ </View.Layout>
+
+ <TextLabel x:Name="text1"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="100"
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ PointSize="20"/>
+ <Button x:Name="timeButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"
+ Text="Time Picker"
+ PointSize="20"/>
+ <Button x:Name="setNowButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"
+ Text="Set Now Time"
+ PointSize="20"/>
+ <Button x:Name="changePickerStyleButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"
+ Text="Change TimePicker Style"
+ PointSize="20"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class TimerTest1 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new TimerTest1Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.TimerTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
xmlns:vm="clr-namespace:NUITizenGallery.ViewModels"
xmlns:converters="clr-namespace:NUITizenGallery.Converters"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
<ContentPage.AppBar>
- <AppBar Title="TimerTest1Page"/>
+ <AppBar x:Name="appBar" Title="TimerTest1Page"/>
</ContentPage.AppBar>
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
<ContentPage.Content>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
-
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
<View.BindingContext>
<vm:TimerTest1ViewModel x:Name="context"/>
</View.BindingContext>
-
+
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
</View.Layout>
Text="Start"
Command="{Binding StartTimer}"
IsEnabled="{Binding TimerStarted, Converter={Static converters:InverseBoolConverter.Converter}}"/>
-
<Button BindingContext="{Binding Source={x:Reference context}}"
Text="Stop"
Command="{Binding StopTimer}"/>
-
</View>
-
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<TextLabel BindingContext="{Binding Source={x:Reference context}}"
Text="{Binding HoursMinutesSeconds}"/>
-
<TextLabel x:Name="msLabel"
BindingContext="{Binding Source={x:Reference context}}"
Text="{Binding Miliseconds}"/>
-
</View>
-
</View>
-
</ContentPage.Content>
-
</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class TimerTest1 : IExample
- {
- private Window window;
- private TimerTest1Page page;
- private Navigator navigator;
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- page = new TimerTest1Page();
- navigator = window.GetDefaultNavigator();
-
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class ToolbarItemTest1 : IExample
+ {
+ private Window window;
+
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new ToolbarItemTest1Page());
+ }
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.ToolbarItemTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="ToolbarItemTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="CenterHorizontal"/>
+ </View.Layout>
+
+ <TextLabel Text="ToolbarItemTest" />
+ <Button x:Name="addPage1Button"
+ Text="Add Page 1"/>
+ <Button x:Name="addPage2Button"
+ Text="Add Page 2"/>
+ <Button x:Name="addPage3Button"
+ Text="Add Page 3"/>
+ <Button x:Name="addPage4Button"
+ Text="Add Page 4"/>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using Tizen.NUI;
-using Tizen.NUI.Components;
-
-namespace NUITizenGallery
-{
- internal class ToolbarItemTest1 : IExample
- {
- private Window window;
- private ToolbarItemTest1Page page;
- Navigator navigator;
-
-
- public void Activate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
-
- window = NUIApplication.GetDefaultWindow();
- navigator = window.GetDefaultNavigator();
-
- page = new ToolbarItemTest1Page();
- navigator.Push(page);
- }
- public void Deactivate()
- {
- Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- navigator.Pop();
- page = null;
- }
- }
-}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest1 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest1Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <vector:CanvasView x:Name="canvasView"
+ Size="{Binding Source={x:Static Window.Instance}, Path=Size }" />
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest1Page : ContentPage
+ {
+ public VectorGraphicsCanvasViewTest1Page()
+ {
+ InitializeComponent();
+
+ Shape shape1 = new Shape()
+ {
+ FillColor = Color.Green,
+ StrokeColor = new Color(0.5f, 0.0f, 0.0f, 0.5f),
+ StrokeWidth = 10.0f
+ };
+ shape1.Translate(240.0f, 150.0f);
+ shape1.Scale(1.2f);
+ shape1.Rotate(30.0f);
+ shape1.AddRect(-50.0f, -50.0f, 100.0f, 100.0f, 20.0f, 20.0f);
+
+ canvasView.AddDrawable(shape1);
+
+ Shape shape2 = new Shape()
+ {
+ FillColor = Color.Red,
+ StrokeColor = Color.Blue,
+ StrokeWidth = 20.0f,
+ Opacity = 0.5f
+ };
+ shape2.Translate(240.0f, 350.0f);
+ shape2.AddCircle(0.0f, 0.0f, 50.0f, 50.0f);
+
+ canvasView.AddDrawable(shape2);
+
+ Shape shape3 = new Shape()
+ {
+ FillColor = Color.Green,
+ StrokeColor = Color.Cyan,
+ StrokeWidth = 20.0f,
+ };
+ shape3.Translate(240.0f, 550.0f);
+ shape3.Scale(0.5f);
+ shape3.AddMoveTo(-1.0f, -165.0f);
+ shape3.AddLineTo(53.0f, -56.0f);
+ shape3.AddLineTo(174.0f, -39.0f);
+ shape3.AddLineTo(87.0f, 45.0f);
+ shape3.AddLineTo(107.0f, 166.0f);
+ shape3.AddLineTo(-1.0f, 110.0f);
+ shape3.AddLineTo(-103.0f, 166.0f);
+ shape3.AddLineTo(-88.0f, 46.0f);
+ shape3.AddLineTo(-174.0f, -38.0f);
+ shape3.AddLineTo(-54.0f, -56.0f);
+ shape3.Close();
+
+ canvasView.AddDrawable(shape3);
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest2 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest2Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+
+ <vector:CanvasView x:Name="canvasView" Size2D="300,300"/>
+ <vector:CanvasView x:Name="canvasView2" Size2D="300,300"/>
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Collections.Generic;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest2Page : ContentPage
+ {
+ public VectorGraphicsCanvasViewTest2Page()
+ {
+ InitializeComponent();
+
+ Shape canvasView1BackGround = new Shape()
+ {
+ FillColor = Color.Green
+ };
+ canvasView1BackGround.AddRect(0, 0, canvasView.Size.Width, canvasView.Size.Height, 0 ,0);
+ canvasView.AddDrawable(canvasView1BackGround);
+
+
+ LinearGradient shape1FillLinearGradient = new LinearGradient()
+ {
+ ColorStops = new List<ColorStop>()
+ {
+ new ColorStop(0.0f, Color.Red),
+ new ColorStop(0.5f, Color.Green),
+ new ColorStop(1.0f, Color.Blue)
+ }.AsReadOnly()
+ };
+ shape1FillLinearGradient.SetBounds(new Position2D(-50, -50), new Position2D(50, 50));
+
+ LinearGradient shape1StrokeLinearGradient = new LinearGradient()
+ {
+ ColorStops = new List<ColorStop>()
+ {
+ new ColorStop(0.0f, Color.Magenta),
+ new ColorStop(1.0f, Color.Cyan)
+ }.AsReadOnly()
+ };
+ shape1StrokeLinearGradient.SetBounds(new Position2D(0, -50), new Position2D(50, 50));
+
+ Shape shape1 = new Shape()
+ {
+ StrokeWidth = 30.0f,
+ FillGradient = shape1FillLinearGradient,
+ StrokeGradient = shape1StrokeLinearGradient,
+ };
+
+ shape1.Translate(150.0f, 150.0f);
+ shape1.Scale(0.8f);
+ shape1.AddMoveTo(-1.0f, -165.0f);
+ shape1.AddLineTo(53.0f, -56.0f);
+ shape1.AddLineTo(174.0f, -39.0f);
+ shape1.AddLineTo(87.0f, 45.0f);
+ shape1.AddLineTo(107.0f, 166.0f);
+ shape1.AddLineTo(-1.0f, 110.0f);
+ shape1.AddLineTo(-103.0f, 166.0f);
+ shape1.AddLineTo(-88.0f, 46.0f);
+ shape1.AddLineTo(-174.0f, -38.0f);
+ shape1.AddLineTo(-54.0f, -56.0f);
+ shape1.Close();
+
+ canvasView.AddDrawable(shape1);
+
+
+ Shape canvasView2BackGround = new Shape()
+ {
+ FillColor = Color.Blue,
+ Opacity=0.5f
+ };
+ canvasView2BackGround.AddRect(0, 0, canvasView.Size.Width, canvasView.Size.Height, 0 ,0);
+ canvasView2.AddDrawable(canvasView2BackGround);
+
+ RadialGradient shape2FillRadialGradient = new RadialGradient()
+ {
+ ColorStops = new List<ColorStop>()
+ {
+ new ColorStop(0.0f, Color.Red),
+ new ColorStop(0.5f, Color.Green),
+ new ColorStop(1.0f, Color.Blue)
+ }.AsReadOnly(),
+ Spread = SpreadType.Reflect
+
+ };
+ shape2FillRadialGradient.SetBounds(new Position2D(0, 0), 50);
+
+ RadialGradient shape2StrokeRadialGradient = new RadialGradient()
+ {
+ ColorStops = new List<ColorStop>()
+ {
+ new ColorStop(0.0f, Color.Magenta),
+ new ColorStop(1.0f, Color.Cyan)
+ }.AsReadOnly(),
+ Spread = SpreadType.Repeat
+ };
+ shape2StrokeRadialGradient.SetBounds(new Position2D(0, 0), 20);
+
+ Shape shape2 = new Shape()
+ {
+ StrokeWidth = 40.0f,
+ FillGradient = shape2FillRadialGradient,
+ StrokeGradient = shape2StrokeRadialGradient,
+ };
+ shape2.Translate(150.0f, 150.0f);
+ shape2.AddCircle(0, 0, 120.0f, 120.0f);
+ shape2.Close();
+
+ canvasView2.AddDrawable(shape2);
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest3 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest3Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest3Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest3Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <vector:CanvasView x:Name="canvasView" Size="{Binding Source={x:Static Window.Instance}, Path=Size }" />
+
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Collections.Generic;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest3Page : ContentPage
+ {
+ public VectorGraphicsCanvasViewTest3Page()
+ {
+ InitializeComponent();
+
+ Shape clipper1 = new Shape()
+ {
+ FillColor = Color.Red
+ };
+ clipper1.AddCircle(200, 150, 100, 100);
+
+ Shape shape1 = new Shape()
+ {
+ FillColor = Color.Red,
+ Opacity=0.5f
+ };
+ shape1.AddRect(50, 0, 200, 200, 10, 10);
+
+ shape1.ClipPath(clipper1);
+ canvasView.AddDrawable(shape1);
+
+
+ Shape mask1 = new Shape()
+ {
+ FillColor = Color.Red,
+ Opacity=0.5f
+ };
+ mask1.AddCircle(200, 350, 100, 100);
+
+ Shape shape2 = new Shape()
+ {
+ FillColor = Color.Green,
+ Opacity=0.5f
+ };
+ shape2.AddRect(50, 200, 200, 200, 10, 10);
+
+ shape2.Mask(mask1, MaskType.Alpha);
+ canvasView.AddDrawable(shape2);
+
+ Shape mask2 = new Shape()
+ {
+ FillColor = Color.Red,
+ Opacity=0.5f
+ };
+ mask2.AddCircle(200, 600, 100, 100);
+
+ Shape shape3 = new Shape()
+ {
+ FillColor = Color.Blue,
+ Opacity=0.5f
+ };
+ shape3.AddRect(50, 450, 200, 200, 10, 10);
+
+ shape3.Mask(mask2, MaskType.AlphaInverse);
+ canvasView.AddDrawable(shape3);
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest4 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest4Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest4Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest4Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <vector:CanvasView x:Name="canvasView" Size="{Binding Source={x:Static Window.Instance}, Path=Size }" />
+
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+using System.Drawing;
+using System.Threading;
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Collections.Generic;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest4Page : ContentPage
+ {
+ public const float StrokeWidthGap = 5.0f;
+ public const int HeightGap = 80;
+ public const int NumberOfShapes = 8;
+
+ Shape[] mShape = new Shape[NumberOfShapes];
+
+
+ public VectorGraphicsCanvasViewTest4Page()
+ {
+ InitializeComponent();
+
+ for(int i = 0; i < NumberOfShapes; i++)
+ {
+ mShape[i] = new Shape()
+ {
+ StrokeColor = Tizen.NUI.Color.Red,
+ StrokeWidth = 5.0f + (i * StrokeWidthGap)
+ };
+ mShape[i].AddMoveTo(50, 20 + i * HeightGap);
+ mShape[i].AddLineTo(380, 20 + i * HeightGap);
+ mShape[i].AddLineTo(450, 80 + i * HeightGap);
+
+ canvasView.AddDrawable(mShape[i]);
+ }
+
+ mShape[0].StrokeColor = Tizen.NUI.Color.Blue;
+ mShape[1].StrokeColor = Tizen.NUI.Color.Yellow;
+ mShape[2].StrokeColor = Tizen.NUI.Color.Green;
+ mShape[3].StrokeColor = Tizen.NUI.Color.Cyan;
+ mShape[4].StrokeColor = new Tizen.NUI.Color(0.8f, 0.5f, 0.2f, 0.7f);
+
+ mShape[3].StrokeCap = StrokeCapType.Square;
+ mShape[4].StrokeCap = StrokeCapType.Round;
+ mShape[5].StrokeCap = StrokeCapType.Butt;
+
+ mShape[3].StrokeJoin = StrokeJoinType.Bevel;
+ mShape[4].StrokeJoin = StrokeJoinType.Round;
+ mShape[5].StrokeJoin = StrokeJoinType.Miter;
+
+ mShape[6].Opacity = 0.5f;
+
+ mShape[0].StrokeDash = new List<float>() { 15.0f, 20.0f, 20.0f, 10.0f }.AsReadOnly();
+ mShape[1].StrokeDash = new List<float>() { 5.0f, 15.0f, 20.0f }.AsReadOnly();
+ mShape[2].StrokeDash = new List<float>() { 15.0f, 40.0f }.AsReadOnly();
+ mShape[7].StrokeDash = new List<float>() { 15.0f, 70.0f }.AsReadOnly();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest5 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest5Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest5Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest5Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <vector:CanvasView x:Name="canvasView" Size="{Binding Source={x:Static Window.Instance}, Path=Size }" />
+
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+using System.Drawing;
+using System.Threading;
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.Collections.Generic;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest5Page : ContentPage
+ {
+
+ public const int NumberOfPictures = 6;
+ private readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/";
+ public static readonly string[] Files = { "cartman.svg", "duke.svg", "test.tvg", "b.jpg", "Boston.png", "tiger.svg" };
+
+ Picture[] mPicture = new Picture[NumberOfPictures];
+
+
+ public VectorGraphicsCanvasViewTest5Page()
+ {
+ InitializeComponent();
+
+ for(int i = 0; i < NumberOfPictures; i++)
+ {
+ mPicture[i] = new Picture();
+ mPicture[i].Load(ResourcePath + Files[i]);
+ mPicture[i].SetSize(new Size2D(200, 200));
+ mPicture[i].Translate(20 + (i % 2) * 220, 20 + (i / 2) * 220);
+
+ canvasView.AddDrawable(mPicture[i]);
+ }
+
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsCanvasViewTest6 : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsCanvasViewTest6Page());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsCanvasViewTest6Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:vector="clr-namespace:Tizen.NUI.BaseComponents.VectorGraphics;assembly=Tizen.NUI"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsCanvasViewTest6Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="contentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5"/>
+ </View.Layout>
+
+ <vector:CanvasView x:Name="canvasView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.8"/>
+
+ <View x:Name="ButtonView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.1">
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <Button x:Name="addButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="20"
+ Text="Add">
+ </Button>
+
+ <Button x:Name="delButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="20"
+ Text="Del">
+ </Button>
+ </View>
+ <View x:Name="ButtonView2"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Weight="0.1">
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="30,30"/>
+ </View.Layout>
+
+ <Button x:Name="opacityIncreaseButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="15"
+ Text="Opacity++">
+ </Button>
+
+ <Button x:Name="opacityDecreaseButton"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ PointSize="15"
+ Text="Opacity--">
+ </Button>
+ </View>
+
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+using System.Drawing;
+using System.Threading;
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsCanvasViewTest6Page : ContentPage
+ {
+
+ public const int NumberOfPictures = 6;
+ private readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/";
+ public static readonly string[] Files = { "cartman.svg", "duke.svg", "test.tvg", "b.jpg", "Boston.png", "tiger.svg" };
+
+
+ Picture[] mPicture = new Picture[NumberOfPictures];
+ DrawableGroup mDrawableGroup;
+ public int mPictureCount = NumberOfPictures;
+
+ public VectorGraphicsCanvasViewTest6Page()
+ {
+ InitializeComponent();
+ mDrawableGroup = new DrawableGroup();
+ canvasView.AddDrawable(mDrawableGroup);
+
+ for(int i = 0; i < NumberOfPictures; i++)
+ {
+ mPicture[i] = new Picture();
+ mPicture[i].Load(ResourcePath + Files[i]);
+ mPicture[i].SetSize(new Size2D(200, 150));
+ mPicture[i].Translate(20 + (i % 2) * 220, 20 + (i / 2) * 170);
+
+ mDrawableGroup.AddDrawable(mPicture[i]);
+ }
+
+ addButton.Clicked += (s, e) =>
+ {
+ if (mPictureCount < NumberOfPictures)
+ {
+ mPicture[mPictureCount] = new Picture();
+ mPicture[mPictureCount].Load(ResourcePath + Files[mPictureCount]);
+ mPicture[mPictureCount].SetSize(new Size2D(200, 120));
+ mPicture[mPictureCount].Translate(20 + (mPictureCount % 2) * 220, 20 + (mPictureCount / 2) * 170);
+
+ mDrawableGroup.AddDrawable(mPicture[mPictureCount]);
+ mPictureCount++;
+ }
+ };
+ delButton.Clicked += (s, e) =>
+ {
+ if (mPictureCount > 0)
+ {
+ mDrawableGroup.RemoveDrawable(mPicture[mPictureCount - 1]);
+ mPictureCount--;
+ }
+ };
+ opacityIncreaseButton.Clicked += (s, e) =>
+ {
+ if (mDrawableGroup.Opacity + 0.1f > 1.0f)
+ {
+ mDrawableGroup.Opacity = 1.0f;
+ }
+ else
+ {
+ mDrawableGroup.Opacity += 0.1f;
+ }
+ };
+ opacityDecreaseButton.Clicked += (s, e) =>
+ {
+ if (mDrawableGroup.Opacity - 0.1f < 0.0f)
+ {
+ mDrawableGroup.Opacity = 0.0f;
+ }
+ else
+ {
+ mDrawableGroup.Opacity -= 0.1f;
+ }
+ };
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace NUITizenGallery
+{
+ internal class VectorGraphicsTVGTest : IExample
+ {
+ private Window window;
+ public void Activate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
+
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new VectorGraphicsTVGTestPage());
+ }
+
+ public void Deactivate()
+ {
+ Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.VectorGraphicsTVGTestPage"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="VectorGraphicsTVGTestPage"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
+ </View.Layout>
+ <ImageView x:Name="imageView" Size="{Binding Source={x:Static Window.Instance}, Path=Size }"/>
+
+ </View>
+ </ContentPage.Content>
+
+</ContentPage>
--- /dev/null
+using System.Drawing;
+using System.Threading;
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents.VectorGraphics;
+
+namespace NUITizenGallery
+{
+ public partial class VectorGraphicsTVGTestPage : ContentPage
+ {
+ public static readonly string ImagePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/test.tvg";
+
+ public VectorGraphicsTVGTestPage()
+ {
+ InitializeComponent();
+
+ imageView.SetImage(ImagePath);
+ }
+ }
+}
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class WebViewTest1 : IExample
{
private Window window;
- private WebViewTest1Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new WebViewTest1Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new WebViewTest1Page());
}
public void Deactivate()
{
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.WebViewTest1Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="WebViewTest1Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="80"
+ Padding="20,0,0,0">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" />
+ </View.Layout>
+
+ <TextField x:Name="InputField"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ VerticalAlignment="Center"
+ Text="https://m.naver.com/"
+ TextChanged="OnTextChanged"/>
+ <Button x:Name="GoButton"
+ WidthSpecification="120"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Go"
+ Clicked="OnGoClicked"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#0A0E4A"
+ Margin="20,120,0,0"/>
+ <WebView x:Name="TargetWebView"
+ Url="https://m.naver.com/"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ UrlChanged="OnUrlChanged"/>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="20, 20" />
+ </View.Layout>
+
+ <Button x:Name="BackButton"
+ Weight="0.5"
+ HeightSpecification="80"
+ IsEnabled="False"
+ Text="Back"
+ Clicked="OnBackClicked"/>
+ <Button x:Name="NextButton"
+ Weight="0.5"
+ HeightSpecification="80"
+ IsEnabled="False"
+ Text="Next"
+ Clicked="OnNextClicked"/>
+ </View>
+ </View>
+ </ContentPage.Content>
+</ContentPage>
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class WebViewTest2 : IExample
{
private Window window;
- private WebViewTest2Page page;
public void Activate()
{
window = NUIApplication.GetDefaultWindow();
- page = new WebViewTest2Page();
-
- window.Add(page);
+ window.GetDefaultNavigator().Push(new WebViewTest2Page());
}
public void Deactivate()
{
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.WebViewTest2Page"
+ xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <!-- AppBar is top-side bar with navigation content, title, and action. If you not set any contents, back button is automatically added. -->
+ <ContentPage.AppBar>
+ <AppBar x:Name="appBar" Title="WebViewTest2Page"/>
+ </ContentPage.AppBar>
+
+ <!-- Content is main placeholder of ContentPage. Add your content into this view. -->
+ <ContentPage.Content>
+ <View x:Name="ContentView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Vertical" />
+ </View.Layout>
+
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="200"
+ Padding="20,0,0,0">
+
+ <View.Layout>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" />
+ </View.Layout>
+
+ <TextEditor x:Name="InputField"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ TextChanged="OnTextChanged"/>
+ <Button x:Name="RunButton"
+ WidthSpecification="120"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
+ Text="Run"
+ Clicked="OnRunClicked"/>
+ </View>
+ <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="2"
+ BackgroundColor="#0A0E4A"
+ Margin="20,120,0,0"/>
+ <WebView x:Name="TargetWebView"
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
+ HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
+ </View>
+ </ContentPage.Content>
+</ContentPage>
<ItemGroup>
- <None Remove="Examples\BoxViewTest\BoxViewTest1.xaml" />
- <None Remove="Examples\BoxViewTest\BoxViewTest2.xaml" />
- <None Remove="Examples\BoxViewTest\BoxViewTest3.xaml" />
- <None Remove="Examples\BoxViewTest\BoxViewTest4.xaml" />
- </ItemGroup>
-
- <ItemGroup>
- <EmbeddedResource Include="Examples\AbsoluteLayoutTest\AbsoluteLayoutTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ActivityIndicatorTest\ActivityIndicatorTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\AlertDialogTest\AlertDialogTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\AnimationTest\AnimationTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\AnimationTest\AnimationTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\AnimationTest\AnimationTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundColorTest\BackgroundColorTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundColorTest\BackgroundColorTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundColorTest\BackgroundColorTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundColorTest\BackgroundColorTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundColorTest\BackgroundColorTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BackgroundTest\BackgroundTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BindingTest\BindingTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BindingTest\BindingTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BoxViewTest\BoxViewTest1Page.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BoxViewTest\BoxViewTest2Page.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BoxViewTest\BoxViewTest3Page.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BoxViewTest\BoxViewTest4Page.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BrushTest\BrushBackgroundTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BrushTest\BrushBorderTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BrushTest\BrushComponentsTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BrushTest\BrushImageTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\BrushTest\BrushViewerTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ButtonTest\ButtonTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ButtonTest\ButtonTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ButtonTest\ButtonTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ButtonTest\ButtonTest6Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ButtonTest\ButtonTest7Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselPageTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselViewTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselViewTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselViewItem.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CarouselTest\CarouselViewFocusTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CheckBoxTest\CheckBoxTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewCustomItem.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewCustomItemTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewObservableTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest6Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest7Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest8Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CollectionViewTest\CollectionViewTest9Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ContentPageTest\ContentPageTestPage1.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\ContentPageTest\ContentPageTestPage2.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CustomCellTest\CustomCellListItem.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\CustomCellTest\CustomCellTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="Examples\DatePickerTest\DatePickerTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\EditorTest1.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\EditorTest2.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\EntryTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\EntryTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\EntryTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FlexTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FlexTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FlexTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FlexTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FrameLayoutTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FrameLayoutTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\FrameTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\GridTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\GridTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\GridTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\GridTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\HelloWorldPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\IconTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageButtonTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ImageTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\IndicatorViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\IndicatorViewTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\IndicatorViewTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\IndicatorViewTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\KeyboardTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LabelTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LabelTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LabelTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LabelTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LayoutAddRemoveTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\LayoutAddRemoveTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ListViewFooterTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\MenuTest\MenuTestMenu.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\MenuTest\MenuTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\NavigatorTest\NavigatorTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\NavigatorTest\NavigatorTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\OpacityTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PanGestureTest1.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ListItemTitleView.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PerformanceTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ListItemTitleSwitch.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PerformanceTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ListItemTitle.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PerformanceTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PickerTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\PinchGestureTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ProgressbarTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\RecalculateTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\RefreshViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\RotationTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScaleTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScaleTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest6Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ScrollViewTest7Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SetColorTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SimpleTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SliderTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SliderTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackInGridTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest5Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest6Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\StackLayoutTest8Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SwipeViewTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SwipeViewTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\SwipeGestureRecognizerTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TabViewTest\TabViewTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TapGestureTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TapGestureTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TapGestureTest3Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TapGestureTest4Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\Test1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\Test2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TextAnchorTest.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TimePickerTestPage.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\TimerTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\ToolbarItemTest1Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\WebViewTest1.xaml">
- <Generator>MSBuild:Compile</Generator>
- </EmbeddedResource>
- <EmbeddedResource Include="res\layout\WebViewTest2.xaml">
+ <EmbeddedResource Include="Examples\**\*.xaml">
<Generator>MSBuild:Compile</Generator>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
- <None Update="res\layout\FrameLayoutTest2Page.xaml">
- <Generator>MSBuild:Compile</Generator>
- </None>
+ <Folder Include="lib\" />
</ItemGroup>
<ItemGroup>
- <Folder Include="lib\" />
- </ItemGroup>
-
- <ItemGroup>
- <PackageReference Include="Tizen.NUI.XamlBuild" Version="1.0.30" />
+ <PackageReference Include="Tizen.NUI.XamlBuild" Version="1.0.32" />
</ItemGroup>
<ItemGroup>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <packageSources>
- <add key="tizen-myget" value="https://tizen.myget.org/F/dotnet/api/v3/index.json" protocolVersion="3" />
- </packageSources>
- <disabledPackageSources />
-</configuration>
--- /dev/null
+<svg viewBox='0 0 104 97' xmlns='http://www.w3.org/2000/svg'>
+ <path d='M14,85l3,9h72c0,0,5-9,4-10c-2-2-79,0-79,1' fill='#7C4E32'/>
+ <path d='M19,47c0,0-9,7-13,14c-5,6,3,7,3,7l1,14c0,0,10,8,23,8c14,0,26,1,28,0c2-1,9-2,9-4c1-1,27,1,27-9c0-10,7-20-11-29c-17-9-67-1-67-1' fill='#E30000'/>
+ <path d='M17,32c-3,48,80,43,71-3 l-35-15' fill='#FFE1C4'/>
+ <path d="M17,32c9-36,61-32,71-3c-20-9-40-9-71,3" fill="#8ED8F8"/>
+ <path d='M54,35a10 8 60 1 1 0,0.1zM37,38a10 8 -60 1 1 0,0.1z' fill='#FFF'/>
+ <path d='M41,6c1-1,4-3,8-3c3-0,9-1,14,3l-1,2h-2h-2c0,0-3,1-5,0c-2-1-1-1-1-1l-3,1l-2-1h-1c0,0-1,2-3,2c0,0-2-1-2-3M17,34l0-2c0,0,35-20,71-3v2c0,0-35-17-71,3M5,62c3-2,5-2,8,0c3,2,13,6,8,11c-2,2-6,0-8,0c-1,1-4,2-6,1c-4-3-6-8-2-12M99,59c0,0-9-2-11,4l-3,5c0,1-2,3,3,3c5,0,5,2,7,2c3,0,7-1,7-4c0-4-1-11-3-10' fill='#FFF200'/>
+ <path d='M56,78v1M55,69v1M55,87v1' stroke='#000' stroke-linecap='round'/>
+ <path d='M60,36a1 1 0 1 1 0-0.1M49,36a1 1 0 1 1 0-0.1M57,55a2 3 0 1 1 0-0.1M12,94c0,0,20-4,42,0c0,0,27-4,39,0z'/>
+ <path d='M50,59c0,0,4,3,10,0M56,66l2,12l-2,12M25,50c0,0,10,12,23,12c13,0,24,0,35-15' fill='none' stroke='#000' stroke-width='0.5'/>
+</svg>
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 75 136">
+<path d="M1190 2982 c-38-31-31-179 17-347 14-49-50 34-89 115-59 126
+-75 138-139 104-89-45-31-286 106-438 37-41 37-56 2-56-64-1-147
+-63-147-111 0-68 36-95 107-78 72 17 110 12 162-18 59-36 99-53 121
+-53 70 0 98-274 36-339-77-80-124-64-211 69-235 363-871 1021-794
+823 6-16 15-109 21-208 8-154 7-237-7-510-1-22-5-71-9-110-3
+-38-8-99-11-135-16-193-59-311-172-463-89-120-103-199-62-333
+46-147 32-217-65-342-86-110-34-240 74-182 15 8 16-2 16-118-1
+-208 99-262 252-137 459 378 583 383 820 37 106-155 165-182 267-123 179
+103 150 755-55 1272-72 180-71 272 6 419 l38 71-1 147 c0 177 4 192 76
+262 82 80 99 158 65 300-25 105-22 166 16 269 47 130 23 186-68 161-65
+-17-142-154-142-253 0-42-37 30-49 96-23 120-43 186-61 202-30 27
+-91 31-120 7z m-342-1094 c74-22 122-90 122-170 0-77-7-87-54-86-83
+2-183-78-173-139 14-82-172-40-237 54-127 183 105 413 342 341z m315
+-214 c237-426 341-786 342-1179 0-460-61-531-239-277-251 358-453
+367-824 35-124-110-190-136-208-80-7 22-7 235 0 272 2 11 7 45 10 75
+4 30 8 66 11 80 2 14 9 52 14 85 109 661 160 849 214 789 199-228 612 2 545
+303-6 28-4 32 15 36 38 7 40 4 120-139z m-900-522 c3-4-5-61-18-127
+-13-66-25-131-27-145-6-36-39 38-46 101-7 76 66 213 91 171z"
+transform="translate(0,136) scale(0.045181,-0.045181)"/>
+<ellipse rx="12" ry="10" transform="rotate(-24) translate(5.4,68.3)"
+fill="#F00" opacity="0.7"/>
+<ellipse rx="3.5" ry="2" transform="rotate(-33) translate(-9,61)" fill="#FFF"
+opacity="0.7"/>
+</svg>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
+<svg version="1.1" baseProfile="basic" id="svg2" xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="900px" height="900px"
+ viewBox="0 0 900 900" xml:space="preserve">
+<path id="path482" fill="none" d="M184.013,144.428"/>
+<path id="path6" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M108.956,403.826c0,0,0.178,3.344-1.276,3.311
+ c-1.455-0.033-30.507-84.917-66.752-80.957C40.928,326.18,72.326,313.197,108.956,403.826z"/>
+<path id="path10" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M115.189,398.488c0,0-0.97,3.207-2.327,2.679
+ c-1.356-0.526,0.203-90.231-35.227-98.837C77.635,302.33,111.576,300.804,115.189,398.488z"/>
+<path id="path14" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M163.727,473.225c0,0,2.888,1.695,2.059,2.892
+ c-0.832,1.194-87.655-21.408-104.35,11.003C61.436,487.118,67.931,453.771,163.727,473.225z"/>
+<path id="path18" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M158.767,491.254c0,0,3.277,0.699,2.864,2.096
+ c-0.411,1.396-89.935,7.298-95.567,43.318C66.063,536.668,61.723,502.971,158.767,491.254z"/>
+<path id="path22" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M151.332,481.498c0,0,3.139,1.171,2.528,2.492
+ c-0.611,1.319-90.037-5.899-100.864,28.915C52.996,512.905,53.617,478.938,151.332,481.498z"/>
+<path id="path26" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M132.43,449.356c0,0,2.31,2.427,1.181,3.347
+ c-1.128,0.919-78.363-44.729-103.341-18.171C30.27,434.532,45.704,404.264,132.43,449.356z"/>
+<path id="path30" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M119.108,456.757c0,0,2.571,2.148,1.554,3.192
+ c-1.017,1.041-82.921-35.576-104.734-6.36C15.928,453.589,27.837,421.769,119.108,456.757z"/>
+<path id="path34" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M114.518,463.946c0,0,2.839,1.778,1.974,2.95
+ c-0.865,1.171-86.997-23.942-104.623,7.974C11.869,474.87,19.329,441.724,114.518,463.946z"/>
+<path id="path38" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M133.47,465.03c0,0,1.981,2.703,0.743,3.472
+ c-1.237,0.768-71.985-54.405-100.161-31.267C34.052,437.235,53.236,409.195,133.47,465.03z"/>
+<path id="path42" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M98.546,413.917c0,0,1.06,3.178-0.353,3.531
+ c-1.413,0.353-51.91-73.804-85.812-60.385C12.381,357.063,39.22,336.229,98.546,413.917z"/>
+<path id="path46" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M99.773,426.239c0,0,1.722,2.876,0.417,3.523
+ c-1.303,0.649-66.605-60.873-96.813-40.458C3.376,389.306,25.088,363.174,99.773,426.239z"/>
+<path id="path50" fill="#FFFFFF" stroke="#000000" stroke-width="0.172" d="M99.57,433.955c0,0,1.981,2.703,0.744,3.472
+ c-1.238,0.767-71.985-54.405-100.162-31.267C0.152,406.16,19.335,378.12,99.57,433.955z"/>
+<path id="path54" fill="#FFFFFF" stroke="#000000" d="M95.668,436.985c0.888,10.678,2.632,22.275,5.703,27.783
+ c0,0-6.356,21.895,9.181,45.2c0,0-0.707,12.712,2.119,18.362c0,0,7.063,14.832,15.538,16.244c6.858,1.143,22.26,6.561,39.67,9.04
+ c0,0,30.249,24.859,24.599,47.461c0,0-0.706,28.956-7.063,31.781c0,0,20.481-19.775,3.531,9.888l-7.769,33.192
+ c0,0,45.201-38.138,17.657-5.648l-17.657,45.906c0,0,34.607-32.487,21.894-17.656l-5.65,15.538c0,0,76.276-48.025,21.894,4.237
+ c0,0,14.125-6.356,21.894-1.412c0,0,12.006-2.119,10.594,0.706c0,0-36.726,18.361-43.082,50.851c0,0,14.831-17.657,9.181,1.412
+ l0.706,20.48c0,0,7.063-38.138,6.356,28.25c0,0,33.9-31.78,13.419,4.944v29.662c0,0,26.838-28.956,15.538-6.354
+ c0,0,17.656-15.538,10.594,11.3c0,0-1.413,18.361,6.356-1.412c0,0,28.25-54.029,17.656-7.771c0,0-1.412,33.9,7.063,7.771
+ c0,0,0.706,18.362,16.95,31.075c0,0-2.119-89.695,20.48-26.133l7.063,28.957c0,0,4.943-16.244,4.237-25.426
+ c0,0,26.132-28.957,14.125,14.125c0,0,26.838-40.257,21.188-16.95c0,0-13.419,28.251-10.594,36.727c0,0,29.663-61.444,31.782-64.271
+ c0,0-3.531,74.865,15.537,11.3c0,0,9.888,21.188,4.943,28.957c0,0,14.125-14.125,12.712-19.774c0,0,8.122-14.479,13.066,9.534
+ c0,0,3.178,16.598,6.003,10.946c0,0,7.063,42.377,9.182,2.119c0,0,2.825-24.013-9.888-44.494c0,0,1.412-5.649-3.531-12.713
+ c0,0,24.014,38.139,11.3-12.713c0,0,19.777,14.125,21.896,14.125c0,0-24.015-40.963-8.477-32.487c0,0-9.183-18.362,22.602,2.825
+ c0,0-28.252-28.251,2.825-11.301c0,0,14.125,11.301,0.706-6.356c0,0-25.428-28.25,13.419,3.532c0,0,20.48,28.956,21.895,33.9
+ c0,0-17.655-51.559-25.426-56.501c0,0,14.832-64.271,87.576-36.727c0,0,12.007,30.369,19.774-2.118c0,0,22.602-11.301,42.375,37.432
+ c0,0,7.063-24.013,5.65-28.956c0,0,12.007,2.119,10.594,0c0,0,23.308,7.769,25.427,6.356c0,0,12.006,12.006,12.712,5.648
+ c0,0,16.244,4.944,12.713-1.412c0,0,15.538,27.544,16.244,33.9l4.236-24.719l3.531,4.942c0,0,2.825-13.419,1.413-15.537
+ c-1.413-2.119,35.313,12.006,43.787,48.731l3.531,14.831c0,0,10.594-26.131,7.77-33.193c0,0,9.181,1.412,9.888,9.181
+ c0,0,7.063-40.963-1.412-51.557c0,0,7.769-1.412,9.888,4.944V714.78c0,0,12.713,1.411,12.713-2.825c0,0,7.769-7.063,11.3,1.412
+ c0,0-21.894-62.15,10.594-28.25c0,0,12.714,19.068,6.356-14.125c-6.357-33.194-13.419-36.021-4.943-36.727
+ c0,0,1.412-6.355-2.118-9.181c-3.531-2.825,2.118,0,2.118,0s8.476,7.063-0.707-31.782c0,0,11.302,2.825-9.888-48.73
+ c0,0,4.944-4.237-2.118-19.069c0,0,14.125,7.77,19.069,4.944c0,0-0.707-2.825-6.356-9.889c0,0-38.139-96.759-2.118-57.913
+ c0,0,20.923,23.925,9.623-16.332c0,0-16.088-42.394-14.716-49.979L95.668,436.985z"/>
+<path id="path58" fill="#CC7226" stroke="#000000" d="M854.095,396.693c1.108,0.32,5.004,2.304,7.211,5.217
+ c0,0,12.006,19.068,2.825-13.418c0,0-16.244-50.851-0.707-31.076c0,0,10.594,12.713,4.944-11.3
+ c-6.824-29.004-11.301-40.257-11.301-40.257s20.48,8.475-26.837-61.444l15.536,6.356c0,0-34.605-69.919-72.743-79.101
+ l-14.125-10.594c0,0,67.8-67.094,45.199-132.07c0,0-12.007-9.182-28.957,7.063c0,0-11.3,8.475-21.894,5.65
+ c0,0-54.382,2.119-57.913,2.119S630.359-21.844,514.533,9.231c0,0-9.183,3.531-16.95,1.413c0,0-32.489-28.25-118.653,12.006
+ c0,0-17.655,3.531-20.48,3.531s-7.77,0-21.895,11.3c-14.125,11.3-14.832,12.712-18.362,15.538c0,0-28.957,19.775-37.432,21.188
+ c0,0-20.481,11.3-28.25,28.957l-6.356,2.119c0,0-2.825,12.713-3.532,14.832c0,0-8.475,6.356-9.887,16.244
+ c0,0-15.538,10.594-14.832,18.362c0,0-2.825,9.182-4.238,17.657c0,0-12.712,8.475-11.3,13.419c0,0-13.419,24.719-11.3,36.725
+ c0,0-11.3-0.706-16.244,3.531c0,0-1.413,8.475-4.238,9.182c0,0-4.944,2.119-0.706,9.181c0,0-2.825,4.944-3.531,7.769
+ c0,0,1.412,4.944-6.356,14.831c0,0-11.3,33.194-7.769,42.375c0,0,0.707,8.475-4.237,11.3c0,0-6.356-0.707,8.475,20.481
+ c0,0,1.413,2.119-4.238,6.356c0,0-30.369,6.356-34.606,35.313c0,0-24.013,26.131-24.013,35.313c0,4.069,0.479,9.626,1.713,17.771
+ c0,0-1.007,14.718,47.725,16.131C191.772,453.469,854.095,396.693,854.095,396.693z"/>
+<path id="path62" fill="#CC7226" d="M120.793,436.164c-44.141-69.566-18.716,30.018-18.716,30.018
+ c15.538,60.738,244.365-5.649,244.365-5.649s298.042-53.677,317.816-60.739c19.775-7.063,187.864,4.237,187.864,4.237l-9.888-29.663
+ c-114.414-81.926-148.314-40.963-172.327-48.025c-24.013-7.062-19.774,9.888-25.425,11.3c-5.651,1.412-74.863-42.375-86.163-40.963
+ c-11.301,1.413-56.045-40.523-29.663,15.538c28.25,60.032-103.115,69.213-132.778,49.438
+ c-29.663-19.775,12.713,32.488,12.713,32.488c32.487,35.313-28.25,5.65-28.25,5.65c-60.737-22.601-103.114,22.6-108.764,24.013
+ c-5.65,1.412-14.125,7.063-15.538-4.237c-1.412-11.301-14.672-40.789-70.625,5.649c-35.313,29.313-59.679-9.534-59.679-9.534
+ L120.793,436.164z"/>
+<path id="path66" fill="#E87F3A" d="M560.632,299.761c-11.3,1.413-56.089-40.502-29.662,15.538
+ c29.311,62.151-103.113,69.213-132.775,49.438c-29.665-19.775,12.712,32.488,12.712,32.488c32.488,35.313-28.252,5.649-28.252,5.649
+ c-60.737-22.6-103.113,22.601-108.763,24.013c-5.65,1.413-14.125,7.063-15.538-4.236c-1.413-11.301-14.441-40.494-70.626,5.649
+ c-37.495,30.627-61.315-7.255-61.315-7.255l-5.65,17.849c-44.141-70.271-17.529,32.682-17.529,32.682
+ c15.54,60.739,245.521-7.962,245.521-7.962s298.043-53.676,317.817-60.738c19.774-7.062,186.325,4.109,186.325,4.109l-9.762-30.563
+ c-114.413-81.926-146.9-39.935-170.914-46.998c-24.013-7.063-19.774,9.888-25.425,11.3
+ C641.146,342.136,571.933,298.349,560.632,299.761z"/>
+<path id="path70" fill="#EA8C4D" d="M562.943,302.842c-11.301,1.413-54.973-41.014-29.663,15.538
+ c28.604,63.918-103.113,69.215-132.776,49.44c-29.662-19.775,12.713,32.488,12.713,32.488c32.488,35.313-28.25,5.649-28.25,5.649
+ c-60.738-22.6-103.115,22.601-108.766,24.013c-5.65,1.413-14.125,7.063-15.538-4.236c-1.413-11.301-14.21-40.198-70.625,5.649
+ c-39.68,31.942-62.952-4.976-62.952-4.976l-6.356,15.216c-42.022-68.86-16.341,35.345-16.341,35.345
+ c15.538,60.738,246.678-10.271,246.678-10.271s298.04-53.677,317.814-60.738c19.775-7.063,184.783,3.979,184.783,3.979l-9.63-31.46
+ c-114.415-81.926-145.49-38.909-169.503-45.972c-24.014-7.063-19.775,9.888-25.427,11.302
+ C643.457,345.219,574.243,301.429,562.943,302.842z"/>
+<path id="path74" fill="#EC9961" d="M565.255,305.925c-11.301,1.413-54.963-41.02-29.663,15.538
+ c29.663,66.311-104.057,68.586-132.775,49.438c-29.663-19.775,12.713,32.488,12.713,32.488c32.486,35.313-28.25,5.649-28.25,5.649
+ c-60.738-22.6-103.114,22.601-108.764,24.013c-5.65,1.413-14.125,7.063-15.538-4.236c-1.413-11.301-13.979-39.9-70.627,5.649
+ c-41.862,33.259-64.591-2.696-64.591-2.696l-7.063,12.584c-38.491-64.976-15.151,38.012-15.151,38.012
+ c15.538,60.736,247.833-12.586,247.833-12.586s298.04-53.677,317.817-60.738c19.773-7.063,183.24,3.853,183.24,3.853l-9.502-32.358
+ c-114.414-81.928-144.076-37.882-168.09-44.945c-24.015-7.063-19.775,9.888-25.427,11.3
+ C645.766,348.301,576.555,304.512,565.255,305.925z"/>
+<path id="path78" fill="#EEA575" d="M567.567,309.008c-11.303,1.412-54.07-41.412-29.664,15.538
+ c29.664,69.213-103.114,69.213-132.776,49.438c-29.663-19.775,12.713,32.487,12.713,32.487c32.487,35.313-28.251,5.65-28.251,5.65
+ c-60.738-22.6-103.113,22.601-108.763,24.013c-5.65,1.412-14.125,7.063-15.538-4.237s-13.746-39.604-70.626,5.649
+ c-44.046,34.575-66.229-0.418-66.229-0.418l-7.769,9.953c-34.96-61.446-13.964,40.673-13.964,40.673
+ c15.538,60.74,248.989-14.895,248.989-14.895s298.043-53.677,317.816-60.738c19.775-7.063,181.701,3.724,181.701,3.724
+ l-9.374-33.259c-114.414-81.926-142.664-36.853-166.677-43.915c-24.014-7.062-19.775,9.888-25.426,11.3
+ C648.081,351.383,578.868,307.595,567.567,309.008z"/>
+<path id="path82" fill="#F1B288" d="M569.879,312.089c-11.3,1.412-57.144-39.994-29.663,15.538
+ c33.9,68.507-103.115,69.213-132.778,49.438c-29.661-19.775,12.714,32.487,12.714,32.487c32.487,35.313-28.25,5.65-28.25,5.65
+ c-60.738-22.6-103.114,22.601-108.764,24.013c-5.65,1.412-14.125,7.063-15.538-4.237c-1.413-11.3-13.514-39.309-70.626,5.649
+ c-46.228,35.893-67.866,1.863-67.866,1.863l-8.475,7.317c-31.782-58.619-12.776,43.341-12.776,43.341
+ C123.394,553.887,358,475.94,358,475.94s298.042-53.677,317.817-60.738c19.774-7.063,180.158,3.595,180.158,3.595l-9.244-34.156
+ c-114.413-81.926-141.251-35.827-165.265-42.889c-24.013-7.062-19.774,9.888-25.426,11.3
+ C650.393,354.464,581.179,310.676,569.879,312.089z"/>
+<path id="path86" fill="#F3BF9C" d="M572.19,315.169c-11.303,1.413-57.813-39.656-29.665,15.538
+ c36.021,70.627-103.113,69.214-132.776,49.439s12.713,32.488,12.713,32.488c32.487,35.313-28.25,5.65-28.25,5.65
+ c-60.738-22.601-103.114,22.6-108.764,24.013c-5.65,1.412-14.125,7.063-15.538-4.237c-1.412-11.301-13.283-39.014-70.625,5.649
+ c-48.412,37.208-69.503,4.141-69.503,4.141l-9.181,4.688c-28.25-53.322-11.59,46.004-11.59,46.004
+ c15.538,60.738,251.301-19.519,251.301-19.519s298.041-53.677,317.816-60.738c19.775-7.063,178.619,3.466,178.619,3.466
+ l-9.117-35.055c-114.414-81.926-139.84-34.799-163.853-41.862c-24.014-7.064-19.774,9.888-25.425,11.3
+ C652.702,357.546,583.49,313.757,572.19,315.169z"/>
+<path id="path90" fill="#F5CCB0" d="M574.501,318.252c-11.3,1.413-59.753-38.624-29.662,15.538
+ c38.844,69.92-103.115,69.213-132.778,49.438c-29.662-19.775,12.714,32.488,12.714,32.488c32.486,35.313-28.251,5.65-28.251,5.65
+ c-60.737-22.602-103.113,22.6-108.764,24.013c-5.65,1.412-14.125,7.063-15.538-4.237c-1.413-11.301-13.05-38.716-70.626,5.649
+ c-50.594,38.524-71.14,6.422-71.14,6.422l-9.887,2.054c-25.427-50.145-10.401,48.668-10.401,48.668
+ c15.538,60.74,252.455-21.829,252.455-21.829s298.043-53.677,317.816-60.738c19.775-7.063,177.078,3.339,177.078,3.339
+ l-8.987-35.956c-114.414-81.926-138.428-33.771-162.439-40.834c-24.013-7.063-19.774,9.888-25.425,11.3
+ C655.015,360.628,585.802,316.84,574.501,318.252z"/>
+<path id="path94" fill="#F8D8C4" d="M576.813,321.335c-11.3,1.413-59.753-38.625-29.662,15.538
+ c38.845,69.919-103.113,69.213-132.776,49.438c-29.662-19.775,12.713,32.488,12.713,32.488c32.488,35.313-28.25,5.65-28.25,5.65
+ c-60.74-22.602-103.115,22.6-108.766,24.013c-5.65,1.412-14.125,7.063-15.538-4.238c-1.413-11.3-12.817-38.42-70.625,5.65
+ c-52.777,39.84-72.776,8.701-72.776,8.701l-10.594-0.579c-24.015-46.615-9.213,51.332-9.213,51.332
+ c15.538,60.738,253.609-24.143,253.609-24.143s298.042-53.675,317.817-60.736c19.775-7.063,175.538,3.21,175.538,3.21l-8.859-36.854
+ c-114.416-81.926-137.016-32.744-161.027-39.807c-24.013-7.063-19.775,9.888-25.427,11.3
+ C657.326,363.711,588.112,319.923,576.813,321.335z"/>
+<path id="path98" fill="#FAE5D7" d="M579.124,324.417c-11.301,1.413-59.068-38.998-29.663,15.538
+ c38.844,72.038-103.113,69.213-132.776,49.438c-29.662-19.775,12.714,32.488,12.714,32.488c32.486,35.313-28.251,5.65-28.251,5.65
+ c-60.737-22.602-103.113,22.6-108.764,24.013c-5.652,1.412-14.127,7.063-15.54-4.238c-1.412-11.3-12.585-38.123-70.625,5.65
+ c-54.959,41.157-74.413,10.979-74.413,10.979l-11.302-3.212c-22.954-42.375-8.025,53.999-8.025,53.999
+ c15.538,60.738,254.769-26.455,254.769-26.455s298.04-53.675,317.814-60.736c19.775-7.063,173.997,3.082,173.997,3.082
+ l-8.732-37.752c-114.413-81.928-135.602-31.718-159.613-38.781c-24.014-7.063-19.774,9.888-25.426,11.3
+ S590.424,323.004,579.124,324.417z"/>
+<path id="path102" fill="#FCF2EB" d="M581.435,327.498c-11.3,1.412-57.161-39.981-29.661,15.538
+ c37.432,75.571-103.114,69.215-132.776,49.439c-29.663-19.775,12.713,32.488,12.713,32.488c32.487,35.313-28.251,5.649-28.251,5.649
+ c-60.738-22.601-103.113,22.601-108.763,24.013c-5.65,1.413-14.125,7.063-15.538-4.237c-1.413-11.3-12.354-37.827-70.626,5.65
+ c-57.145,42.473-76.053,13.258-76.053,13.258l-12.006-5.842c-22.6-40.964-6.836,56.661-6.836,56.661
+ c15.538,60.736,255.921-28.766,255.921-28.766s298.043-53.676,317.817-60.737c19.775-7.063,172.454,2.951,172.454,2.951
+ l-8.604-38.65c-114.415-81.926-134.188-30.688-158.2-37.751c-24.014-7.064-19.775,9.887-25.426,11.3
+ C661.948,369.875,592.735,326.085,581.435,327.498z"/>
+<path id="path106" fill="#FFFFFF" d="M120.44,466.182c-22.601-38.846-5.65,59.325-5.65,59.325
+ c15.538,60.738,257.078-31.075,257.078-31.075s298.042-53.677,317.816-60.738c19.775-7.063,170.914,2.823,170.914,2.823
+ l-8.475-39.55c-114.414-81.926-132.776-29.663-156.789-36.726c-24.013-7.063-19.775,9.888-25.426,11.3
+ c-5.649,1.413-74.862-42.375-86.163-40.963c-11.3,1.412-55.829-40.623-29.663,15.538c39.245,84.232-107.28,66.436-132.777,49.438
+ c-29.663-19.775,12.712,32.488,12.712,32.488c32.488,35.313-28.25,5.65-28.25,5.65c-60.737-22.602-103.113,22.602-108.764,24.014
+ c-5.65,1.413-14.125,7.063-15.538-4.237c-1.413-11.302-12.121-37.532-70.625,5.65c-59.326,43.788-77.688,15.537-77.688,15.537
+ L120.44,466.182z"/>
+<path id="path110" d="M193.891,519.15c0,0-12.713,20.48,24.013,43.788c0,0,2.472,2.473-29.31-4.943c0,0-10.947-3.531-13.771-21.896
+ c0,0-8.475-7.769-16.95-17.655C149.397,508.557,193.891,519.15,193.891,519.15z"/>
+<path id="path114" fill="#CCCCCC" d="M441.08,435.104c0,0,31.249,47.356,30.193,55.797c-2.297,18.362-2.648,35.313,3.001,42.376
+ c5.651,7.063,21.188,65.682,21.188,65.682s-0.706,2.119,21.188-64.976c0,0,20.48-28.25-14.831-60.738
+ C501.82,473.244,439.668,422.392,441.08,435.104z"/>
+<path id="path118" d="M229.204,566.47c0,0,19.775,12.713-5.65,67.802l11.3-4.237c0,0-1.413,19.774-7.063,24.013l12.712-5.65
+ c0,0,8.475,14.127,1.413,22.602c0,0,29.663,14.125,28.25,25.425c0,0,11.3-14.125,4.237-25.425s-19.775-4.237-18.363-36.727
+ l-15.538,5.65c0,0,9.888-15.538,9.888-26.838l-14.125,4.237c0,0,27.313-46.928,8.475-49.438
+ C234.147,566.47,229.204,566.47,229.204,566.47z"/>
+<path id="path122" fill="#CCCCCC" d="M286.41,596.133c0,0,4.944-7.769,0-6.355c-4.944,1.413-60.032,27.544-70.625,44.494
+ C215.785,634.271,276.522,591.189,286.41,596.133z"/>
+<path id="path126" fill="#CCCCCC" d="M304.773,610.258c0,0,4.944-7.769,0-6.355s-60.032,27.544-70.625,44.494
+ C234.147,648.396,294.885,605.314,304.773,610.258z"/>
+<path id="path130" fill="#CCCCCC" d="M328.079,583.42c0,0,4.944-7.769,0-6.355c-4.943,1.412-60.032,27.545-70.625,44.494
+ C257.454,621.559,318.191,578.477,328.079,583.42z"/>
+<path id="path134" fill="#CCCCCC" d="M287.117,660.402c0,0,0-10.595-4.944-9.183c-4.944,1.413-68.507,32.488-79.101,49.438
+ C203.072,700.659,277.229,655.458,287.117,660.402z"/>
+<path id="path138" fill="#CCCCCC" d="M289.235,641.333c0,0,2.119-8.475-2.825-7.063c-3.531,0-50.144,20.481-60.738,37.433
+ C225.672,671.702,277.935,633.564,289.235,641.333z"/>
+<path id="path142" fill="#CCCCCC" d="M263.81,725.378l-17.656,13.419c0,0,18.362-13.419,24.719-11.3
+ c0,0-12.006,19.774-13.419,28.956c0,0,18.363-22.602,28.25-21.895c0,0,13.419,0.706,13.419,19.774c0,0,9.888-18.362,15.537-17.656
+ c0,0,2.119,11.302,0,23.308c0,0,7.063-13.419,14.125-10.595c0,0,11.301-3.53,9.888,16.95c0,0,0,18.362-1.412,23.308
+ c0,0,9.889-46.613,14.125-47.319c0,0,14.125-2.119,22.602,13.419c0,0-7.063-13.419,1.412-9.888c0,0,19.068,2.824,24.719,14.831
+ c0,0-12.006-21.188-2.118-15.537c0,0,12.006,0,14.125,11.3c0,0,14.831,37.432,18.362,40.257c0,0-13.419-38.138-10.595-38.138
+ c0,0-3.53-21.188,5.65,4.942c0,0-5.65-24.719,4.237-23.307c9.888,1.413,17.655,19.069,32.487,14.832
+ c0,0,16.952,9.888,20.483-112.295L263.81,725.378z"/>
+<path id="path146" d="M272.285,561.526c0,0,26.131-10.595,96.757,0c0,0,12.713,0.706,24.72-14.831
+ c12.006-15.538,59.325-28.251,70.625-24.721l16.952,11.302l1.413,2.118c0,0,21.895,18.362,22.6,31.781
+ c0.706,13.418-25.425,98.169-42.377,126.42c-16.949,28.25-33.899,50.145-67.801,45.906c0,0-36.726-7.063-81.926,0
+ c0,0-51.557-2.825-56.5-16.95s19.775-40.963,19.775-40.963s7.769-14.831,5.65-40.257C280.054,615.908,280.76,566.47,272.285,561.526
+ z"/>
+<path id="path150" fill="#E5668C" d="M311.129,565.058c14.832,32.487-37.431,147.607-37.431,147.607
+ c-3.531,2.825,22.353,13.499,40.256,9.182c19.327-4.657,90.401,2.825,90.401,2.825c41.669-27.544,64.27-105.938,64.27-105.938
+ s18.364-42.376-12.713-48.025C424.837,565.058,311.129,565.058,311.129,565.058z"/>
+<path id="path154" fill="#B23259" d="M307.543,619.608c5.873-22.582,8.67-43.419,3.586-54.552c0,0,110.177,11.301,129.951-25.426
+ c7.488-13.904,33.55,40.257,32.842,57.207c0,0-111.236,25.426-137.367,5.65L307.543,619.608z"/>
+<path id="path158" fill="#A5264C" d="M315.367,648.396c0,0,3.531,12.713-0.707,19.774c0,0-2.824,1.413-4.943,2.119
+ c0,0,2.119,6.356,12.713,9.182c0,0,3.531,7.77,7.77,8.476s12.713,10.594,19.774,8.475c7.063-2.118,26.839-9.181,26.839-9.181
+ s9.888-5.65,25.425,0.706c0,0,4.192-1.416,4.942-8.476c0.884-8.299,6.356-14.832,9.889-18.362
+ c3.531-3.531,20.48-26.133,18.362-26.838C433.313,633.564,315.367,648.396,315.367,648.396z"/>
+<path id="path162" fill="#FF727F" stroke="#000000" d="M307.598,562.938c0,0-4.943,39.552,0.707,54.383
+ c5.649,14.832,4.237,18.362,2.824,25.426c-1.412,7.063,6.356,24.719,16.244,35.313l21.188,2.825c0,0,26.839-6.355,43.082-1.412
+ c0,0,15.881,2.371,21.895-24.014c0,0,8.476-11.3,21.188-16.243c12.713-4.943,25.426-78.395,18.362-92.52
+ c-7.063-14.126-32.488-21.896-60.738,5.648S360.567,550.227,307.598,562.938z"/>
+<path id="path166" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M310.423,695.009c0,0-1.412-3.531-9.181-4.237
+ c0,0-39.55-6.355-54.382-28.25c0,0-12.006-9.888-4.238,10.595c0,0,18.363,36.019,30.369,40.963
+ C272.991,714.078,301.948,721.141,310.423,695.009z"/>
+<path id="path170" fill="#CC3F4C" d="M451.572,582.058c1.163-13.96,4.61-29.169,1.515-35.361
+ c-11.382-22.768-41.35-13.253-60.738,5.648c-28.25,27.544-31.78-2.118-84.751,10.595c0,0-3.081,24.653-1.598,42.332
+ c0,0,65.867-20.438,67.28-10.551c0,0,2.823-5.649,19.067-5.649S448.747,587.001,451.572,582.058z"/>
+<path id="path174" stroke="#A51926" stroke-width="2" d="M375.398,564.352c0,0,8.476,8.476,2.118,25.426
+ c0,0-25.426,28.25-21.895,52.97"/>
+<path id="path178" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M290.648,714.078c0,0-7.769-22.602,7.769-10.594
+ c0,0,8.475,3.53,6.356,6.354C302.654,712.665,292.767,719.729,290.648,714.078z"/>
+<path id="path182" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M299.547,716.196c0,0-6.215-18.08,6.215-8.476
+ c0,0,7.806,4.322,5.084,5.085C302.795,715.066,310.847,719.587,299.547,716.196z"/>
+<path id="path186" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M308.021,716.196c0,0-6.215-18.08,6.215-8.476
+ c0,0,7.725,4.078,5.086,5.085C313.39,715.066,319.322,719.587,308.021,716.196z"/>
+<path id="path190" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M319.675,716.55c0,0-6.215-18.08,6.215-8.476
+ c0,0,7.739,4.118,5.087,5.085C325.749,715.066,330.977,719.939,319.675,716.55z"/>
+<path id="path194" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M331.116,716.408c0,0-6.215-18.08,6.217-8.476
+ c0,0,6.78,2.825,5.085,5.085C340.723,715.278,342.418,719.799,331.116,716.408z"/>
+<path id="path198" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M342.911,717.609c0,0-8.477-21.896,7.769-10.595
+ c0,0,8.476,3.531,6.356,6.355C354.917,716.196,357.036,721.847,342.911,717.609z"/>
+<path id="path202" stroke="#A5264C" stroke-width="2" d="M292.767,687.24c0,0,23.307-4.944,33.9,0.706
+ c0,0,10.594,2.119,12.713,1.412c2.118-0.706,7.77-1.412,7.77-1.412"/>
+<path id="path206" stroke="#A5264C" stroke-width="2" d="M352.799,702.777c0,0,21.188-24.014,42.375-16.243
+ c12.389,4.543,10.594-1.413,12.006-6.356c1.413-4.943,1.768-12.358,10.596-17.656"/>
+<path id="path210" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M383.168,674.527c0,0-7.063-19.069-12.007,3.53
+ c-4.944,22.602-10.594,28.957-13.419,33.9c0,0,0,9.182,14.831,8.476c0,0,19.068-0.707,19.774-5.649
+ C393.055,709.84,390.23,689.358,383.168,674.527z"/>
+<path id="path214" stroke="#A5264C" stroke-width="2" d="M407.887,687.24c0,0,6.356-4.237,10.594-2.119"/>
+<path id="path218" stroke="#A5264C" stroke-width="2" d="M419.363,658.283c0,0,5.12-8.651,13.596-10.063"/>
+<path id="path222" fill="#B2B2B2" d="M279.348,723.259c0,0,31.781,5.65,39.551,2.825c0,0,15.536,0,0.706,3.531
+ c0,0-22.602,0-36.727-2.118C282.879,727.497,262.397,717.609,279.348,723.259z"/>
+<path id="path226" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M304.066,558.701c0,0,31.075,0,34.606,1.412
+ c0,0,12.713,54.382,6.356,67.801c0,0-2.118,4.944-7.063-4.943c0,0-32.488-57.913-38.138-61.443
+ C294.177,557.996,301.948,558.701,304.066,558.701z"/>
+<path id="path230" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M167.936,553.934c0,0,15.714,3.002,37.961,7.594
+ c0,0,8.475,39.551,14.125,48.024c5.65,8.475-0.706,8.476-7.063,3.531s-32.488-29.663-36.019-37.432
+ C173.409,567.882,167.936,553.934,167.936,553.934z"/>
+<path id="path234" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M206.534,561.909c0,0,10.241,2.732,12.022,6.645
+ c1.78,3.909-2.123,9.73-2.123,9.73s-1.766,5.835-3.888,2.018C210.424,576.483,205.353,562.958,206.534,561.909z"/>
+<path id="path238" d="M206.603,561.526c0,0,6.356,9.182,12.713,9.182c6.356,0,7.031-0.729,12.006,0.353
+ c8.122,1.767,7.416-1.766,19.069,0.354c4.661,0.848,9.181-0.706,14.125,1.412c4.944,2.119,10.594,0.706,12.713-2.825
+ s10.594-10.946,10.594-10.946s-22.6,3.179-27.544,4.591C260.279,563.645,220.729,565.764,206.603,561.526z"/>
+<path id="path242" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M285.351,561.879c0,0-11.389,6.182-12.095,10.418
+ c-0.707,4.237,9.27,10.771,9.27,10.771s4.855,8.122,5.915,3.884C289.5,582.714,286.763,562.586,285.351,561.879z"/>
+<path id="path246" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M219.166,571.527c0,0,12.372,19.754,12.755-0.041
+ c0,0,0.983-2.223-2.124-2.261C219.07,569.092,221.756,561.85,219.166,571.527z"/>
+<path id="path250" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M231.839,571.967c0,0,13.986,19.752,12.863-0.164
+ c0,0,0.012-0.587-3.083-0.855C233.238,570.215,233.847,562.238,231.839,571.967z"/>
+<path id="path254" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M244.575,571.98c0,0,14.054,18.766,12.873,1.697
+ c0,0,0.21-2.177-2.71-2.708C247.866,569.725,247.494,563.987,244.575,571.98z"/>
+<path id="path258" fill="#FFFFCC" stroke="#000000" stroke-width="0.5" d="M256.716,572.122c0,0,13.948,20.412,14.563,3.143
+ c0,0,2.903-2.433-0.18-2.824C260.826,571.133,262.235,563.269,256.716,572.122z"/>
+<path id="path262" fill="#E5E5B2" d="M192.845,578.354l-13.521-2.702c-4.591-8.828-8.299-19.688-8.299-19.688
+ s11.212,1.767,33.282,6.709c0,0,1.547,5.858,4.146,16.091L192.845,578.354z"/>
+<path id="path266" fill="#E5E5B2" d="M307.732,570.123c-2.942-4.425-5.268-7.528-6.416-8.245c-5.32-3.325,1.995-2.659,3.989-2.659
+ c0,0,29.258,0,32.583,1.329c0,0,0.926,3.959,2.134,9.946C340.022,570.494,322.21,566.945,307.732,570.123z"/>
+<path id="path270" fill="#CC7226" d="M402.378,326.201c48.945,6.992,94.004-55.936,97.112-73.028
+ c3.106-17.092-14.762-38.067-14.762-38.067c2.33-5.438-6.216-30.298-15.537-46.613c-9.322-16.314-37.398-14.595-68.367-16.314
+ c-27.968-1.554-60.599,39.621-62.928,42.729c-2.331,3.108,8.546,70.698,10.876,80.798s-2.33,56.712-2.33,56.712
+ C406.897,316.349,353.434,319.209,402.378,326.201z"/>
+<path id="path274" fill="#EA8E51" d="M339.182,196.051c-2.288,3.051,8.392,69.413,10.68,79.328
+ c2.288,9.916-2.288,55.682-2.288,55.682c57.687-15.679,6.864-12.967,54.918-6.102c48.056,6.865,92.296-54.918,95.347-71.701
+ c3.051-16.781-14.492-37.375-14.492-37.375c2.288-5.339-6.103-29.748-15.255-45.766c-9.153-16.018-36.717-14.328-67.125-16.018
+ C373.506,152.573,341.47,193,339.182,196.051z"/>
+<path id="path278" fill="#EFAA7C" d="M340.467,197.195c-2.245,2.995,8.235,68.127,10.481,77.859s-2.246,54.65-2.246,54.65
+ c55.448-16.173,6.737-12.727,53.9-5.989c47.166,6.738,90.587-53.901,93.581-70.373c2.994-16.47-14.224-36.683-14.224-36.683
+ c2.245-5.24-5.989-29.197-14.973-44.918c-8.984-15.721-36.037-14.063-65.882-15.721C374.155,154.522,342.713,194.2,340.467,197.195z
+ "/>
+<path id="path282" fill="#F4C6A8" d="M341.753,198.339c-2.204,2.938,8.079,66.842,10.282,76.391
+ c2.204,9.548-2.203,53.619-2.203,53.619c51.974-15.961,6.61-12.487,52.885-5.876c46.275,6.611,88.877-52.884,91.815-69.043
+ c2.938-16.161-13.956-35.993-13.956-35.993c2.203-5.142-5.876-28.646-14.69-44.07c-8.813-15.425-35.355-13.799-64.638-15.425
+ C374.806,156.472,343.956,195.401,341.753,198.339z"/>
+<path id="path286" fill="#F9E2D3" d="M343.038,199.483c-2.161,2.881,7.924,65.557,10.085,74.921
+ c2.161,9.365-2.161,52.588-2.161,52.588c49.205-15.75,6.483-12.246,51.868-5.763c45.386,6.483,87.168-51.868,90.049-67.718
+ c2.882-15.849-13.687-35.299-13.687-35.299c2.161-5.042-5.765-28.095-14.408-43.223c-8.646-15.128-34.677-13.534-63.396-15.128
+ C375.455,158.421,345.199,196.602,343.038,199.483z"/>
+<path id="path290" fill="#FFFFFF" d="M402.942,319.984c44.493,6.356,85.459-50.85,88.283-66.388
+ c2.825-15.538-13.419-34.606-13.419-34.606c2.119-4.944-5.65-27.544-14.127-42.375c-8.475-14.831-33.995-13.267-62.149-14.831
+ c-25.427-1.413-55.088,36.019-57.207,38.844c-2.119,2.825,7.769,64.27,9.888,73.451c2.119,9.182-2.119,51.557-2.119,51.557
+ C397.116,310.45,358.448,313.628,402.942,319.984z"/>
+<path id="path294" fill="#CCCCCC" d="M484.87,259.953c0,0-49.087,13.419-69.568,10.594c0,0-27.896-11.653-43.435,26.838
+ c0,0-6.356,12.713-9.889,16.244C358.447,317.16,484.87,259.953,484.87,259.953z"/>
+<path id="path298" d="M491.58,256.068c0,0-51.206,21.541-68.862,20.834c0,0-28.956-8.122-43.788,17.656
+ c0,0-14.831,16.244-20.48,19.069c0,0-0.706,2.825,10.594-4.238l18.363,9.182c0,0,26.131,16.95,43.081-11.3
+ c0,0,7.063-19.775,7.063-23.307c0-3.532,37.433-13.419,40.259-14.125C480.633,269.134,492.286,261.718,491.58,256.068z"/>
+<path id="path302" fill="#99CC32" d="M407.887,319.479c-12.134,0-26.918-6.824-26.918-17.857c0-11.032,14.784-22.094,26.918-22.094
+ c12.138,0,21.976,8.943,21.976,19.975C429.861,310.537,420.023,319.479,407.887,319.479z"/>
+<path id="path306" fill="#659900" d="M401.489,290.021c-8.557,1.275-17.541,3.929-17.414,3.547
+ c2.719-8.156,13.95-14.041,23.812-14.041c7.585,0,14.273,3.493,18.222,8.807C426.107,288.335,416.722,287.753,401.489,290.021z"/>
+<path id="path310" fill="#FFFFFF" d="M422.718,289.616c0,0-7.769-5.65-7.769-1.766C414.949,287.85,421.306,295.619,422.718,289.616z
+ "/>
+<path id="path314" d="M405.063,303.963c-4.412,0-7.989-3.577-7.989-7.991c0-4.412,3.577-7.989,7.989-7.989
+ c4.413,0,7.99,3.577,7.99,7.989C413.053,300.386,409.476,303.963,405.063,303.963z"/>
+<path id="path318" fill="#CC7226" d="M221.435,280.434c0,0-5.65-37.432-1.413-45.2c0,0,19.069-17.657,18.363-24.013
+ c0,0-0.706-31.782-2.825-33.194c-2.119-1.413-15.538-12.006-26.131-0.706c0,0-18.363,31.781-16.95,43.082v3.531
+ c0,0-13.419-0.706-16.244,2.825c0,0-2.119,9.181-4.238,9.888c0,0-4.944,4.237-1.413,9.181c0,0-3.531,4.237-2.825,11.3l13.419,7.063
+ c0,0,3.531,25.425,22.601,34.606C212.317,302.909,217.903,291.028,221.435,280.434z"/>
+<path id="path322" fill="#FFFFFF" d="M219.669,277.186c0,0-5.085-33.688-1.271-40.681c0,0,17.162-15.891,16.527-21.611
+ c0,0-0.636-28.604-2.543-29.875c-1.907-1.271-13.984-10.806-23.518-0.636c0,0-16.526,28.604-15.255,38.773v3.178
+ c0,0-12.077-0.636-14.62,2.542c0,0-1.907,8.263-3.813,8.899c0,0-4.45,3.813-1.271,8.263c0,0-3.178,3.813-2.542,10.17l12.077,6.356
+ c0,0,3.178,22.883,20.34,31.146C211.462,297.411,216.491,286.72,219.669,277.186z"/>
+<path id="path326" fill="#EB955C" d="M234.765,179.775c-1.924-1.519-15.149-11.706-25.478-0.688c0,0-17.904,30.987-16.526,42.004
+ v3.443c0,0-13.083-0.688-15.838,2.754c0,0-2.066,8.952-4.132,9.641c0,0-4.82,4.132-1.377,8.952c0,0-3.443,4.132-2.754,11.018
+ l13.083,6.886c0,0,3.443,24.79,22.035,33.741c8.323,4.008,13.772-7.574,17.215-17.903c0,0-5.509-36.496-1.377-44.07
+ c0,0,18.592-17.215,17.903-23.413C237.52,212.139,236.831,181.152,234.765,179.775z"/>
+<path id="path330" fill="#F2B892" d="M233.971,181.523c-1.73-1.625-14.761-11.406-24.825-0.671c0,0-17.444,30.192-16.103,40.927
+ v3.355c0,0-12.748-0.671-15.432,2.684c0,0-2.013,8.722-4.026,9.394c0,0-4.696,4.025-1.342,8.722c0,0-3.354,4.025-2.684,10.735
+ l12.748,6.709c0,0,3.354,24.154,21.47,32.876c8.111,3.906,13.419-7.38,16.773-17.445c0,0-5.368-35.56-1.342-42.94
+ c0,0,18.115-16.773,17.444-22.812C236.654,213.057,235.983,182.865,233.971,181.523z"/>
+<path id="path334" fill="#F8DCC8" d="M233.176,183.271c-1.536-1.73-14.373-11.106-24.172-0.653c0,0-16.985,29.398-15.679,39.851
+ v3.266c0,0-12.413-0.653-15.026,2.613c0,0-1.96,8.493-3.919,9.146c0,0-4.573,3.92-1.307,8.493c0,0-3.267,3.92-2.613,10.453
+ l12.413,6.533c0,0,3.266,23.518,20.905,32.011c7.897,3.803,13.065-7.186,16.332-16.985c0,0-5.227-34.624-1.307-41.811
+ c0,0,17.639-16.332,16.985-22.211C235.789,213.976,235.136,184.578,233.176,183.271z"/>
+<path id="path338" fill="#FFFFFF" d="M219.669,277.009c0,0-5.085-33.512-1.271-40.504c0,0,17.162-15.891,16.527-21.611
+ c0,0-0.636-28.604-2.543-29.875c-1.342-1.836-13.984-10.806-23.518-0.636c0,0-16.526,28.604-15.255,38.773v3.178
+ c0,0-12.077-0.636-14.62,2.542c0,0-1.907,8.263-3.813,8.899c0,0-4.45,3.813-1.271,8.263c0,0-3.178,3.813-2.542,10.17l12.077,6.356
+ c0,0,3.178,22.883,20.34,31.146C211.462,297.411,216.491,286.543,219.669,277.009z"/>
+<path id="path342" fill="#CCCCCC" d="M214.195,265.956c0,0-38.138-18.01-39.727-19.422c0,0,16.067,14.479,17.48,14.479
+ C193.361,261.013,214.195,265.956,214.195,265.956z"/>
+<path id="path346" d="M184.003,255.009c0,0,32.488,6.356,32.488,14.125c0,5.141-0.429,28.834-9.888,26.131
+ C191.772,291.028,198.128,265.603,184.003,255.009z"/>
+<path id="path350" fill="#99CC32" d="M198.834,261.718c0,0,15.852,2.603,17.656,7.416c1.06,2.825,2.23,17.494-7.416,19.422
+ C201.038,290.165,197.101,272.118,198.834,261.718z"/>
+<path id="path354" d="M350.671,336.845c-0.878-3.076,1.438-2.845,4.601-3.794c3.53-1.06,25.071-7.769,26.483-12.359
+ c1.413-4.591,24.719,3.178,24.719,3.178c3.18,1.412,10.947,6.003,10.947,6.003c8.476,2.119,20.128,2.825,20.128,2.825
+ c4.238,1.766,10.241,6.709,10.241,6.709c25.778,18.009,47.674,5.297,47.674,5.297c35.313-11.653,24.72-42.022,24.72-42.022
+ c-5.298-15.891,0.354-21.894,0.354-21.894c0.354-6.709,13.064,4.591,13.064,4.591c4.592,7.416,6.005,16.244,6.005,16.244
+ c14.125,19.775,8.122-11.653,8.122-11.653c0.353-1.766-4.592-8.122-4.592-10.241s-3.179-8.122-3.179-8.122
+ c-5.297-6.003-1.06-18.363-1.06-18.363c3.179-24.366-0.706-21.188-0.706-21.188c-2.118-3.178-18.362,14.478-18.362,14.478
+ c-3.885,6.003-14.479,8.828-14.479,8.828c-4.942,3.178-10.946,0.707-10.946,0.707c-4.59-0.707-14.479,11.653-14.479,11.653
+ c4.943-0.354,9.182,7.416,13.419,7.769c4.237,0.354,7.415-4.237,10.24-5.297c2.825-1.059,7.769,9.182,7.769,9.182
+ c0.707,4.59-9.181,13.065-9.181,13.065c-0.707,8.122-3.531,5.297-3.531,5.297c-5.297-1.059-7.415,5.65-9.182,13.772
+ c-1.766,8.122-9.182,8.829-9.182,8.829c-2.825,13.065-4.945,7.769-4.945,7.769c-0.354-9.888-10.947,0.353-10.947,0.353
+ c-2.118,3.531-10.239-0.353-10.239-0.353c-12.008-3.531-7.77-7.063-7.77-7.063c3.178-3.884,22.953,0,22.953,0
+ c3.884-2.825-10.241-9.888-10.241-9.888c-1.06-3.178,0.706-10.947,0.706-10.947c2.119-5.65,14.126-15.538,14.126-15.538
+ c16.599-2.119,11.654-4.944,11.654-4.944c-10.946-9.182-21.189,4.237-21.189,4.237c-3.884,10.947-34.605,37.432-34.605,37.432
+ c-8.476,6.003-3.884-6.003-10.947,0c-7.063,6.003-43.435-9.888-43.435-9.888c-20.414-2.106-25.238,25.688-31.47,20.18
+ C343.93,331.689,353.496,346.732,350.671,336.845z"/>
+<path id="path358" d="M694.629,43.132c0,0-45.201,14.125-50.145,47.319c0,0-4.237,40.256,31.78,71.332c0,0,0.707,11.3,4.238,16.95
+ c0,0-2.825,8.475,30.368-4.944l48.025-14.832c0,0,11.301-4.238,20.481-19.775c9.181-15.538,36.019-48.731,29.662-93.226
+ c0,0,2.119-19.775-8.475-20.481c0,0-14.832-2.825-27.544,10.594c0,0-12.008,5.65-16.244,4.944L694.629,43.132z"/>
+<path id="path362" d="M791.069,41.384c0,0,3.708-15.767-4.837-7.222c0,0-12.432,10.1-25.641,10.1c0,0-25.637,3.884-33.404,27.191
+ c0,0-6.992,47.39,6.99,57.489c0,0,8.546,13.207,20.978,1.554C767.587,118.843,794.954,65.467,791.069,41.384z"/>
+<path id="path366" fill="#323232" d="M790.409,42.016c0,0,3.689-15.438-4.7-7.048c0,0-12.204,9.916-25.173,9.916
+ c0,0-25.171,3.814-32.798,26.697c0,0-6.865,46.528,6.863,56.444c0,0,8.392,12.967,20.596,1.525
+ C767.403,118.108,794.224,65.661,790.409,42.016z"/>
+<path id="path370" fill="#666666" d="M789.749,42.648c0,0,3.673-15.11-4.563-6.875c0,0-11.978,9.732-24.705,9.732
+ c0,0-24.705,3.743-32.191,26.202c0,0-6.738,45.667,6.737,55.399c0,0,8.234,12.727,20.213,1.497
+ C767.22,117.374,793.492,65.855,789.749,42.648z"/>
+<path id="path374" fill="#999999" d="M789.089,43.28c0,0,3.654-14.782-4.425-6.703c0,0-11.752,9.549-24.24,9.549
+ c0,0-24.239,3.672-31.584,25.708c0,0-6.609,44.805,6.61,54.354c0,0,8.08,12.487,19.832,1.469
+ C767.036,116.639,792.762,66.05,789.089,43.28z"/>
+<path id="path378" fill="#CCCCCC" d="M788.429,43.912c0,0,3.638-14.454-4.287-6.529c0,0-11.527,9.365-23.773,9.365
+ c0,0-23.772,3.602-30.978,25.213c0,0-6.482,43.943,6.483,53.309c0,0,7.924,12.247,19.45,1.441
+ C766.851,115.904,792.03,66.244,788.429,43.912z"/>
+<path id="path382" fill="#FFFFFF" d="M787.767,44.544c0,0,3.619-14.125-4.148-6.356c0,0-11.301,9.181-23.308,9.181
+ c0,0-23.307,3.531-30.368,24.719c0,0-6.356,43.082,6.355,52.263c0,0,7.77,12.006,19.069,1.412
+ C766.667,115.17,791.298,66.438,787.767,44.544z"/>
+<path id="path386" fill="#992600" d="M414.243,403.323c0,0-36.021-33.901-50.146-35.313c0,0-60.738-7.063-86.87,24.719
+ c0,0,31.076-36.019,79.807-26.131c0,0-38.138-7.769-60.032-2.119c0,0-29.663,0-46.613,24.719l-4.944,8.475
+ c0,0,7.063-26.131,39.55-36.726c0,0,40.256-8.475,59.326,0c0,0-38.138-12.006-55.794-8.475c0,0-53.675-4.237-76.275,42.375
+ c0,0,7.063-25.425,33.194-38.138c0,0,24.013-15.538,60.032-10.594c0,0,25.425,5.65,34.607,9.888
+ c9.182,4.237,7.063-0.707-7.769-9.182c0,0-9.889-17.656-34.607-16.95c0,0-75.57,6.356-93.932,27.544
+ c0,0,24.013-19.775,42.375-24.719c0,0,39.55-14.125,54.381-12.713c0,0,43.788,1.766,57.207-5.297c0,0-19.775,8.828-14.125,14.479
+ c5.649,5.65,17.656,19.069,17.656,21.188s42.729,41.14,49.085,48.908L414.243,403.323z"/>
+<path id="path390" fill="#CCCCCC" d="M658.607,745.857c0,0-27.367-64.445-49.438-81.221c0,0,45.906,28.251,52.086,60.032
+ C661.256,724.67,661.256,742.326,658.607,745.857z"/>
+<path id="path394" fill="#CCCCCC" d="M741.593,759.1c0,0-46.789-97.109-79.454-139.484c0,0,76.807,66.212,85.635,113.001
+ l0.883,9.711l-5.297-4.414C743.358,737.912,742.476,753.803,741.593,759.1z"/>
+<path id="path398" fill="#CCCCCC" d="M841.352,673.466c0,0-110.353-105.056-113.001-109.47c0,0,106.821,116.533,112.118,129.775
+ C840.469,693.771,836.938,677.88,841.352,673.466z"/>
+<path id="path402" fill="#CCCCCC" d="M508.528,750.271c0,0,34.43-91.813,67.977-52.087c0,0,26.485,17.656,25.604,22.953
+ c0,0-7.063-11.477-38.846-10.594C563.263,710.545,529.716,705.248,508.528,750.271z"/>
+<path id="path406" fill="#CCCCCC" d="M844.883,525.152c0,0-79.454-50.321-92.695-52.971c-20.848-4.168,87.398,51.204,96.228,69.743
+ C848.414,541.926,851.945,537.512,844.883,525.152z"/>
+<path id="path410" d="M578.803,713.371c0,0,36.02-3.531,48.025-15.537l7.769,6.356l31.075-67.802l6.356,9.183
+ c0,0,25.426-26.132,24.013-40.257c-1.412-14.125,22.601,10.594,22.601,10.594s-1.413-20.481,11.301-8.477
+ c0,0-4.237-27.544,10.594-13.419c0,0-18.604-53.246,21.188-7.769c9.889,11.3,2.119-0.706,2.119-0.706s-45.905-84.751-7.769-59.325
+ c0,0,3.531-40.257,1.412-48.026c-2.118-7.769-5.649-47.319-14.125-56.502c-8.477-9.182,0.706-12.006,10.594-2.824
+ c0,0-19.775-42.375,3.531-21.188c0,0-6.356-26.838-14.125-31.782c0,0-9.889-30.369,16.949-11.3c0,0-7.769-21.894-13.419-27.544
+ c0,0-20.48-48.732-7.769-40.257l7.769,6.356c0,0-12.007-24.719-0.706-16.95s11.301,7.063,11.301,7.063s-37.433-58.62-1.412-27.544
+ c0,0-14.406-24.574-20.481-36.726c0,0-33.193-36.019-7.77-24.719l8.476,2.825c0,0-15.538-17.656-29.663-20.481
+ c-14.125-2.825,4.237-14.125,15.538-10.594c11.3,3.531,38.844,16.95,38.844,16.95s22.602,33.194,29.663,33.9
+ c0,0-35.313-13.419-24.719,0.706c0,0,25.425,24.719,12.712,24.013c0,0-10.594,12.713-2.118,28.25c0,0-32.592-32.472-6.355,12.712
+ l12.006,28.957c0,0-43.081-43.788-23.306-4.944c0,0,30.369,41.669,33.899,42.375c3.531,0.707,11.3,16.244,11.3,16.244l-7.769-3.531
+ l9.181,15.538c0,0-19.774-21.188-9.181,2.119l9.887,25.425c0,0-36.019-38.844-12.006,13.42c0,0-28.957-9.183-13.419,21.188
+ c0,0-2.825,28.252-2.119,37.434c0.707,9.183,2.825,59.325-4.942,73.451c-7.77,14.125,10.594,48.025,14.125,55.088
+ c3.53,7.063,9.888,26.131-5.65,9.889c-15.537-16.244-7.769-6.356-4.237,9.181c3.531,15.538,14.125,43.082,12.713,52.97
+ c0,0-2.118,2.119-7.769-4.236c0,0-26.132-40.258-23.307-14.832c0,0-2.119,14.125-7.77,29.663c0,0-5.649,19.068-5.649,3.53
+ c0,0-5.65-29.663-10.595-16.244c-4.943,13.42-11.301,24.014-16.244,28.251c-4.942,4.237-14.125-36.02-16.243-17.656
+ c0,0-21.188-21.895-29.662,7.063l-20.482,28.957c0,0-0.706-21.894-2.824-11.3C650.135,710.547,597.165,721.141,578.803,713.371z"/>
+<path id="path414" d="M518.064,83.389c0,0-20.481-14.125-27.545-13.419c-7.063,0.706,48.731-15.538,121.477,33.194
+ c0,0,8.476,4.944,14.832,4.238c0,0,5.648,4.237,0.706,10.594c0,0-15.538,16.95,4.237,36.725c0,0,32.487,12.006,22.601-3.531
+ c0,0,19.069,7.063,23.307,14.125c4.238,7.062,2.118,0,2.118,0s-11.3-12.713-21.894-21.894c0,0-9.183-3.531-14.125-18.363
+ c-4.944-14.832-9.183-32.488-1.413-38.138c0,0-7.063,7.769-5.649,0.706c1.412-7.063,7.77-13.419,10.594-14.125
+ c2.825-0.707,31.781-28.604,43.788-29.31c0,0-16.244,2.472-21.541,0.706S617.293,23.003,606.7,20.884c0,0-29.662-11.653-8.476-8.122
+ c0,0,63.211,6.709,95.346,30.016c0,0-12.713-14.832-45.2-27.191c0,0-39.197-22.247-101.349-13.419c0,0-31.429,5.65-45.2,8.828
+ c0,0-4.591-1.06-5.65-1.766c-1.059-0.706-21.896-16.597-70.627-4.237c0,0-30.016,8.122-45.2,16.597c0,0-26.838,2.119-33.193,7.769
+ c0,0-32.842,25.778-36.372,27.191c-3.531,1.413-23.66,14.831-25.072,15.538c0,0,43.435-11.653,47.672-15.891
+ c4.238-4.237,34.96-8.828,39.197-6.356c4.238,2.472,19.069,1.413,2.119,2.472c0,0,133.483,26.132,134.896,29.663
+ C511.002,85.507,518.064,83.389,518.064,83.389z"/>
+<path id="path418" fill="#CC7226" d="M644.131,67.145c0,0-18.009-13.066-21.54-13.066c-3.532,0-25.426-18.009-32.842-17.303
+ c-7.415,0.707-28.956-16.95-77.335-2.472c0,0-1.061-3.531,5.297-4.944c0,0,11.301-3.884,12.007-4.944c0,0,35.666-7.416,48.378-1.06
+ c0,0,16.244,4.591,27.191,15.538c0,0,19.775,5.65,25.425,3.885c0,0,15.538,3.884,16.244,7.063c0,0,10.241,5.297,7.063,9.888
+ C654.019,59.729,654.725,62.554,644.131,67.145z"/>
+<path id="path422" fill="#CC7226" d="M622.112,63.421c1.425,1.116,3.224,1.289,4.292,2.717c0.413,0.554-0.099,1.13-0.653,1.301
+ c-1.842,0.56-3.706-0.447-5.723,0.591c-0.71,0.366-1.844,0.044-2.819-0.219c-2.882-0.779-6.111-0.823-9.097,0.392
+ c-3.505-1.994-7.672-0.962-11.348-2.73c-0.102-0.047-0.493,0.563-0.625,0.516c-5.378-2.021-11.985-1.522-16.278-5.555
+ c-4.286-0.728-8.448-1.543-12.735-2.744c-3.21-0.899-5.697-2.645-8.558-4.114c-2.433-1.25-5.004-2.171-7.713-2.828
+ c-3.289-0.798-6.521-0.601-9.864-1.519c-0.164-0.044-0.503,0.563-0.648,0.516c-0.57-0.191-1.084-1.22-1.386-1.127
+ c-2.968,0.922-5.595-0.794-8.533-0.19c-2.08-2.161-5.131-1.729-7.859-2.509c-5.233-1.498-10.804,0.745-16.152-1.022
+ c7.262-3.252,15.538-1.077,22.71-4.73c4.11-2.094,8.811-0.148,13.348-1.49c0.86-0.254,2.08-0.611,2.786,0.57
+ c0.237-0.239,0.56-0.661,0.661-0.611c4.325,2.042,8.413,4.292,12.795,6.174c0.604,0.258,1.542-0.152,1.986,0.205
+ c2.684,2.147,6.114,1.965,8.569,4.119c2.998-0.886,6.164-0.215,9.218-1.317c0.137-0.048,0.55,0.554,0.606,0.516
+ c1.995-1.321,4.035-0.842,5.609-0.306c0.597,0.203,1.768,0.639,2.307,0.77c1.987,0.487,3.499,1.335,5.581,1.658
+ c0.201,0.032,0.527-0.568,0.655-0.519c1.982,0.773,3.822,0.674,4.979,2.729c0.238-0.238,0.529-0.658,0.676-0.611
+ c1.813,0.597,2.959,1.93,4.901,2.355c0.856,0.187,1.938,1.292,2.954,1.603c4.224,1.291,7.479,3.991,11.353,5.571
+ C619.447,62.132,620.994,62.545,622.112,63.421z"/>
+<path id="path426" fill="#CC7226" d="M486.804,38.296c-4.445-3.046-8.627-4.999-12.938-8.152c-0.32-0.235-0.955,0.065-1.313-0.15
+ c-1.776-1.075-3.346-2.101-5.079-3.33c-0.952-0.674-2.4-0.655-3.299-1.11c-4.491-2.281-9.134-3.267-13.56-5.375
+ c1.204-1.126,3.185-0.695,4.236-2.119c0.346,0.495,0.766,0.996,1.389,0.659c2.963-1.596,6.229-1.866,9.188-1.708
+ c3.01,0.163,6.046,0.701,9.181,1.181c0.542,0.083,0.894,1.006,1.464,1.178c3.934,1.171,8.15,0.244,11.894,1.723
+ c2.81,1.111,5.581,2.564,7.77,4.815c0.444,0.459-0.13,0.991-0.623,1.333c0.685-0.193,1.167,0.171,1.361,0.724
+ c0.148,0.422,0.148,0.955,0,1.377c-0.196,0.551-0.689,0.729-1.351,0.819c-2.484,0.336,0.645-2.101-0.591-1.31
+ c-2.248,1.438-0.932,3.92-2.246,6.159c-0.494-0.342-0.9-0.728-0.706-1.413c0.413,0.922-0.65,1.434-0.947,1.992
+ C489.953,36.869,488.366,39.367,486.804,38.296z"/>
+<path id="path430" fill="#CC7226" d="M429.424,51.27c-5.568-1.402-10.954-1.199-16.279-3.452c-0.117-0.049-0.512,0.563-0.625,0.516
+ c-2.411-1.049-4.032-2.754-5.933-4.602c-1.612-1.568-4.539-0.884-6.789-1.744c-0.572-0.219-0.931-1.123-1.462-1.192
+ c-2.152-0.277-3.789-1.953-5.634-2.961c4.124-1.404,8.381-1.349,12.729-2.027c0.199-0.031,0.455,0.535,0.69,0.535
+ c0.24,0,0.47-0.39,0.706-0.627c0.345,0.495,0.878,1.07,1.331,0.622c0.968-0.953,1.949-0.618,2.902-0.547
+ c0.255,0.018,0.476,0.553,0.709,0.553c0.24,0,0.473-0.549,0.707-0.549c0.239,0.001,0.472,0.549,0.706,0.549
+ c0.24,0,0.471-0.39,0.706-0.627c1.223,1.381,2.784,0.403,4.235,0.719c1.833,0.401,2.305,2.428,4.201,2.954
+ c8.324,2.302,15.629,6.09,23.333,9.774c0.542,0.26,0.912,0.698,0.719,1.384c0.471,0,1.023-0.155,1.359,0.078
+ c1.867,1.292,3.706,2.26,4.937,4.199c0.381,0.599-0.199,1.317-0.61,1.226C444.243,54.292,437.17,53.219,429.424,51.27z"/>
+<path id="path434" fill="#CC7226" d="M404.952,129.332c-2.813-2.152-3.842-5.738-5.834-8.902c-0.378-0.6,0.105-1.154,0.666-1.312
+ c0.987-0.281,1.946,0.563,2.669,0.92c3.081,1.522,5.792,3.715,9.316,3.96c3.515,3.945,11.036,4.625,11.049,10.594
+ c0.002,1.517-2.521-0.104-3.278,1.412c-4.328-1.771-8.546-1.589-12.748-4.179C405.702,131.152,406.285,130.353,404.952,129.332z"/>
+<path id="path438" fill="#CC7226" d="M356.33,36.5c0.238,0.002,12.652,0.413,12.622,0.614c-0.079,0.546-13.729,2.398-14.37,2.098
+ c-0.29-0.134-13.554,4.156-13.79,3.92C341.266,42.894,355.86,36.5,356.33,36.5z"/>
+<path id="path442" d="M383.521,53.726c0,0-26.133,3.178-33.9,5.297c-7.77,2.119-40.609,15.538-45.907,19.069
+ c0,0-23.66,9.535-53.675,44.848c0,0,13.419-6.003,17.303-10.947c0,0,24.013-22.247,23.66-17.656c0,0,21.541-15.185,20.481-11.3
+ c0,0,43.082-19.775,39.551-14.125c0,0,38.138-8.122,36.372-4.591c0,0,33.192,7.769,28.25,8.122c0,0-10.241,2.119,1.06,8.475
+ c0,0-6.003,7.769-15.538,0.707c-9.534-7.063-4.236-3.178-13.064-1.413c0,0-4.592,1.413-12.713-5.65c0,0-9.889-8.122-25.426-1.766
+ c0,0-54.029,22.247-57.56,23.307c0,0-6.356,4.944-10.594,11.3c0,0-10.241,7.769-15.538,10.241c0,0-22.6,20.481-24.719,22.953
+ c0,0-6.003,9.181-7.416,9.888c0,0,11.3-6.709,14.831-10.241c0,0,24.719-17.656,34.253-19.069c0,0,7.769-5.297,9.182-7.769
+ c0,0,25.425-16.244,32.84-16.244c0,0,16.244,9.181,20.482-3.178c0,0,10.239-3.178,20.128-1.06c0,0,5.649-4.591,4.236-8.475
+ c0,0,2.825-3.178,4.592,3.531c0,0,6.003,6.356,14.479,2.825c0,0,7.063-0.353,3.531,3.884c0,0-7.77,6.709-28.604,7.063
+ c0,0-21.895,1.06-50.851,14.479c0,0-52.616,18.363-68.86,36.725c0,0-11.3,15.538-20.834,17.657c0,0-10.241,1.412-20.834,14.478
+ c0,0,17.303-10.241,33.194-10.241c0,0,7.063-4.237,0.353,2.119c0,0-6.356,13.418-3.531,22.953c0,0-1.06,9.181-2.472,12.006
+ c0,0-13.772,22.6-13.772,26.838c0,4.237,2.119,21.541,2.825,22.6c0.706,1.06-1.766-2.825,4.944,1.413
+ c6.709,4.237,11.653,7.063,13.065,12.006c1.413,4.944-3.531-9.535-3.884-12.713c-0.353-3.178-7.769-15.891-6.356-20.128
+ c0,0,1.766,1.766,3.178,4.237c0,0-1.059-1.06,0-7.416c0,0,1.413-9.182,3.885-14.832s6.003-12.359,6.709-13.772
+ c0.707-1.413,0.707-11.653,3.178-7.063l6.003,4.59c0,0-4.944-4.59-1.06-8.475c0,0-1.766-9.888,1.413-14.479
+ c0,0,12.359-14.832,15.185-16.597c2.826-1.765,0.353-1.059,0.353-1.059s10.594-7.416,0.353-4.591c0,0-7.063,2.825-12.359,2.825
+ c0,0-13.419,3.531-6.356-3.885s24.719-16.95,31.429-16.597l1.413,2.825l19.775-4.237l-2.119,1.413c0,0-0.353-0.354,7.063-1.06
+ s17.656,1.766,20.128-1.413c2.473-3.178,8.477-4.944,7.771-2.472c-0.706,2.472-1.061,6.003-1.061,6.003s8.828-10.241,7.77-6.356
+ c-1.061,3.884-15.537,13.065-18.011,24.013l18.363-14.479l6.356-5.297c0,0,6.355,3.884,6.709,1.06
+ c0.354-2.825,8.476-13.066,10.594-12.713c2.119,0.353,5.649-4.591,5.297,0c-0.353,4.591,13.066,14.125,13.066,14.125
+ s5.648-3.178,8.122-0.706c2.472,2.472,9.887-34.96,9.887-34.96l44.142-18.716l76.983-6.003l-30.017-12.006L383.521,53.726z"/>
+<path id="path446" stroke="#4C0000" stroke-width="2" d="M415.655,405.089c0,0-26.484-29.663-41.316-34.254
+ c0,0-23.659-12.006-67.094,1.766"/>
+<path id="path450" stroke="#4C0000" stroke-width="2" d="M368.689,368.363c0,0-44.494-14.125-71.687-6.709
+ c0,0-32.488,3.531-47.319,27.897"/>
+<path id="path454" stroke="#4C0000" stroke-width="2" d="M362.333,366.245c0,0-30.016-12.713-56.147-16.597
+ c0,0-29.31-4.591-58.62,8.122c0,0-21.541,10.594-31.075,28.603"/>
+<path id="path458" stroke="#4C0000" stroke-width="2" d="M364.099,366.951c0,0-27.19-19.422-28.957-21.894
+ c0,0-12.358-19.422-35.313-20.128c0,0-37.785,1.413-68.154,15.538"/>
+<path id="path462" d="M361.794,351.072c2.723,2.583,50.33,53.664,50.33,53.664c62.15,64.624,12.713,4.236,12.713,4.236
+ c-13.419-8.475-29.663-41.669-29.663-41.669c-2.119-4.944,24.719,12.713,24.719,12.713c7.063,1.412,31.075,35.313,31.075,35.313
+ c-12.006-4.237-3.53,8.476-3.53,8.476c4.943,3.531,40.965,31.077,40.965,31.077c6.355,7.063,13.419,9.888,13.419,9.888
+ c24.719-9.182,13.419,14.125,13.419,14.125c4.236,12.007,14.125-8.476,14.125-8.476c19.774-29.664-9.182-25.425-9.182-25.425
+ c-52.972,4.942-64.978-23.31-64.978-23.31c-4.238-4.236,11.3,0,11.3,0c14.833,3.531-12.713-21.894-12.713-21.894
+ c4.237,0,20.481,12.006,20.481,12.006c18.363,16.244,21.896,12.713,21.896,12.713c31.782-15.538,50.146-2.119,50.146-2.119
+ c3.53,2.825-6.356,14.832-3.531,24.016c2.825,9.182,11.3,31.075,11.3,31.075c-4.237,2.824-3.531,21.895-3.531,21.895
+ c29.663,40.963,12.713,37.432,12.713,37.432c-27.544-0.707-1.411,12.712-1.411,12.712c5.648,3.531,21.188,16.244,21.188,16.244
+ c-4.944-2.119-7.769,7.063-7.769,7.063c8.475,7.063,3.53,15.538,3.53,15.538c-10.594,2.118-12.713,9.181-12.713,9.181
+ c12.006,14.126-5.649,14.832-5.649,14.832c6.355,7.769-2.118,28.956-2.118,28.956c-8.477,0-19.775,9.888-19.775,9.888
+ c4.237,8.477-14.125,18.363-14.125,18.363c-14.832,2.824-9.888,14.831-9.888,14.831c-14.125,10.594-18.363,38.844-18.363,38.844
+ c-1.412,18.363-5.648,24.014,3.531,20.481c9.182-3.531,7.77-25.425,7.77-25.425c-8.476-27.545,67.095-55.795,67.095-55.795
+ c7.063-2.824,8.476-12.007,8.476-12.007c3.531,0.706,19.069,14.125,19.069,14.125c13.418,19.775,14.125,3.531,14.125,3.531
+ c2.118-6.356-0.707-16.95-0.707-16.95c10.595-38.138-14.125-49.438-14.125-49.438c-17.656-59.326,7.063-44.494,7.063-44.494
+ c4.944,9.888,24.014,19.068,24.014,19.068l6.355-4.237c-2.824-8.477,12.007-19.069,12.007-19.069
+ c4.943,11.301,15.537-2.824,15.537-2.824c6.356-43.082,28.251-17.656,28.251-17.656c7.063,2.119,9.182-9.889,9.182-9.889
+ c6.355-18.361,0-42.375,0-42.375c6.355-0.706,23.307,9.889,23.307,9.889c4.944-6.356-11.3-36.021-4.237-31.781
+ c7.063,4.237,14.831,7.063,14.831,7.063c1.413-3.53-16.243-25.426-16.243-25.426c-7.77-4.945-16.949-40.965-16.949-40.965
+ c12.712,6.356-4.944-20.481-4.944-20.481c0-5.65,10.594-25.425,10.594-25.425c-1.412-12.006,0-11.3,0-11.3
+ c4.944,2.119,19.069,4.944,7.063-6.356c-12.006-11.3,1.413-19.775,1.413-19.775c7.769-4.944-16.244-4.238-16.244-4.238
+ c-9.183-7.769-8.477-14.831-8.477-14.831c14.126,3.531-11.3-21.894-15.536-28.25c-4.237-6.356,12.713-15.538,12.713-15.538
+ c23.307-6.356,2.823-12.006,2.823-12.006c-34.605,0.706-15.536-18.363-15.536-18.363c10.594,0.707,7.769-3.531,7.769-3.531
+ c-9.181-2.119-26.132-13.419-26.132-13.419c-7.063-6.356-0.706-4.944-0.706-4.944c29.663,2.119-21.188-17.656-21.188-17.656
+ c14.125,0-17.655-18.363-17.655-18.363c-3.531-2.825-9.183-16.244-9.183-16.244c-10.594-9.182-19.067-21.188-19.067-21.188
+ c-0.707-7.769-9.183-16.244-9.183-16.244c-20.48-24.013-30.369-23.307-30.369-23.307c-26.132-6.356-35.313-4.944-35.313-4.944
+ l-93.229,7.769c-46.612,22.6-32.842,59.679-32.842,59.679c11.301,14.831,27.544,8.122,27.544,8.122
+ c8.122-10.947,28.604-7.063,28.604-7.063c36.021,5.65,31.431-0.706,31.431-0.706c-4.237-8.122-32.843-19.069-33.196-20.128
+ c-0.353-1.06-15.891-7.063-15.891-7.063c-5.297-2.119-13.065-18.363-13.065-18.363c-5.649-6.003,22.247,4.238,22.247,4.238
+ c-2.119,1.766,10.947,8.828,10.947,8.828c30.724-1.766,49.439,17.303,49.439,17.303c19.068,29.31,19.422,14.832,19.422,14.832
+ c4.943-16.597-15.892-54.029-15.892-54.029c0.706-3.531,15.186,8.122,15.186,8.122c2.472-3.531,3.885,6.709,3.885,6.709
+ c0.353,4.237,7.063,18.362,7.063,18.362c4.942,22.954,11.3,9.888,11.3,9.888l8.122,16.597c2.472,4.591-8.122,18.01-8.122,18.01
+ c-0.354,4.944,1.06,4.59-8.828,18.009s-3.885,21.188-3.885,21.188c-2.473,11.653,13.064,10.947,13.064,10.947
+ c4.591,3.884,10.595,3.884,10.595,3.884c3.179,3.531,7.415,2.472,7.415,2.472c2.825-6.709,13.772-3.178,13.772-3.178
+ c2.472-4.238,16.95-4.944,16.95-4.944c1.766-4.591,2.472-7.416,8.475-8.475c6.004-1.06-37.432-76.982-37.432-76.982
+ c11.301-1.413-3.179-23.307-3.179-23.307c-3.885-11.653,16.244,14.125,20.128,16.597c3.886,2.472,5.65,6.356,2.825,6.003
+ s-6.003,3.532-3.531,3.885c2.473,0.354,25.427,26.837,31.43,44.847c6.003,18.01,16.597,25.072,27.544,35.666
+ c10.947,10.594,9.534,53.322,9.534,53.322c-0.706,15.538,9.888,34.253,9.888,34.253c3.531,6.709-3.885,38.844-3.885,38.844
+ c-3.531,3.884-1.06,5.297-1.06,5.297c1.767,2.119,13.771,25.425,13.771,25.425c-3.178-0.353,3.179,6.003,3.179,6.003
+ c9.181,10.594-2.119,5.297-2.119,5.297c-10.594-2.825,1.767,14.479,1.767,14.479c2.119,3.178-13.772-4.944-13.772-4.944
+ c-16.243-1.06,4.238,11.653,4.238,11.653c15.185,12.713-4.944,4.943-4.944,4.943c-8.122-3.179-2.472,8.828-2.472,8.828
+ c5.649,2.824,36.02,15.186,36.02,15.186c0.706,6.711-4.591,15.539-4.591,15.539c0.706,7.063-3.179,13.064-3.179,13.064
+ c-2.118,14.479-3.178,15.891-3.178,15.891c-7.416,0.354-20.481,24.721-20.481,24.721c-3.179,4.591-21.188,25.777-21.188,25.777
+ c-3.531,12.359-35.313-0.354-35.313-0.354c-11.653,6.003-8.122,0-8.122,0c-0.706-3.884,7.771-14.479,7.771-14.479
+ c12.358-4.59,7.769-23.658,7.769-23.658c7.063-2.473-12.713-7.416-12.359-9.534c0.354-2.119,10.595-4.591,10.595-4.591
+ c14.125-3.531,6.355-7.77,6.355-7.77c-1.06-7.063,4.237-16.95,4.237-16.95c20.48-1.413,0-30.019,0-30.019
+ c-19.068-13.418-20.835-23.659-20.835-23.659c22.247-14.478,7.77-36.372,8.122-42.729c0.354-6.356,2.473-44.494,2.473-44.494
+ c-3.531-10.947-8.828-34.96-8.828-34.96c3.885-9.181,16.949-31.428,16.949-31.428c4.944-7.416,20.481-15.891,16.598-21.188
+ c-3.885-5.297-17.655-2.119-17.655-2.119c-13.772-2.472-12.713,6.709-12.713,6.709c-2.825,1.766-4.237,10.594-4.237,10.594
+ c-1.273,14.007-16.95,25.072-16.95,25.072c-19.775,10.947-3.531,18.01-3.531,18.01c10.595,11.653-6.71,12.006-6.71,12.006
+ c-19.422-3.178-4.942,14.831-4.942,14.831c19.067,22.601,13.771,27.544,13.771,27.544c-18.009,1.766,4.237,18.009,4.237,18.009
+ s-1.412-3.531-1.06-0.353c0.354,3.178,5.649,10.594,7.063,14.125c1.412,3.531-5.65,3.885-5.65,3.885
+ c1.061,16.95-26.132,9.534-26.132,9.534s0,0-2.824,0.353c-2.824,0.354-22.601-1.059-32.841-4.944
+ c-10.241-3.884-22.248-3.884-22.248-3.884s-7.063,3.178-20.481,2.825s-27.544,4.59-27.544,4.59
+ c-7.771-0.706,7.415-8.475,7.769-8.122s10.24-9.535-3.885-8.475c-38.485,2.887-57.561-15.185-57.561-15.185
+ c-3.53-2.472-8.122-7.416-8.122-7.416c-17.655-3.531,2.473,21.894,2.473,21.894c2.119,2.472-0.354,4.238-0.354,4.238
+ c-1.413-2.825-15.185-12.359-15.185-12.359C368.316,357.817,365.91,355.461,361.794,351.072z"/>
+<path id="path466" fill="#4C0000" d="M319.604,330.579c0,0,20.481,9.887,25.072,14.831c4.591,4.944,29.311,25.072,29.311,25.072
+ s-9.535-3.531-14.125-6.709c-4.592-3.178-23.66-17.656-23.66-17.656S329.492,335.522,319.604,330.579z"/>
+<path id="path470" fill="#99CC32" d="M217.181,275.496c0.595-0.261-0.33-5.05-0.69-6.008c-1.804-4.813-17.656-7.416-17.656-7.416
+ c-0.401,2.41-0.498,5.229-0.311,8.121C198.523,270.192,207.119,279.936,217.181,275.496z"/>
+<path id="path474" fill="#659900" d="M217.181,275.143c-0.793,0.279-0.026-4.827-0.337-5.655
+ c-1.804-4.813-18.009-7.592-18.009-7.592c-0.401,2.41-0.498,5.228-0.311,8.12C198.523,270.015,206.06,279.053,217.181,275.143z"/>
+<path id="path478" d="M209.428,275.395c-1.104,0-1.997-2.013-1.997-4.495c0-2.481,0.894-4.494,1.997-4.494
+ c1.104,0,1.999,2.013,1.999,4.494C211.427,273.382,210.532,275.395,209.428,275.395z"/>
+<path id="path486" d="M128.915,448.525c0,0-9.888,17.655,33.9,7.063c0,0,24.719-2.119,28.957-6.355
+ c2.119,1.411,16.89,6.591,21.894,7.769c12.006,2.825,26.838-14.833,26.838-14.833s8.122-18.539,13.066-18.539
+ c4.944,0-0.707,2.825-0.707,2.825s-11.653,17.834-10.947,20.659c0,0-9.181,35.313-37.432,36.726c0,0-28.515,1.678-26.131,12.007
+ c0,0,15.538-4.237,19.775,0c0,0,19.069-0.707,4.944,10.595l-12.006,20.48c0,0,0.247,6.918-17.656,0.706
+ c-17.303-6.003-35.489-28.78-35.489-28.78S109.758,473.156,128.915,448.525z"/>
+<path id="path490" fill="#E59999" d="M126.796,455.588c0,0-3.531,16.95,61.444-1.413c0,0,7.769,0,12.007,1.413
+ c4.237,1.412,25.425,6.356,28.957,4.237c0,0-12.713,24.013-33.194,21.188c0,0-23.307,2.825-22.6,11.302
+ c0,0,7.063,12.712,15.538,16.949c0,0,4.944,4.237,4.237,9.888c-0.706,5.649-5.65,8.476-9.181,9.888
+ c-3.531,1.413-9.181-4.237-12.006-4.237s-17.656-11.3-25.425-19.774c-7.769-8.476-22.6-29.662-21.894-34.606
+ C125.384,465.476,126.796,455.588,126.796,455.588z"/>
+<path id="path494" fill="#B26565" d="M132.446,486.398c4.591,6.974,10.241,14.39,14.125,18.627
+ c7.769,8.476,22.6,19.774,25.425,19.774c2.825,0,8.475,5.65,12.006,4.237c3.531-1.412,8.475-4.237,9.181-9.888
+ c0.707-5.649-4.237-9.888-4.237-9.888c-5.414-2.707-10.251-8.873-13.04-12.975c0,0,0.327,4.499-8.854,3.087
+ c-9.181-1.413-18.363-6.356-21.188-12.007c-2.825-5.65-7.063-9.888-4.238-3.531s7.063,12.713,9.888,13.419
+ c2.825,0.706,2.119,2.825-2.119,2.119c-4.238-0.707-9.182-1.413-16.95-10.594L132.446,486.398L132.446,486.398z"/>
+<path id="path498" fill="#992600" d="M127.855,449.231c0,0,3.178-24.016,5.297-31.077c0,0-1.413-12.007,2.825-19.422
+ c4.237-7.417,7.769-18.363,13.066-27.897s5.65-16.597,12.712-19.422c7.062-2.825,17.656-18.01,22.6-19.775
+ c4.944-1.765,4.591-0.353,4.591-0.353s12.006-26.131,36.019-19.069c0,0-28.604-4.944-0.706-21.541c0,0-8.475,1.942-2.648-10.417
+ c3.886-8.242,3.001,3.708-16.421,24.542c0,0-8.828,15.185-18.009,20.481c-9.181,5.297-30.369,17.657-32.488,24.366
+ c-2.119,6.709-7.769,16.95-11.3,19.775c-3.531,2.825-8.475,10.241-9.181,16.244c0,0-2.119,7.063-4.591,9.181
+ c-2.472,2.119-2.825,7.769-2.825,11.299c0,3.532-3.531,8.477-3.178,12.714c0,0,1.412,33.549,0.706,37.079L127.855,449.231z"/>
+<path id="path502" fill="#FFFFFF" d="M112.671,457.354c0,0-3.531-2.472-11.3,8.122c0,0,12.889,58.267,12.889,60.738
+ c0,0,1.942-3.708-0.354-16.421c-2.295-12.713-3.884-35.137-3.884-35.137L112.671,457.354z"/>
+<path id="path506" fill="#992600" d="M150.809,350.354c0,0-31.076,5.65-30.369,57.207l-1.413,43.79c0,0-2.119-45.202-4.238-48.026
+ c-2.119-2.825,4.944-22.601-0.706-12.007c0,0-24.719,24.719-10.594,62.152c0,0,2.648,5.827-2.648-2.295
+ c0,0-8.122-22.249-6.18-33.549c0,0,0.353-3.885,3.708-8.828c0,0,15.185-20.659,19.952-24.72c0,0,3.178-25.425,30.369-34.606
+ C148.69,349.471,158.754,345.41,150.809,350.354z"/>
+<path id="path510" d="M396.939,233.468c1.164-0.625,1.148-2.338,2.174-2.644c2.027-0.607,2.317-2.491,3.231-3.875
+ c1.542-2.329,1.883-5.036,2.91-7.668c0.48-1.236,0.527-2.922-0.024-4.087c-2.072-4.381-3.313-8.705-5.858-12.988
+ c-0.473-0.794-0.937-2.196-1.29-3.252c-0.817-2.443-3.037-4.193-4.556-6.524c-0.51-0.779,0.419-2.412-0.847-2.56
+ c-1.584-0.186-4.143-1.209-4.554,0.602c-1.038,4.568,0.747,9.022,2.456,13.334c-1.381,1.222-0.791,2.848-0.522,4.202
+ c1.255,6.367-0.86,12.286-2.204,18.419c-0.041,0.184,0.563,0.533,0.514,0.643c-2.158,4.743-4.722,9.06-7.935,13.264
+ c-1.338,1.751-2.878,3.369-3.755,5.246c-0.649,1.39-1.37,3.095-0.929,4.84c-6.065,4.908-10.038,11.697-14.647,18.488
+ c-0.815,1.201-0.303,3.335,0.672,3.811c1.435,0.703,3.123-1.105,3.953-2.599c0.687-1.232,1.31-2.38,2.177-3.516
+ c0.233-0.309-0.081-1.049,0.157-1.262c4.647-4.144,7.596-9.328,11.927-13.509c3.442-0.581,6.157-2.343,9.243-4.131
+ c0.544-0.316,1.469,0.124,1.98-0.221c3.095-2.078,3.091-5.673,3.278-9.045C394.58,236.872,394.927,234.547,396.939,233.468z"/>
+<path id="path514" d="M381.329,225.583c0.22-0.136-0.055-0.883,0.138-1.264c0.286-0.572,0.998-0.904,1.284-1.476
+ c0.192-0.381-0.096-1.052,0.146-1.303c4.118-4.321,4.572-9.66,2.743-14.909c1.809-1.095,1.915-3.323,1.165-4.818
+ c-1.506-3.002-1.847-6.402-3.567-9.127c-1.416-2.24-4.202-4.437-6.623-2.136c-0.743,0.706-1.311,2.096-0.819,3.353
+ c0.113,0.288,0.616,0.545,0.568,0.69c-0.188,0.572-1.152,0.967-1.163,1.448c-0.053,2.641-1.737,5.309-0.625,7.656
+ c1.363,2.876,2.809,6.155,4.003,9.291c-2.179,3.736-0.355,8.06-3.45,11.374c-0.24,0.258-0.225,0.939-0.009,1.296
+ c0.516,0.858,1.231,1.575,2.09,2.091c0.357,0.213,0.972,0.217,1.324-0.002C379.553,227.106,380.256,226.247,381.329,225.583z"/>
+<path id="path518" d="M492.233,207.377c2.451,3.164,2.964,8.099-0.653,10.554c0.971,5.842,6.888,2.348,10.594,1.412
+ c-0.191-0.685,0.208-1.292,0.708-1.301c1.866-0.026,3.066-1.849,4.941-1.523c0.767-2.75,3.659-3.989,4.796-6.425
+ c3.048-6.524,2.004-14.069-2.559-19.8c-0.356-0.449,0.025-1.361-0.192-2c-1.335-3.904-4.986-4.46-8.401-5.675
+ c-2.078-6.842-3.245-13.959-6.354-20.481c-2.851-0.441-4.082-3.512-6.443-4.783c-2.354-1.27-3.355,1.519-3.284,3.365
+ c0.014,0.362,0.812,0.757,0.512,1.402c-0.136,0.29-0.595,0.486-0.595,0.722c0.002,0.238,0.394,0.47,0.629,0.707
+ c-1.62,1.448-4.134,2.29-4.653,4.312c-1.686,6.55,2.857,12.068,5.804,17.72c1.044,2.004-0.256,4.249-1.598,6.381
+ c-0.773,1.227-0.583,3.217-0.097,4.729C486.714,200.806,489.521,203.876,492.233,207.377z"/>
+<path id="path522" d="M426.622,239.84c-2.626,3.268-8.65,7.804-3.5,11.208c0.343,0.228,0.996,0.234,1.302-0.002
+ c3.568-2.763,7.104-4.357,11.405-5.385c0.22-0.051,0.703,0.773,1.354,0.489c2.849-1.242,6.397-1.139,8.487-3.501
+ c6.651,0.396,12.946-1.575,18.934-3.884c2.051-0.791,4.293-1.778,6.412-2.665c2.431-1.017,4.557-2.655,6.521-4.67
+ c0.233-0.24,0.858-0.082,1.331-0.082c-0.07-1.523,1.628-1.748,2.063-2.846c0.163-0.41-0.102-1.109,0.133-1.289
+ c3.775-2.878,5.399-6.441,3.336-10.638c-0.504-1.021-0.942-2.112-1.941-2.952c-1.916-1.608-3.862-0.101-5.711-0.637
+ c-0.28,1.108-1.567,0.805-2.249,1.155c-1.517,0.775-3.87-0.258-5.387,0.515c-2.405,1.227-4.598,1.526-7.106,2.191
+ c-0.552,0.145-1.925-0.025-2.208,1.083c-0.236-0.237-0.497-0.65-0.685-0.611c-3.369,0.699-5.595,1.077-7.892,4.064
+ c-0.182,0.235-0.962-0.081-1.243,0.157c-1.688,1.427-2.403,3.605-4.349,4.792c-0.354,0.217-0.977-0.079-1.319,0.148
+ c-1.141,0.761-1.787,1.893-2.922,2.682c-0.581,0.404-1.287-0.169-1.229-0.622c0.433-3.438,1.585-6.593,0.569-9.905
+ c3.667-4.449,8.111-7.891,11.301-12.713c0.025-3.824,1.248-7.613,1.049-11.28c-0.019-0.341-0.526-1.635-0.748-2.248
+ c-0.552-1.508,1.049-3.39-0.441-4.668c-2.479-2.124-4.761-0.578-6.216,1.953c-3.245,0.688-6.893,1.912-9.679-0.267
+ c-1.778-1.39-2.799-2.989-4.21-4.854c-1.738-2.299-1.147-4.834-1.023-7.596c0.011-0.226-0.546-0.466-0.546-0.703
+ c0.002-0.238,0.391-0.47,0.627-0.706c-1.246-1.105-1.731-2.974-3.531-3.532c0.538-1.928-0.654-3.489-2.192-4.022
+ c-3.522-1.22-6.483,2.156-9.823,2.285c-0.908,0.034-1.732-1.799-2.878-2.373c-0.764-0.381-2.006-0.439-2.646,0.03
+ c-1.215,0.89-2.255,1.091-3.593,1.453c-2.854,0.77-5.11,2.701-7.725,4.211c-2.622,1.513-4.31,4.05-6.216,6.381
+ c-1.661,2.034-1.901,6.296,0.605,7.179c3.254,1.148,5.557-3.625,9.027-3.049c0.551,0.09,0.915,0.639,0.721,1.324
+ c0.688,0.193,1.071-0.212,1.412-0.706c1.515,1.799,3.57,2.394,5.227,3.936c1.714,1.596,4.796,0.858,6.589,2.619
+ c2.698,2.652,1.712,7.386,5.136,9.69c-1.034,2.318-2.106,4.573-2.698,7.092c-0.497,2.129,1.258,4.243,3.396,4.082
+ c2.222-0.166,2.684-1.506,3.54-3.406c0.472,0.472,1.3,0.996,1.228,1.377c-0.807,4.214-2.62,7.733-3.429,12.025
+ c-0.104,0.56-0.644,0.917-1.33,0.722c-0.826,7.326-7.98,11.553-12.475,17.141c-0.712,0.886-0.719,3.092,0.004,3.803
+ c2.478,2.449,5.938-0.281,8.938-1.169c0.376-2.129,1.893-3.792,4.245-3.694c0.452,0.018,0.866-0.939,1.438-1.169
+ c0.614-0.244,1.501,0.152,2.007-0.198c3.053-2.11,5.539-4.063,8.606-6.162c0.339-0.231,0.946,0.05,1.328-0.141
+ c0.574-0.286,0.904-0.969,1.475-1.296c0.614-0.353,1.041,0.159,1.383,0.653c-1.142,0.616-1.147,2.306-2.176,2.663
+ c-1.367,0.473-2.358,1.379-3.549,2.168c-0.516,0.341-1.68-0.097-1.862,0.219C429.966,237.508,427.875,238.281,426.622,239.84z"/>
+<path id="path526" d="M328.785,152.602c0,0-16.312-5.071-36.019,40.257c0,0-4.238,9.181-8.475,12.712
+ c-4.238,3.531-24.013,9.888-27.544,16.95l-18.363,28.25c0,0,26.131-28.25,31.782-32.488c0,0,14.125-14.832,8.475-2.825
+ c0,0-24.719,19.069-22.601,35.313c0,0-9.887,25.425-11.3,28.957c0,0,28.25-56.5,32.488-58.62c4.237-2.119,6.356-2.119,4.237,4.238
+ c-2.119,6.357-2.825,35.313-7.769,38.844c0,0,14.125-36.02,12.712-41.669c0,0,5.65-6.356,9.888,2.825l-2.119,28.25l7.769,21.188
+ c0,0-4.237-19.775-1.413-47.319c0,0-3.531-18.363,3.531-8.475c7.062,9.888,24.013,20.481,24.013,28.957
+ c0,0-9.181-31.075-25.425-39.55l-7.063,10.594l-2.119-3.531c0,0-6.356-1.413,1.413-13.419c7.769-12.006,7.063-13.419,7.063-13.419
+ s11.3,12.713,14.125,12.713c0,0,23.307-13.419,25.425,29.663c0,0,12.007-25.425-4.237-37.432c0,0-26.132-3.531-24.013-12.712
+ l12.713-21.894c6.356-9.182,3.531-4.238,3.531-4.238L328.785,152.602z"/>
+<path id="path530" d="M293.473,181.558c0,0-22.6,0-28.25,9.181l-12.713,16.95c0,0,30.369-17.656,37.432-19.775
+ S293.473,181.558,293.473,181.558z"/>
+<path id="path534" d="M222.847,192.858c0,0-3.531,2.119-4.238,7.063c-0.706,4.944-4.944,5.65-3.531,10.594
+ c1.413,4.944,4.944,9.182,4.944,2.119c0-7.063,2.825-10.594,4.238-12.712C225.672,197.802,228.497,190.033,222.847,192.858z"/>
+<path id="path538" d="M207.31,300.916c0,0-14.832-7.063-20.481-13.419c-5.65-6.356-4.852,2.765-13.419,2.119
+ c-10.324-0.779-8.475-28.957-8.475-28.957l-7.063,13.418c0,0-2.119,25.425,12.006,21.188c6.898-2.069,9.181,0.706,6.356,2.119
+ c-2.825,1.413,9.887,2.119,4.943,4.944c-4.943,2.825,20.481-6.356,16.244,12.006L207.31,300.916z"/>
+<path id="path542" d="M185.063,326.341c0,0-27.191,7.769-33.547-9.181c0,0-8.475,4.237-4.591,9.534
+ c3.885,5.297,6.003,6.003,6.003,6.003s9.534,2.119,8.475,3.531c-1.06,1.413-5.297,7.416-5.297,7.416S174.115,333.05,185.063,326.341
+ z"/>
+<path id="path546" fill="#FFFFFF" d="M588.337,464.416c-0.754,3.768-3.704,5.182-7.063,6.355c-3.386-1.69-7.973-7.176-11.301-3.53
+ c-0.837-0.849-2.213-0.954-2.819-2.123c-0.82-1.585-0.342-3.433-0.944-4.841c-0.962-2.246-2.214-4.658-1.886-7.161
+ c3.188-1.258,4.239-4.623,3.401-7.735c-0.122-0.454-0.879-0.802-0.525-1.418c0.329-0.57,0.89-0.972,1.36-1.441
+ c-0.237,0.237-0.493,0.648-0.689,0.613c-1.077-0.188-0.857-1.313-0.628-1.995c1.032-3.083,4.589-3.549,6.969-1.443
+ c0.452-0.998,1.352-0.655,2.118-0.706c-0.088-1.022,0.633-1.953,0.982-2.694c0.913-1.938,3.791,0.014,5.197-1.065
+ c1.899-1.457,3.776-2.691,5.681-1.628c3.193,1.789,6.212,3.93,8.327,7.004c1.017,1.473,1.439,3.733,1.338,5.426
+ c-0.067,1.143-2.507,0.521-3.111,2.161c-1.139,3.086,2.095,4.003,3.43,6.364c0.35,0.616-0.117,1.153-0.673,1.326
+ c-0.726,0.227-2.11-0.107-1.866,0.691C597.351,462.212,592.484,463.409,588.337,464.416z"/>
+<path id="path550" fill="#FFFFFF" d="M571.385,499.022c-0.012-3.068-2.839-6.17-0.704-9.183c0.238,0.237,0.471,0.627,0.706,0.627
+ c0.238,0,0.471-0.39,0.706-0.627c2.641,3.913,9.088,5.552,8.837,10.576c-0.038,0.79-1.958,2.41-0.36,3.55
+ c-3.201,2.38-3.3,6.564-4.944,9.887c-2.186-0.505-4.325-1.146-6.356-2.117c0.622-2.624,0.415-5.599,1.863-7.929
+ C571.896,502.575,571.391,500.67,571.385,499.022z"/>
+<path id="path554" fill="#CCCCCC" d="M277.935,483.132c0,0-29.765,17.896-4.944-9.182c15.538-16.95,33.194-26.838,33.194-26.838
+ s18.362-7.771,24.719-9.89c6.355-2.119,33.193-11.301,38.845-12.007c5.649-0.706,22.6-7.769,34.606-0.706
+ c12.006,7.063,26.131,14.831,26.131,14.831s-28.956-14.831-35.313-10.594c-6.356,4.237-19.069,3.531-29.663,9.182
+ c0,0-26.131,7.771-31.781,11.303c-5.649,3.53-24.013,24.013-26.837,22.601c-2.825-1.413,0.706-2.119,2.825-7.063
+ c2.119-4.943-1.412-7.77-15.538,3.531C280.054,479.601,277.935,483.132,277.935,483.132z"/>
+<path id="path558" d="M291.01,472.596c0,0,2.49-23.022,17.459-20.084c0,0,14.523-7.361,19.33-10.837c0,0,14.37-3.006,16.685-4.095
+ c32.627-15.361,58.614-7.383,59.581-9.359c0.965-1.977,35.614,10.59,41.986,17.806c0.69,0.781-18.063-9.884-35.188-13.223
+ c-14.607-2.85-52.748,0.438-72.005,10.211c-5.249,2.664-21.043,12.877-25.513,12.682C308.878,455.498,291.01,472.596,291.01,472.596
+ z"/>
+<path id="path562" fill="#CCCCCC" d="M284.292,517.738c0,0-26.838-4.237,2.825-7.063c0,0,31.782-3.531,38.844-12.713
+ c0,0,24.013-16.244,28.956-16.95c4.944-0.706,57.913-13.419,58.619-17.656c0.707-4.236,10.595-4.236,13.419-2.824
+ c2.825,1.413,1.413,3.53-3.531,4.943c-4.943,1.412-60.031,30.369-71.332,32.487c-11.3,2.119-31.781,15.538-40.256,17.656
+ C303.36,517.738,284.292,517.738,284.292,517.738z"/>
+<path id="path566" d="M318.757,504.676c0,0-15.153-1.464,0.033-2.909c0,0,15.566-6.046,19.183-10.748c0,0,12.296-8.316,14.826-8.678
+ c2.531-0.362,27.18-6.872,27.542-9.04c0.362-2.17,60.51-24.384,68.314-18.751c5.14,3.709-12.343,0.748-29.354,8.535
+ c-2.393,1.095-62.164,26.85-67.95,27.934c-5.785,1.087-16.271,7.956-20.611,9.04C326.402,501.145,318.757,504.676,318.757,504.676z"
+ />
+<path id="path570" d="M304.773,508.557c0,0,9.181-0.706,7.063,2.119c-2.119,2.825-6.357,1.412-6.357,1.412L304.773,508.557z"/>
+<path id="path574" d="M292.061,511.382c0,0,9.181-0.706,7.063,2.119c-2.119,2.825-6.356,1.412-6.356,1.412L292.061,511.382z"/>
+<path id="path578" d="M273.698,514.207c0,0,9.181-0.706,7.063,2.119c-2.119,2.824-6.356,1.412-6.356,1.412L273.698,514.207z"/>
+<path id="path582" d="M260.279,515.619c0,0,9.181-0.706,7.063,2.119c-2.118,2.825-6.356,1.412-6.356,1.412L260.279,515.619z"/>
+<path id="path586" d="M328.079,445.7c0,0,7.77,0,5.649,2.825c-2.119,2.824-7.769,2.117-7.769,2.117L328.079,445.7z"/>
+<path id="path590" d="M310.423,455.588c0,0,11.487-3.78,7.063,2.118c-2.118,2.825-6.356,1.413-6.356,1.413L310.423,455.588z"/>
+<path id="path594" d="M290.648,464.063c0,0,9.181-0.705,7.063,2.119c-2.118,2.825-6.356,1.412-6.356,1.412L290.648,464.063z"/>
+<path id="path598" d="M277.229,474.656c0,0,9.181-0.706,7.063,2.119c-2.118,2.824-6.356,1.411-6.356,1.411L277.229,474.656z"/>
+<path id="path602" d="M265.223,483.132c0,0,9.181-0.706,7.063,2.118c-2.119,2.825-6.356,1.413-6.356,1.413L265.223,483.132z"/>
+<path id="path606" d="M334.228,494.427c0,0,12.221-0.938,9.4,2.819c-2.82,3.761-8.461,1.881-8.461,1.881L334.228,494.427z"/>
+<path id="path610" d="M352.59,485.951c0,0,12.221-0.939,9.4,2.82c-2.819,3.761-8.461,1.88-8.461,1.88L352.59,485.951z"/>
+<path id="path614" d="M371.659,478.183c0,0,12.22-0.938,9.399,2.819c-2.819,3.761-8.461,1.881-8.461,1.881L371.659,478.183z"/>
+<path id="path618" d="M390.021,469.708c0,0,12.221-0.939,9.399,2.819c-2.819,3.761-8.461,1.88-8.461,1.88L390.021,469.708z"/>
+<path id="path622" d="M341.29,437.926c0,0,12.22-0.938,9.4,2.82c-2.82,3.761-9.874,3.293-9.874,3.293L341.29,437.926z"/>
+<path id="path626" d="M358.946,432.276c0,0,12.22-0.939,9.399,2.818c-2.818,3.762-10.58,3.293-10.58,3.293L358.946,432.276z"/>
+<path id="path630" d="M318.898,502.907c0,0,9.181-0.706,7.063,2.118c-2.119,2.824-6.355,1.413-6.355,1.413L318.898,502.907z"/>
+<path id="path634" fill="#992600" d="M189.653,327.753c0,0-7.769,15.538-8.475,21.188c0,0,1.413-15.538,3.531-19.069
+ C186.828,326.341,189.653,327.753,189.653,327.753z"/>
+<path id="path638" fill="#992600" d="M157.165,352.472c0,0-5.65,25.425-4.944,30.369c0,0-2.119-20.481-1.412-22.6
+ C151.515,358.123,157.165,352.472,157.165,352.472z"/>
+<path id="path642" fill="#CCCCCC" d="M193.891,220.755l-0.353,5.65l-3.885,0.354c0,0,25.072,22.247,26.132,35.666
+ C215.785,262.425,217.197,247.946,193.891,220.755z"/>
+<path id="path646" d="M200.925,222.989c-0.761-0.734-0.374-2.05-1.095-2.509c-1.428-0.911,2.292-1.012,1.889-2.276
+ c-0.676-2.129-0.346-2.167-0.562-4.419c-0.101-1.056,0.938-3.775,1.618-4.552c2.553-2.917,0.215-8.094,3.111-10.833
+ c0.537-0.51,1.201-1.485,1.704-2.223c1.164-1.7,3.254-2.562,4.931-4.024c0.562-0.487,0.207-1.948,1.211-1.785
+ c1.261,0.203,3.452-0.026,3.373,1.458c-0.2,3.743-2.546,6.78-4.806,9.725c0.796,1.243-0.013,2.364-0.514,3.348
+ c-2.357,4.626-2.023,9.642-2.331,14.657c-0.009,0.15-0.551,0.288-0.537,0.381c0.623,4.123,1.654,8.005,3.207,11.941
+ c0.646,1.642,1.478,3.222,1.743,4.859c0.196,1.211,0.378,2.682-0.343,3.927c3.593,5.103,1.282,9.783,3.346,16.018
+ c0.365,1.104,3.353,4.483,2.535,4.199c-4.437-1.538-4.635-2.241-4.947-3.57c-0.258-1.1-0.84-3.531-1.259-4.594
+ c-0.113-0.29-0.415-3.616-0.553-3.832c-2.671-4.206-0.274-3.895-2.692-8.059c-2.521-1.201-4.227-3.15-6.21-5.202
+ c-0.35-0.36,1.668-1.638,1.349-2.014c-1.928-2.276-3.964-3.63-3.371-6.267C201.997,226.126,202.238,224.26,200.925,222.989z"/>
+<path id="path650" d="M194.597,226.052c0,0,0.707,12.006,4.944,14.832c4.238,2.825,2.119,1.413-3.531-0.706
+ c-5.65-2.119-3.531-3.531-3.531-3.531s-4.944,0.706-0.706,4.237c4.237,3.531,10.594,7.769,7.769,7.769s-16.244-7.063-16.244-12.006
+ c0-4.944-1.766-12.183-1.766-12.183s1.942-1.413,10.417-1.236C191.948,223.228,194.42,224.463,194.597,226.052z"/>
+<path id="path654" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M193.184,258.894c0,0-15.043-4.928-47.672,1.059
+ c0,0,15.946-3.669,49.085,0.353C212.783,262.513,193.184,258.894,193.184,258.894z"/>
+<path id="path658" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M196.889,258.768c0,0-14.56-6.211-47.586-3.067
+ c0,0,16.205-2.276,48.871,4.596C216.103,264.068,196.889,258.768,196.889,258.768z"/>
+<path id="path662" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M200.045,258.932c0,0-14.058-7.276-47.226-6.596
+ c0,0,16.329-1.066,48.395,8.217C218.811,265.647,200.045,258.932,200.045,258.932z"/>
+<path id="path666" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M202.288,259.326c0,0-12.049-7.604-41.842-9.543
+ c0,0,14.724,0.3,42.764,11.086C218.599,266.789,202.288,259.326,202.288,259.326z"/>
+<path id="path670" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M405.838,277.894c0,0-1.642,1.137-1.264-0.948
+ c0.38-2.085,50.185-25.339,56.564-24.897C461.14,252.048,407.732,275.365,405.838,277.894z"/>
+<path id="path674" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M399.846,279.021c0,0-1.547,1.263-1.333-0.846
+ c0.214-2.108,48.04-29.202,54.436-29.262C452.947,248.914,401.537,276.354,399.846,279.021z"/>
+<path id="path678" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M394.044,281.449c0,0-1.462,1.363-1.388-0.755
+ c0.074-2.117,35.063-29.479,52.389-32.788C445.045,247.906,413.21,262.255,394.044,281.449z"/>
+<path id="path682" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M388.966,284.739c0,0-1.314,1.226-1.248-0.68
+ c0.066-1.907,31.557-26.532,47.147-29.509C434.865,254.55,406.216,267.464,388.966,284.739z"/>
+<path id="path686" fill="#CCCCCC" d="M333.023,545.988c0,0-26.838-4.237,2.824-7.063c0,0,31.781-3.531,38.845-12.712
+ c0,0,24.013-16.244,28.956-16.95c4.943-0.707,33.899-7.063,34.606-11.301c0.706-4.237,11.3-8.475,14.125-7.063
+ c2.825,1.413,2.825,17.655-2.119,19.068c-4.942,1.412-38.138,14.125-49.438,16.244c-11.301,2.118-31.782,15.537-40.257,17.656
+ C352.092,545.988,333.023,545.988,333.023,545.988z"/>
+<path id="path690" d="M461.915,479.953c0,0-5.297,2.825-7.416,7.416c0,0-11.3,18.716-36.372,24.366c0,0-40.609,15.891-54.382,19.422
+ c0,0-23.659,8.828-36.727,7.416c0,0-12.358,0.353-1.411,3.178c0,0,35.666-3.531,41.669-6.709c0,0,27.544-9.182,32.841-13.772
+ c5.297-4.59,37.432-13.419,41.315-16.949C445.317,500.789,462.621,485.957,461.915,479.953z"/>
+<path id="path694" d="M358.24,535.589c0,0,9.231-0.398,7.195,2.336c-2.034,2.737-6.356,1.193-6.356,1.193L358.24,535.589z"/>
+<path id="path698" d="M345.523,537.977c0,0,9.23-0.398,7.196,2.336c-2.036,2.736-6.357,1.195-6.357,1.195L345.523,537.977z"/>
+<path id="path702" d="M327.11,540.18c0,0,9.231-0.399,7.195,2.336c-2.034,2.735-6.356,1.193-6.356,1.193L327.11,540.18z"/>
+<path id="path706" d="M313.631,541.141c0,0,9.232-0.398,7.197,2.336c-2.036,2.736-6.358,1.193-6.358,1.193L313.631,541.141z"/>
+<path id="path710" d="M387.432,522.526c0,0,12.289-0.531,9.578,3.108c-2.708,3.642-8.463,1.59-8.463,1.59L387.432,522.526z"/>
+<path id="path714" d="M405.645,514.714c0,0,10.521-5.828,9.578,3.109c-0.477,4.513-8.463,1.589-8.463,1.589L405.645,514.714z"/>
+<path id="path718" d="M421.768,509.745c0,0,12.642-6.534,9.579,3.108c-1.374,4.326-8.465,1.59-8.465,1.59L421.768,509.745z"/>
+<path id="path722" d="M438.566,501.226c0,0,7.695-8.652,9.578,3.109c0.717,4.481-8.464,1.59-8.464,1.59L438.566,501.226z"/>
+<path id="path726" d="M372.28,530.444c0,0,9.23-0.401,7.196,2.336c-2.035,2.733-6.359,1.192-6.359,1.192L372.28,530.444z"/>
+<path id="path730" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M435.138,316.105c0,0-1.282,1.174-1.284-0.717
+ c0-1.889,30.871-25.309,46.484-27.752C480.338,287.636,451.913,299.517,435.138,316.105z"/>
+<path id="path734" d="M440.374,428.748c0,0,38.847,39.553,55.09,45.908c0,0,16.244,19.774,9.183,65.683
+ c0,0-5.65,13.419-11.301-23.307c0,0,5.649-44.494-14.125-16.244c0,0-14.834-17.479-3.533-16.95c0,0,5.651,3.531,6.357,0.706
+ c0.707-2.825-13.42-26.838-43.789-52.265C407.887,406.854,440.374,428.748,440.374,428.748z"/>
+<path id="path738" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M337.261,497.257c0,0-0.354-3.178,2.825-1.766
+ c3.178,1.412,169.503,12.358,225.298,54.734C565.384,550.227,485.576,509.264,337.261,497.257z"/>
+<path id="path742" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M355.623,489.488c0,0-0.354-3.18,2.825-1.767
+ c3.179,1.412,244.367-0.354,286.036,56.854C644.484,544.576,605.641,500.082,355.623,489.488z"/>
+<path id="path746" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M376.104,482.426c0,0-0.353-3.179,2.825-1.766
+ c3.18,1.412,309.343-21.541,351.013,35.666C729.941,516.326,712.991,471.125,376.104,482.426z"/>
+<path id="path750" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M393.762,473.95c0,0-0.354-3.178,2.824-1.767
+ c3.179,1.413,218.941-66.742,260.611-9.533C657.197,462.65,633.537,419.214,393.762,473.95z"/>
+<path id="path754" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M291.354,514.207c0,0-0.353-3.178,2.825-1.766
+ c3.178,1.412,34.606,5.297,38.138,73.804C332.317,586.245,319.604,512.088,291.354,514.207z"/>
+<path id="path758" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M275.816,517.032c0,0-0.353-3.18,2.825-1.767
+ c3.178,1.412,28.25-6.71,23.306,61.797C301.948,577.063,304.066,514.913,275.816,517.032z"/>
+<path id="path762" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M261.691,517.738c0,0-0.354-3.179,2.825-1.767
+ c3.179,1.412,30.369,2.473,8.475,42.022C272.991,557.995,289.941,515.619,261.691,517.738z"/>
+<path id="path766" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M345.252,439.457c0,0-0.784,3.529,1.951,1.381
+ c28.37-22.292,85.65-126.292,183.971-136.239C531.174,304.599,463.536,283.217,345.252,439.457z"/>
+<path id="path770" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M365.027,436.278c0,0-2.406-2.106,0.892-3.21
+ c3.298-1.104,201.831-129.115,271.194-115.05C637.113,318.018,589.252,304.758,365.027,436.278z"/>
+<path id="path774" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M328.229,447.053c0,0-0.897,2.823,2.122,1.101
+ c15.848-9.04,22.229-110.054,99.171-112.271C429.521,335.882,372.297,309.903,328.229,447.053z"/>
+<path id="path778" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M293.053,466.521c0,0-1.902,2.271,1.546,1.821
+ c18.091-2.352,55.884-75.222,134.348-66.254C428.947,402.089,372.507,376.759,293.053,466.521z"/>
+<path id="path782" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M312.895,455.704c0,0-1.432,2.594,1.868,1.49
+ c17.303-5.78,40.403-84.549,119.13-90.813C433.893,366.382,373.639,352.357,312.895,455.704z"/>
+<path id="path786" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M280.623,475.559c0,0-1.542,1.841,1.252,1.478
+ c14.653-1.905,45.265-60.929,108.822-53.665C390.696,423.37,344.979,402.854,280.623,475.559z"/>
+<path id="path790" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M267.206,485.992c0,0-1.775,1.845,1.035,1.637
+ c7.359-0.546,61.455-58.951,94.063-31.58C362.303,456.049,341.089,422.99,267.206,485.992z"/>
+<path id="path794" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M389.974,429.627c0,0-2.12-2.392,1.291-3.071
+ c3.411-0.679,216.529-102.579,283.56-79.862C674.823,346.693,629.021,327.494,389.974,429.627z"/>
+<path id="path798" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M330.904,543.164c0,0-0.354-3.179,2.824-1.768
+ c3.179,1.413,30.369,2.474,8.476,42.022C342.204,583.42,359.154,541.045,330.904,543.164z"/>
+<path id="path802" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M349.268,540.339c0,0-0.354-3.179,2.824-1.766
+ c3.18,1.412,34.607,5.297,38.14,73.804C390.23,612.377,377.518,538.22,349.268,540.339z"/>
+<path id="path806" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M361.273,537.514c0,0-0.354-3.179,2.824-1.766
+ c3.179,1.412,46.613,7.416,88.282,64.622C452.381,600.37,389.523,535.395,361.273,537.514z"/>
+<path id="path810" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M374.736,533.931c0,0-0.771-3.104,2.564-2.125
+ c3.337,0.979,39.416-2.375,106.684,57.969C483.984,589.773,402.455,528.076,374.736,533.931z"/>
+<path id="path814" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M393.1,526.162c0,0-0.771-3.104,2.565-2.126
+ c3.337,0.979,64.841,8.926,156.119,70.681C551.784,594.717,420.818,520.308,393.1,526.162z"/>
+<path id="path818" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M321.723,505.732c0,0-0.353-3.18,2.825-1.767
+ c3.179,1.412,97.464,6.003,151.14,53.322C475.688,557.289,414.064,513.545,321.723,505.732z"/>
+<path id="path822" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M304.066,512.795c0,0-0.353-3.179,2.825-1.766
+ c3.179,1.412,46.613,7.415,88.282,64.622C395.174,575.651,332.317,510.676,304.066,512.795z"/>
+<path id="path826" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M412.306,518.021c0,0-0.997-3.037,2.403-2.308
+ s65.321,4.147,160.88,59.049C575.589,574.764,438.462,514.036,412.306,518.021z"/>
+<path id="path830" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M427.138,513.785c0,0-0.998-3.039,2.402-2.309
+ c3.401,0.729,65.322,4.147,160.88,59.049C590.42,570.525,454.354,509.092,427.138,513.785z"/>
+<path id="path834" fill="#FFFFFF" stroke="#000000" stroke-width="0.1" d="M444.088,504.957c0,0-0.998-3.039,2.402-2.308
+ c3.399,0.729,79.447,8.385,237.863,68.936C684.354,571.585,471.303,500.264,444.088,504.957z"/>
+<path id="path838" d="M247.566,517.032c0,0,9.182-0.706,7.063,2.118s-6.356,1.412-6.356,1.412L247.566,517.032z"/>
+<path id="path842" d="M301.948,541.751c0,0,9.181-0.706,7.063,2.119c-2.119,2.825-6.356,1.412-6.356,1.412L301.948,541.751z"/>
+<path id="path846" d="M286.41,541.045c0,0,9.182-0.706,7.063,2.119c-2.119,2.824-6.356,1.412-6.356,1.412L286.41,541.045z"/>
+<path id="path850" d="M118.022,520.177c0,0,8.908,2.336,5.98,4.313c-2.926,1.978-6.469-0.745-6.469-0.745L118.022,520.177z"/>
+<path id="path854" d="M121.554,503.227c0,0,8.908,2.336,5.98,4.313c-2.926,1.978-6.469-0.745-6.469-0.745L121.554,503.227z"/>
+<path id="path858" d="M108.841,495.458c0,0,8.908,2.336,5.98,4.312c-2.925,1.979-6.469-0.744-6.469-0.744L108.841,495.458z"/>
+<path id="path862" fill="#CCCCCC" d="M249.685,627.914c0,0-2.825,0-9.888,3.531c-3.531,0-23.307,6.355-33.194,24.013
+ C206.603,655.458,228.497,638.508,249.685,627.914z"/>
+<path id="path866" fill="#CCCCCC" d="M404.56,791.494c0.249,0.456,0.348,1.197,0.862,1.228c1.161,0.07,3.339,0.603,3.118-0.521
+ c-1.497-7.604-3.041-16.319-10.338-19.51c-1.129-0.493-3.675,0.235-3.806,1.797c-0.225,2.69-0.432,5.072,0.114,7.661
+ c0.529,2.509,4.34,2.525,5.959,0.083C402.123,785.184,402.886,788.438,404.56,791.494z"/>
+<path id="path870" fill="#CCCCCC" d="M385,799.854c1.321,2.494,1.097,5.776,3.595,6.771c1.308,0.519,4.573-1.202,3.835-3.099
+ c-1.416-3.64-2.101-7.594-4.554-10.79c-0.353-0.463,0.071-1.403-0.212-1.982c-1.048-2.154-3.07-3.452-5.556-2.871
+ c-1.97,3.891,0.058,7.648,2.744,10.666C385.094,798.816,384.801,799.48,385,799.854z"/>
+<path id="path874" fill="#CCCCCC" d="M315.077,790.689c-0.19-0.666-0.258-1.483,0.033-2.052c0.938-1.822,2.338-3.805,1.742-5.608
+ c-0.613-1.864-2.585-1.543-3.731-0.538c-2.004,1.755-2.091,4.979-3.312,7.379c-0.347,0.682-0.256,1.692-1.034,2.383
+ c-0.838,0.744-1.613,3.435-1.444,4.442c0.094,0.553-0.229,18.047,0.163,17.583c1.093-1.295,6.478-18.481,6.6-20.058
+ C314.194,792.932,315.487,792.11,315.077,790.689z"/>
+<path id="path878" fill="#CCCCCC" d="M269.81,778.697c4.651-4.413,9.577-9.642,8.796-16.195c-0.205-1.723-3.339-0.792-3.669,0.701
+ c-1.416,6.4-5.016,11.099-9.55,15.322c-3.877,3.613-7.165,14.814-7.58,15.713C264.334,784.958,268.319,780.109,269.81,778.697z"/>
+<path id="path882" fill="#CCCCCC" d="M245.843,768.167c0.923-0.653,0.39-1.521,0.773-2.106c1.683-2.574,3.979-4.773,4.012-7.844
+ c0.005-0.489-0.662-1.034-1.254-0.639c-0.489,0.324-1.093,0.555-1.284,0.784c-3.584,4.322-6.056,9.04-8.604,14.005
+ c-0.323,0.63-2.343,8.56-1.79,8.756c0.422,0.148,3.459-7.232,3.83-7.434C243.756,772.479,243.777,769.627,245.843,768.167z"/>
+<path id="path886" fill="#CCCCCC" d="M275.387,802.674c0.784-1.534,3.567-3.656,3.367-5.226c-0.208-1.64,0.618-4.188-0.992-2.973
+ c-2.22,1.675-8.309,4.057-8.786,14.312C268.93,809.795,274.182,805.04,275.387,802.674z"/>
+<path id="path890" fill="#CCCCCC" d="M300.889,772.344c0.706-1.179,1.956-0.344,2.767-0.809c1.144-0.656,2.223-1.643,2.738-2.788
+ c1.713-3.794,4.836-7.008,5.089-11.234c-2.634-2.479-3.831,1.121-4.944,2.825c-2.336-2.908-4.1,0.4-6.395,1.316
+ c-0.124,0.05-0.5-0.563-0.632-0.516c-2.078,0.776-3.279,2.687-5.041,4.064c-0.302,0.236-1.017-0.082-1.276,0.158
+ c-1.151,1.064-2.869,1.639-3.364,2.843c-1.959,4.78-7.504,8.479-10.835,21.795c0.672,1.604,7.966-11.728,8.826-12.959
+ c1.476-2.112,1.685,2.933,3.938,1.757c0.09-0.048,0.418,0.372,0.655,0.608c0.342-0.494,0.727-0.898,1.413-0.706
+ c0-0.706-0.237-1.688,0.118-1.969c2.184-1.726,2.036-3.61,3.413-5.801C298.166,772.324,300.039,771.055,300.889,772.344z"/>
+<path id="path894" fill="#CCCCCC" d="M406.474,868.395c0,0,13.066-36.019,5.298-55.794c0,0,20.129,38.139,12.007,57.913
+ c0,0-0.706-18.361-7.77-27.189C416.009,843.323,408.946,865.923,406.474,868.395z"/>
+<path id="path898" fill="#CCCCCC" d="M380.343,863.805c0,0,9.534-15.538-4.591-48.024c0,0-1.413,36.019-13.419,55.439
+ C362.333,871.22,387.405,835.554,380.343,863.805z"/>
+<path id="path902" fill="#CCCCCC" d="M362.686,860.273c0,0-0.353-35.313,0.354-40.61c0,0-6.709,29.31-24.719,46.26
+ C338.32,865.923,363.745,844.735,362.686,860.273z"/>
+<path id="path906" fill="#CCCCCC" d="M345.736,803.771c0,0,10.594,24.014-7.063,56.502c0,0,11.301-21.541,2.825-33.9
+ C341.498,826.373,346.089,820.369,345.736,803.771z"/>
+<path id="path910" fill="#CCCCCC" d="M311.836,859.566c0,0-1.766-27.545,1.412-31.429c0,0,0.354-11.301-0.354-13.065
+ c0,0,7.063-10.946,7.416,2.119c0,0,2.473,13.771,7.416,21.894c0,0,6.356,9.535,6.003,20.835
+ C333.729,859.92,316.073,806.598,311.836,859.566z"/>
+<path id="path914" fill="#CCCCCC" d="M305.479,810.835c0,0-11.653,19.069-14.831,52.616c0,0-2.472-10.947,4.237-36.372
+ C294.885,827.079,302.301,799.888,305.479,810.835z"/>
+<path id="path918" fill="#CCCCCC" d="M266.988,845.795c0,0,8.828-9.535,11.3-18.363c0,0,6.356-27.896-4.943-12.712
+ c0,0,0.353,14.125-14.125,27.19C259.219,841.91,267.694,837.673,266.988,845.795z"/>
+<path id="path922" fill="#CCCCCC" d="M256.748,836.967c0,0,6.003-30.723,7.416-32.135c0,0,3.178-6.003-1.766-0.354
+ c0,0-15.538,33.9-22.6,45.555C239.797,850.032,253.922,833.788,256.748,836.967z"/>
+<path id="path926" fill="#CCCCCC" d="M246.507,807.657c0,0,20.481-39.552-18.01,6.003
+ C228.497,813.66,247.919,796.356,246.507,807.657z"/>
+<path id="path930" fill="#CCCCCC" d="M219.316,781.879c0,0,8.475-33.193,13.065-32.842c0,0,14.479-15.891,2.825,2.825
+ c0,0-10.594,16.95-9.535,34.254C225.672,786.116,224.613,769.166,219.316,781.879z"/>
+<path id="path934" fill="#CCCCCC" d="M802.508,761.748c0,0-21.188-17.656-25.602-23.836c0,0,23.836,32.664,23.836,45.023
+ C800.742,782.938,805.156,769.693,802.508,761.748z"/>
+<path id="path938" fill="#CCCCCC" d="M812.219,722.904c0,0-37.078-26.484-43.259-39.728c0,0,46.79,52.086,46.79,60.031
+ C815.75,743.209,816.633,727.318,812.219,722.904z"/>
+<path id="path942" fill="#CCCCCC" d="M842.234,450.995c0,0-21.188-14.125-23.836-10.594c0,0,18.539,11.477,22.952,26.483
+ C841.352,466.886,838.703,450.995,842.234,450.995z"/>
+<path id="path946" fill="#CCCCCC" d="M857.242,593.13l-30.898-21.188c0,0,33.547,30.017,34.431,37.079L857.242,593.13z"/>
+<path id="path950" stroke="#000000" d="M167.317,553.402l38.844,8.387"/>
+<path id="path954" stroke="#000000" d="M256.041,839.438c0,0-0.883-6.181-16.773,12.358"/>
+<path id="path958" stroke="#000000" d="M265.752,848.265c0,0,3.531-11.477-7.946-3.53"/>
+<path id="path962" stroke="#000000" d="M361.097,863.271c0,0,2.648-19.422-17.655,3.531"/>
+</svg>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.EditorTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="EditorTest1Page"/>
- </ContentPage.AppBar>
-
- <ContentPage.Content>
- <View x:Name="mainView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <View x:Name="topView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <TextLabel Text="Editor Test 1 : " WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
- </View>
-
- <TextEditor x:Name="editor" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
- <View x:Name="bottomView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <View x:Name="underline" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="2" BackgroundColor="#999999" />
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" />
- </View.Layout>
-
- <TextLabel Text="Editor Test 2 : " WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <TextField x:Name="field" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" VerticalAlignment="Center" />
- <View x:Name="underline2" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="2" BackgroundColor="#999999" />
-
- </View>
- </View>
- </View>
- </View>
- </ContentPage.Content>
-
-</ContentPage>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.EditorTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="EditorTest2Page"/>
- </ContentPage.AppBar>
-
- <ContentPage.Content>
- <View x:Name="mainView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <View x:Name="topView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <TextLabel Text="Editor's Event : " WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
- <TextEditor x:Name="editor" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80" />
- <View x:Name="underline" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="2" BackgroundColor="#999999" />
- <TextLabel Text="Editor's Text : " WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" />
- </View>
- <TextEditor x:Name="editor2" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- <View x:Name="underline2" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="2" BackgroundColor="#999999" />
- </View>
-
- </ContentPage.Content>
-</ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.EntryTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="White">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top"/>
- </View.Layout>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="#FF66FF"
- Text=" "/>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="This is a TextField with very looooooooooooong looooooooooooooong text"
- Weight="1.0"/>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Formated TextField"
- Weight="1.0"/>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Top"/>
- </View.Layout>
-
- <TextLabel Text="Name: "/>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
- </View>
-
- <View WidthResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <TextLabel Text="Passoword: "/>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
- </View>
-
- <View WidthResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top"/>
- </View.Layout>
-
- <TextField PlaceholderTextColor="1,0,0,1"
- PlaceholderText="Placeholder Color - Red"/>
-
- <TextField PlaceholderTextColor="0,1,0,1"
- PlaceholderText="Placeholder Color - Gren" />
-
- <TextField PlaceholderTextColor="0,0,1,1"
- PlaceholderText="Placeholder Color - Blue" />
-
- </View>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.EntryTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="White">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="5,0"/>
- </View.Layout>
-
- <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="This is label"/>
-
- <TextField WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="1.0"
- Text="This is Entry"/>
-
- <Button Text="This is button"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.EntryTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <TabView x:Name="tabView"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="Green"/>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.FlexTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <FlexLayout Direction="Column" Justification="FlexStart" Alignment="FlexStart"/>
-
- </View.Layout>
-
-
- <b:TextLabel x:Name="text1"
- SizeWidth="720"
- SizeHeight="120"
- PointSize="8"
- Text="label1"
- BackgroundColor="#ff0000"
- />
-
- <b:TextLabel x:Name="text2"
- SizeWidth="720"
- SizeHeight="100"
- PointSize="8"
- Text="label2"
- BackgroundColor="#aaaaaa"
- />
-
- <b:TextLabel x:Name="text3"
- SizeWidth="720"
- SizeHeight="80"
- PointSize="8"
- Text="label3"
- BackgroundColor="#ffff00"
- />
-
- <b:TextLabel x:Name="text4"
- SizeWidth="720"
- SizeHeight="60"
- PointSize="8"
- Text="label4"
- BackgroundColor="#00aaff"
- />
-
- <b:TextLabel x:Name="text5"
- SizeWidth="720"
- SizeHeight="40"
- PointSize="8"
- Text="label5"
- BackgroundColor="#00ffff"
- />
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.FlexTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <FlexLayout Direction="Row" Justification="FlexStart" Alignment="FlexStart"/>
-
- </View.Layout>
-
-
- <b:TextLabel x:Name="text1"
- SizeWidth="160"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- PointSize="8"
- Text="label1"
- BackgroundColor="#ff0000"
- />
-
- <b:TextLabel x:Name="text2"
- SizeWidth="100"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- PointSize="8"
- Text="label2"
- BackgroundColor="#aaaaaa"
- />
-
- <b:TextLabel x:Name="text3"
- SizeWidth="60"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- PointSize="8"
- Text="label3"
- BackgroundColor="#ffff00"
- />
-
- <b:TextLabel x:Name="text4"
- SizeWidth="40"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- PointSize="8"
- Text="label4"
- BackgroundColor="#00aaff"
- />
-
- <b:TextLabel x:Name="text5"
- SizeWidth="400"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- PointSize="8"
- Text="label5"
- BackgroundColor="#00ffff"
- />
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.FlexTest5Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <FlexLayout Direction="Column" Justification="FlexStart" Alignment="FlexStart"/>
-
- </View.Layout>
-
- <b:TextLabel x:Name="text" Text="Basic Grids" PointSize="12" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" SizeHeight="100" VerticalAlignment="Center" />
- <b:View x:Name="view1" BackgroundColor="#ff0000" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" SizeHeight="100">
- <View.Layout>
- <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
- </View.Layout>
-
- <b:TextLabel BackgroundColor="#444444"
- TextColor="#ffffff"
- Text="1/2"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#444444"
- TextColor="#ffffff"
- Text="1/2"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- </b:View>
-
- <b:View x:Name="view2" BackgroundColor="#ff0000" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" SizeHeight="100">
- <View.Layout>
- <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
- </View.Layout>
-
- <b:TextLabel BackgroundColor="#555555"
- TextColor="#ffffff"
- Text="1/3"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#555555"
- TextColor="#ffffff"
- Text="1/3"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#555555"
- TextColor="#ffffff"
- Text="1/3"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- </b:View>
-
-
- <b:View x:Name="view3" BackgroundColor="#ff0000" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" SizeHeight="100">
- <View.Layout>
- <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
- </View.Layout>
-
- <b:TextLabel BackgroundColor="#666666"
- TextColor="#ffffff"
- Text="1/4"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#666666"
- TextColor="#ffffff"
- Text="1/4"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#666666"
- TextColor="#ffffff"
- Text="1/4"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#666666"
- TextColor="#ffffff"
- Text="1/4"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- </b:View>
-
- <b:View x:Name="view4" BackgroundColor="#ff0000" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" SizeHeight="100">
- <View.Layout>
- <FlexLayout Direction="Row" Justification="SpaceBetween" Alignment="Center" />
- </View.Layout>
-
- <b:TextLabel BackgroundColor="#777777"
- TextColor="#ffffff"
- Text="1/5"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#777777"
- TextColor="#ffffff"
- Text="1/5"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#777777"
- TextColor="#ffffff"
- Text="1/5"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#777777"
- TextColor="#ffffff"
- Text="1/5"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <b:TextLabel BackgroundColor="#777777"
- TextColor="#ffffff"
- Text="1/5"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="100"
- VerticalAlignment="Center"
- HorizontalAlignment="Center" />
-
- </b:View>
-
-
-
-
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.FrameLayoutTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <RelativeLayout />
- </View.Layout>
-
- <View x:Name="topLeft"
- BackgroundColor="#FF66FF"
- RelativeLayout.RightRelativeOffset="0.5"
- RelativeLayout.BottomRelativeOffset="0.5"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <View x:Name="topRight"
- BackgroundColor="Blue"
- RelativeLayout.LeftRelativeOffset="0.5"
- RelativeLayout.RightRelativeOffset="1.0"
- RelativeLayout.BottomRelativeOffset="0.5"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <View x:Name="bottomRight"
- BackgroundColor="Red"
- RelativeLayout.RightRelativeOffset="0.5"
- RelativeLayout.BottomRelativeOffset="1.0"
- RelativeLayout.TopRelativeOffset="0.5"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <View x:Name="bottomLeft"
- BackgroundColor="Yellow"
- RelativeLayout.LeftRelativeOffset="0.5"
- RelativeLayout.RightRelativeOffset="1.0"
- RelativeLayout.BottomRelativeOffset="1.0"
- RelativeLayout.TopRelativeOffset="0.5"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <View x:Name="parentBox"
- BackgroundColor="1.0, 0.3, 0.4, 0.3"
- RelativeLayout.LeftRelativeOffset="0.25"
- RelativeLayout.RightRelativeOffset="0.75"
- RelativeLayout.TopRelativeOffset="0.25"
- RelativeLayout.BottomRelativeOffset="0.75"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <TextLabel x:Name="label"
- Text="I'm button & Center Label"
- MultiLine="True"
- LineWrapMode="Word"
- HorizontalAlignment="Center"
- RelativeLayout.LeftRelativeOffset="0.25"
- RelativeLayout.RightRelativeOffset="0.75"
- RelativeLayout.TopRelativeOffset="0.9"
- RelativeLayout.BottomRelativeOffset="1.0"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"/>
-
- <Button x:Name="button"
- RelativeLayout.LeftRelativeOffset="0.033"
- RelativeLayout.RightRelativeOffset="0.967"
- RelativeLayout.TopRelativeOffset="0.25"
- RelativeLayout.BottomRelativeOffset="0.75"
- RelativeLayout.FillHorizontal="True"
- RelativeLayout.FillVertical="True"
- Text="I'm centered Button"
- TextAlignment="Center"
- PointSize="8"/>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.FrameLayoutTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <View x:Name="layout"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <View x:Name="leftBGBox"
- WidthResizePolicy="SizeRelativeToParent"
- HeightResizePolicy="SizeRelativeToParent"
- SizeModeFactor="0.25, 0.8, 0.0"
- ParentOrigin="0.2, 0.1, 0.0"
- BackgroundColor="#808080"/>
-
- <View x:Name="rightBGBox"
- WidthResizePolicy="SizeRelativeToParent"
- HeightResizePolicy="SizeRelativeToParent"
- SizeModeFactor="0.25, 0.8, 0.0"
- ParentOrigin="0.6, 0.1, 0.0"
- BackgroundColor="#808080"/>
-
- <View PositionUsesPivotPoint="true"
- PivotPoint="TopLeft"
- ParentOrigin="TopLeft"
- BackgroundColor="Red"
- Size2D="100,100"/>
-
- <View x:Name="topCenterBox"
- PositionUsesPivotPoint="true"
- PivotPoint="TopCenter"
- ParentOrigin="TopCenter"
- BackgroundColor="Yellow"
- Size2D="100,100"/>
-
- <View PositionUsesPivotPoint="true"
- PivotPoint="TopRight"
- ParentOrigin="TopRight"
- BackgroundColor="Green"
- Size2D="100,100"/>
-
- <View PositionUsesPivotPoint="true"
- PivotPoint="BottomLeft"
- ParentOrigin="BottomLeft"
- BackgroundColor="Blue"
- Size2D="100,100"/>
-
- <View PositionUsesPivotPoint="true"
- PivotPoint="BottomCenter"
- ParentOrigin="BottomCenter"
- BackgroundColor="#00FF00"
- Size2D="100,100"/>
-
- <View PositionUsesPivotPoint="true"
- PivotPoint="BottomRight"
- ParentOrigin="BottomRight"
- BackgroundColor="#800080"
- Size2D="100,100"/>
-
- </View>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.FrameTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Center"/>
- </base:View.Layout>
-
- <comp:Button Text="Shadow On" x:Name="ShadowOnBackground" WidthResizePolicy="FillToParent"/>
- <comp:Button Text="Shadow Off" x:Name="ShadowOffBackground" WidthResizePolicy="FillToParent"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.GridTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <base:View x:Name="rootView" HeightResizePolicy="FillToParent" >
-
- <base:View.Layout >
- <GridLayout Columns="3" Rows="4" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
- </base:View.Layout>
-
- <comp:Button Text="Button 1" GridLayout.Column="0" GridLayout.Row="0" GridLayout.ColumnSpan="3" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 2" GridLayout.Column="0" GridLayout.Row="1" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 3" GridLayout.Column="1" GridLayout.Row="1" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 4" GridLayout.Column="0" GridLayout.Row="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 5" GridLayout.Column="1" GridLayout.Row="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 6" GridLayout.Column="2" GridLayout.Row="1" GridLayout.RowSpan="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 7" GridLayout.Column="0" GridLayout.Row="3" GridLayout.ColumnSpan="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- <comp:Button Text="Button 8" GridLayout.Column="2" GridLayout.Row="3" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- </base:View>
-</base:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.GridTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <base:View x:Name="rootView" HeightResizePolicy="FillToParent" >
-
- <base:View.Layout >
- <GridLayout Columns="3" Rows="3" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
- </base:View.Layout>
-
- <comp:Button Text="Button 1" GridLayout.Column="0" GridLayout.Row="0" GridLayout.ColumnSpan="3" GridLayout.HorizontalStretch="ExpandAndFill" />
- <comp:Button Text="Button 2" GridLayout.Column="0" GridLayout.Row="1" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Blue"/>
- <comp:Button Text="Button 3" GridLayout.Column="1" GridLayout.Row="1" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Yellow"/>
- <comp:Button Text="Button 4" GridLayout.Column="0" GridLayout.Row="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill" />
- <comp:Button Text="Button 5" GridLayout.Column="1" GridLayout.Row="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill" BackgroundColor="Magenta"/>
- <comp:Button Text="Button 6" GridLayout.Column="2" GridLayout.Row="1" GridLayout.RowSpan="2" GridLayout.VerticalStretch="ExpandAndFill" GridLayout.HorizontalStretch="ExpandAndFill"/>
- </base:View>
-
-</base:View>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.GridTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest6"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <View x:Name="textView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
- </base:View.Layout>
-
- <base:View x:Name="operationView" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" Weight="0.5">
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Bottom" CellPadding="10,10"/>
- </base:View.Layout>
- <TextField x:Name="textPlaceholder" Text="0.00" />
- </base:View>
-
- <base:View x:Name="btnView" Weight="0.5" >
- <base:View.Layout >
- <GridLayout Columns="4" Rows="5" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
- </base:View.Layout>
- <comp:Button GridLayout.Column="0" Text="C" x:Name="btnClear" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="1" Text="^" x:Name="btnUp" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="2" Text="%" x:Name="btnProc" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="3" Text="/" x:Name="btnDiv" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="0" Text="7" x:Name="btn7" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="1" Text="8" x:Name="btn8" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="2" Text="9" x:Name="btn9" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="3" Text="*" x:Name="btnMultiply" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="0" Text="4" x:Name="btn4" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="1" Text="5" x:Name="btn5" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="2" Text="6" x:Name="btn6" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="3" Text="-" x:Name="btnMinus" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="0" Text="1" x:Name="btn1" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="1" Text="2" x:Name="btn2" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="2" Text="3" x:Name="btn3" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="3" Text="+" x:Name="btnPlus" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="0" Text="0" x:Name="btn0" HeightSpecification="100" WidthSpecification="360" GridLayout.ColumnSpan="2"/>
- <comp:Button GridLayout.Column="2" Text="." x:Name="btnDot" HeightSpecification="100" WidthSpecification="180"/>
- <comp:Button GridLayout.Column="3" Text="=" x:Name="btnEqual" HeightSpecification="100" WidthSpecification="180"/>
- </base:View>
- </View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.GridTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="GridTest4"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="btnView" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <base:View.Layout >
- <GridLayout Columns="3" Rows="3" ColumnSpacing="3" RowSpacing="3" />
- </base:View.Layout>
- <comp:Button x:Name="btn1"
- Text="Button1"
- GridLayout.Column="0"
- GridLayout.Row="0"
- GridLayout.ColumnSpan="3"
- HeightSpecification="100"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- />
- <comp:Button x:Name="btn2"
- Text="Button2"
- GridLayout.Column="0"
- GridLayout.Row="1"
- WidthSpecification="550"
- HeightSpecification="525"
- />
- <comp:Button x:Name="btn3"
- Text="Button3"
- GridLayout.Column="1"
- GridLayout.Row="1"
- WidthSpecification="100"
- HeightSpecification="525"
- />
- <comp:Button x:Name="btn4"
- Text="Button4"
- GridLayout.Column="0"
- GridLayout.Row="2"
- WidthSpecification="550"
- HeightSpecification="525"
- />
- <comp:Button x:Name="btn5"
- Text="Button5"
- GridLayout.Column="1"
- GridLayout.Row="2"
- WidthSpecification="100"
- HeightSpecification="525"
- />
- <comp:Button x:Name="btn6"
- Text="Button6"
- GridLayout.Column="2"
- GridLayout.Row="1"
- GridLayout.RowSpan="2"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- />
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.HelloWorldPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" Color="#ffffff">
-
- <b:TextLabel x:Name="test1PageText" Text="Hello NUI XAML !" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"
- WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" HorizontalAlignment="Center" VerticalAlignment="Center"
- PointSize="15" TextColor="Blue"/>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.IconTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" />
- </View.Layout>
-
- <b:ImageView x:Name="image1"
- SizeWidth="200"
- SizeHeight="200"/>
- <b:ImageView x:Name="image2"
- SizeWidth="200"
- SizeHeight="200"/>
- <b:ImageView x:Name="image3"
- SizeWidth="200"
- SizeHeight="200"/>
-
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.ImageButtonTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" />
- </View.Layout>
-
- <nui:Button x:Name="button1"
- HeightResizePolicy="UseNaturalSize"
- WidthResizePolicy="UseNaturalSize"
- BackgroundColor="#52c7d9"
- PointSize="10"
- TextColor="#ffffff">
- <nui:Button.Icon>
- <b:ImageView x:Name="imageview1" SizeHeight="300" SizeWidth="300" />
- </nui:Button.Icon>
- </nui:Button>
-
- <b:TextLabel x:Name="text1"
- WidthResizePolicy="FillToParent"
- PointSize="10"
- Text="ImageButton Status" />
-
-
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ImageTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
- </View.Layout>
-
- <View WidthResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
- </View.Layout>
- <comp:Button x:Name="image1Btn" Text="Image 1" WidthResizePolicy="FillToParent" Weight="0.3"/>
- <comp:Button x:Name="image2Btn" Text="Image 2" WidthResizePolicy="FillToParent" Weight="0.3"/>
- <comp:Button x:Name="image3Btn" Text="Image 3" WidthResizePolicy="FillToParent" Weight="0.3"/>
- </View>
-
- <View WidthResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
- </View.Layout>
- <comp:Button x:Name="image4Btn" Text="Load 4000x2802" WidthResizePolicy="FillToParent" Weight="0.5"/>
- <comp:Button x:Name="image5Btn" Text="Load 8000x10454" WidthResizePolicy="FillToParent" Weight="0.5"/>
- </View>
-
- <View WidthResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
- </View.Layout>
- <comp:Button x:Name="image6Btn" Text="URI" WidthResizePolicy="FillToParent" Weight="0.5" />
- <comp:Button x:Name="image7Btn" Text="Stream" WidthResizePolicy="FillToParent" Weight="0.5" />
- </View>
-
- <View WidthResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
- </View.Layout>
- <TextLabel x:Name="labelA" Text="Alpha:" Weight="0.15"/>
- <comp:Slider x:Name="sliderA" MinValue="0" MaxValue="255" Weight="0.85"/>
- </View>
-
- <View WidthResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="10,10" LinearAlignment="Center"/>
- </View.Layout>
- <TextLabel x:Name="labelR" Text="R:" Weight="0.03" />
- <comp:Slider x:Name="sliderR" MinValue="0" MaxValue="255" Weight="0.3"/>
- <TextLabel x:Name="labelG" Text="G:" Weight="0.03" />
- <comp:Slider x:Name="sliderG" MinValue="0" MaxValue="255" Weight="0.3"/>
- <TextLabel x:Name="labelB" Text="B:" Weight="0.03" />
- <comp:Slider x:Name="sliderB" MinValue="0" MaxValue="255" Weight="0.3"/>
- </View>
-
- <View x:Name="imgView" BackgroundColor="#ffffff" Position2D="0, 450" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" >
- <ImageView x:Name="imageView" Position2D="0, 10" Size2D="720, 720"/>
- </View>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ImageTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Top"/>
- </View.Layout>
-
- <View WidthResizePolicy="FillToParent" Position2D="0, 0" Size2D="720, 450">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,5" LinearAlignment="Center"/>
- </View.Layout>
- <comp:Button x:Name="image1Btn" Text="AspectFit" WidthResizePolicy="FillToParent" />
- <comp:Button x:Name="image2Btn" Text="AspectFill" WidthResizePolicy="FillToParent" />
- <comp:Button x:Name="image3Btn" Text="Fill" WidthResizePolicy="FillToParent" />
- <comp:Button x:Name="image4Btn" Text="BackgroundColor (Default - Red)" WidthResizePolicy="FillToParent"/>
- </View>
-
- <View x:Name="imgView" BackgroundColor="#ffffff" Position2D="0, 450" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
-</base:View>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ImageTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <View x:Name="imgView" BackgroundColor="#ffffff" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="http://pe.tedcdn.com/images/ted/2e306b9655267cee35e45688ace775590b820510_615x461.jpg"/>
- </View>
-
-</base:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ImageTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <View x:Name="imgView" BackgroundColor="#ffffff" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
-</base:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ImageTest5Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ImageTest5"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/a.jpg" />
- <base:TextLabel x:Name="desc1" Text="" PointSize="7" TextColor="Black" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}"/>
- <comp:Button x:Name="image1Btn" Text="size + 100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- <comp:Button x:Name="image2Btn" Text="size - 100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- <comp:Button x:Name="image3Btn" Text="height + 100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- <comp:Button x:Name="image4Btn" Text="height - 100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- <comp:Button x:Name="image5Btn" Text="change mode" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}"/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.IndicatorViewTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <comp:ScrollableBase x:Name="Scroller" SnapToPage="true" ScrollingDirection="Horizontal" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
- </comp:ScrollableBase.Layout>
-
- <base:View x:Name="Page0" Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }" BackgroundColor="#ff0000">
- <base:TextLabel Text="Page 0" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page1" Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 1" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page2" Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }" BackgroundColor="#0000ff">
- <base:TextLabel Text="Page 2" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page3" Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }" BackgroundColor="#ff00ff">
- <base:TextLabel Text="Page 3" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page4" Size="{Binding Source={x:Static Window.Instance}, Path=WindowSize }" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 4" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- </comp:ScrollableBase>
-
- <comp:Pagination x:Name="Index" Size2D="186,50"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.IndicatorViewTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center" PivotPoint="Center" PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="CollectionViewTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10"/>
- </base:View.Layout>
-
- <comp:ScrollableBase x:Name="Scroller" SnapToPage="true"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- ScrollingDirection="Horizontal" BackgroundColor="White" >
-
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal" CellPadding="5,5"/>
- </comp:ScrollableBase.Layout>
-
- <base:View x:Name="Page0" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#ff0000">
- <base:TextLabel Text="Page 0" PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
- <base:View x:Name="Page1" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 1" PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
- <base:View x:Name="Page2" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#0000ff">
- <base:TextLabel Text="Page 2" PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
- <base:View x:Name="Page3" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#ff00ff">
- <base:TextLabel Text="Page 3" PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
- <base:View x:Name="Page4" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 4" PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
-
- </comp:ScrollableBase>
-
- <comp:Pagination x:Name="Index" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size}"
- HeightSpecification="50"/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.IndicatorViewTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="IndicatorViewTest3"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <base:View.Layout>
- <AbsoluteLayout/>
- </base:View.Layout>
-
- <comp:ScrollableBase x:Name="Scroller" SnapToPage="true" ScrollingDirection="Horizontal" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
- </comp:ScrollableBase.Layout>
-
- <base:View x:Name="Page0" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#ff0000">
- <base:TextLabel Text="Page 0" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page1" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 1" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page2" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#0000ff">
- <base:TextLabel Text="Page 2" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page3" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#ff00ff">
- <base:TextLabel Text="Page 3" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- <base:View x:Name="Page4" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="#00ff00">
- <base:TextLabel Text="Page 4" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"/>
- </base:View>
- </comp:ScrollableBase>
-
- <comp:Pagination x:Name="Index" Size2D="186,50"/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.IndicatorViewTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
- </base:View.Layout>
-
- <comp:Pagination x:Name="Index0" Size2D="90,50"/>
- <comp:Pagination x:Name="Index1" Size2D="186,50"/>
- <comp:Pagination x:Name="Index2" Size2D="220,50"/>
- <comp:Pagination x:Name="Index3" Size2D="186,50"/>
- <comp:Pagination x:Name="Index4" Size2D="186,50"/>
- <comp:Pagination x:Name="Index5" Size2D="186,50"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.KeyboardTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <ContentPage.AppBar>
- <AppBar Title="KeyboardTest1Page"/>
- </ContentPage.AppBar>
-
- <ContentPage.Content>
-
- <ScrollableBase WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="Begin"/>
- </View.Layout>
-
- <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="TextField"
- HorizontalAlignment="Center"/>
-
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel Text="TextField"/>
-
- <TextField x:Name="textField"
- Weight="1.0"
- PlaceholderText="Type Text Here"/>
-
- </View>
-
- <Button x:Name="dateTimeKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Datetime keyboard"/>
-
- <Button x:Name="emailKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Email keyboard"/>
-
- <Button x:Name="emoticonKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Emoticon keyboard"/>
-
- <Button x:Name="hexKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Hexadecimal keyboard"/>
-
- <Button x:Name="ipLayoutKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="IP keyboard"/>
-
- <Button x:Name="monthKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Month keyboard"/>
-
- <Button x:Name="normalKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Default keyboard"/>
-
- <Button x:Name="numberKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Number keyboard"/>
-
- <Button x:Name="numberOnlyKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Number only keyboard"/>
-
- <Button x:Name="passworKeyboarddButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Password keyboard"/>
-
- <Button x:Name="phoneNumberKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Phone number keyboard"/>
-
- <Button x:Name="terminalKeyboardButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Terminal keyboard"/>
-
- <Button x:Name="urlKeyboarddButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="URL keyboard"/>
-
- </ScrollableBase>
-
- </ContentPage.Content>
-
-</ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.LabelTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View x:Name="layout"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- </View>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.LabelTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View.XamlResources>
- <ResourceDictionary>
- <x:String x:Key="label2Text">
- <color value='blue'>This should be Blue</color>
- </x:String>
- <x:String x:Key="label3Text">
- None<font weight='bold' >Bold</font><font slant='italic' >Italic</font><font slant='italic' weight='bold' >Both</font>
- </x:String>
- <x:String x:Key="label6Text">
- <color value='blue'><font slant='italic' >This should be Italic Blue on Red</font></color>
- </x:String>
- <x:String x:Key="label8Text">
- <Html>this is HTML</Html>
- </x:String>
- </ResourceDictionary>
- </View.XamlResources>
-
- <View x:Name="mainView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
- </View.Layout>
-
- <TextLabel Text="NormalTextLabel"/>
-
- <TextLabel BackgroundColor="Red"
- EnableMarkup="True"
- Text="{StaticResource label2Text}"/>
-
- <TextLabel EnableMarkup="True"
- Text="{StaticResource label3Text}"/>
-
- <TextLabel Text="This should be Blue"
- BackgroundColor="Red"
- TextColor="Blue"/>
-
- <TextLabel Text="This should be Red"
- TextColor="Red"/>
-
- <TextLabel EnableMarkup="True"
- Text="{StaticResource label6Text}"
- BackgroundColor="Red"/>
-
-
- <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="This is reeeeeeeeeeeeeeeeeeeeealy looooooooooooooooooooooong and looooooooooooooooooong text"
- MultiLine="True"
- LineWrapMode="Character"/>
-
- <TextLabel Text="{StaticResource label8Text}"/>
-
- </View>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.LabelTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View x:Name="mainView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="Yellow">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <TextLabel Text="LeftAligned"
- CellHorizontalAlignment="Left"
- BackgroundColor="#00ffff"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
- </View.Layout>
-
- <TextLabel Text="CenterAligned"
- CellHorizontalAlignment="Center"
- BackgroundColor="#00ffff"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
- </View.Layout>
-
- <TextLabel Text="RightAligned"
- CellHorizontalAlignment="Right"
- BackgroundColor="#00ffff"/>
-
- </View>
-
- <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Fill"
- BackgroundColor="#00ffff"/>
-
- </View>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ListItemTitle"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" BackgroundColor="#ff0000" Size2D="680, 50">
-
- <base:TextLabel x:Name="TextLabelTitle" Text="Not set"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ListItemTitleSwitch"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <base:TextLabel x:Name="TextLabelTitle" Text="Not set"/>
- <comp:Switch x:Name="ListItemSwitch"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ListItemTitleView"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <base:TextLabel x:Name="TextLabelTitle" Text="Not set"/>
- <base:View x:Name="ListItemView" BackgroundColor="#ff0000" Position2D="400, 0" Size2D="40, 40"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ListViewFooterTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Center"/>
- </base:View.Layout>
-
- <base:TextLabel x:Name="Footer" Text="No selected item" Size2D="720, 50" BackgroundColor="#6c6c6c"/>
-
- <comp:ScrollableBase x:Name="ListView" Size2D="720, 1180">
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="0,10" LinearAlignment="Center"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<Menu x:Class="NUITizenGallery.MenuTestMenu"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <Menu.Items>
- <Array Type="{x:Type MenuItem}">
-
- <MenuItem x:Name="menuItem1"
- Text="Item1"/>
-
- <MenuItem x:Name="menuItem2"
- Text="Item2"/>
-
- <MenuItem x:Name="menuItem3"
- Text="Item3"/>
-
- <MenuItem x:Name="menuItem4"
- Text="Item4"/>
-
- </Array>
- </Menu.Items>
-
-</Menu>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.MenuTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="MenuTestPage"/>
- </ContentPage.AppBar>
-
- <ContentPage.Content>
- <View x:Name="content"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <RelativeLayout/>
- </View.Layout>
-
- <Button x:Name="buttonCenterEnd"
- Text="Bottom Menu"/>
-
- <Button x:Name="buttonCenterStart"
- Text="Top Menu"/>
-
- <Button x:Name="buttonEndCenter"
- Text="Right Menu"/>
-
- <Button x:Name="buttonStartCenter"
- Text="Left Menu"/>
-
- <Button x:Name="buttonCenterCenter"
- Text="Center Menu"/>
-
- </View>
- </ContentPage.Content>
-
-</ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.OpacityTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <comp:Button Text="Opacity 0.4" Opacity="0.4" Position2D="80,100"/>
- <comp:Button Text="Opacity 0.2" Opacity="0.2" Position2D="340,100"/>
- <comp:Button Text="Opacity 0.9" Opacity="0.9" Position2D="200,200"/>
-
- <base:View Position2D="270,300">
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
- </base:View.Layout>
-
- <base:TextLabel Text="Opacity 0.2" Opacity="0.2"/>
- <base:TextLabel Text="Opacity 0.4" Opacity="0.4"/>
- <base:TextLabel Text="Opacity 0.6" Opacity="0.6"/>
- </base:View>
-
- <comp:Button Text="Opacity 1.0" Opacity="1.0" Position2D="200,520"/>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.PanGestureTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="PanGestureTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="60,60"/>
- </View.Layout>
-
- <View x:Name="imgView" BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.PerformanceTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center" PivotPoint="Center"
- PositionUsesPivotPoint="true" BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="PerformanceTest1Page"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="10,10" />
- </View.Layout>
-
- <comp:Button x:Name="StartButton" Text="Scroll to 999" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80"/>
-
- <base:TextLabel x:Name="FPSLabel" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="60" PointSize="8"
- Text="Click scroll button to measure FPS"/>
-
- <comp:ScrollableBase x:Name="Scroller" SnapToPage="true" ScrollingDirection="Vertical"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" BackgroundColor="Blue">
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="5,5"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.PerformanceTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <comp:Button x:Name="StartButton" Text="Scroll to 49" Size2D="700,70"/>
- <comp:ScrollableBase x:Name="LabelsListView"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.PerformanceTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <base:View x:Name="ButtonBox">
- <comp:Button x:Name="ScrollBegin" Text="Scroll to 0" Size2D="220,70"/>
- <comp:Button x:Name="ScrollMiddle" Text="Scroll to 100" Size2D="220,70"/>
- <comp:Button x:Name="ScrollEnd" Text="Scroll to 199" Size2D="220,70"/>
- </base:View>
-
- <comp:ScrollableBase x:Name="LabelsListView"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.PinchGestureTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="PinchGestureTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="60,60"/>
- </View.Layout>
-
- <View x:Name="imgView" BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ProgressbarTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent"
- BackgroundColor="#FFFFFF">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10,20"/>
- </base:View.Layout>
-
- <comp:Progress x:Name="TestProgress" WidthResizePolicy="FillToParent"/>
- <comp:Slider x:Name="TestSlider" WidthResizePolicy="FillToParent"/>
- <comp:Button x:Name="AnimateButton" Text="Animate"/>
- <comp:Button x:Name="ChangeColorButton" Text="ChangeColor"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.RecalculateTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <base:View x:Name="rootView" HeightResizePolicy="FillToParent" >
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="10, 10"/>
- </base:View.Layout>
- <base:View x:Name="lblView">
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="10, 10"/>
- </base:View.Layout>
- <base:TextLabel Text="abc1" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc2" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc3" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc4" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc5" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc6" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc7" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc8" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc9" CellHorizontalAlignment="Center"/>
- <base:TextLabel Text="abc0" CellHorizontalAlignment="Center"/>
- </base:View>
- <comp:Button x:Name="btn1" Text="clear" SizeWidth="720" CellHorizontalAlignment="Center"/>
- </base:View>
-</base:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.RefreshViewTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="RefreshViewTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
-
- <comp:Button x:Name="btn1" Text="Change" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="100" CellHorizontalAlignment="Left"/>
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.RotationTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <base:View x:Name="rootView" HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" >
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
- </base:View.Layout>
-
- <comp:Button x:Name="btn" Size2D="600, 100" Text="WOW!!" CellHorizontalAlignment="Center" CellVerticalAlignment="Center"/>
- <base:View x:Name="rect" Size2D="600, 100" BackgroundColor="Blue" CellHorizontalAlignment="Center" CellVerticalAlignment="Center" />
- <ImageView x:Name="img" CellHorizontalAlignment="Center" CellVerticalAlignment="Center"/>
- <TextLabel x:Name="label" Text="Rotation" CellHorizontalAlignment="Center" CellVerticalAlignment="Center"/>
- <TextLabel Text="X:"/>
- <comp:Slider x:Name="sliderX" Size2D="600, 50" MinValue="0" MaxValue="180" BgTrackColor="#b1b1b1" SlidedTrackColor="#3db9cc" TrackThickness="5" />
- <TextLabel Text="Y:"/>
- <comp:Slider x:Name="sliderY" Size2D="600, 50" MinValue="0" MaxValue="180" BgTrackColor="#b1b1b1" SlidedTrackColor="#3db9cc" TrackThickness="5"/>
- <TextLabel Text="Z:"/>
- <comp:Slider x:Name="sliderZ" Size2D="600, 50" MinValue="0" MaxValue="180" BgTrackColor="#b1b1b1" SlidedTrackColor="#3db9cc" TrackThickness="5"/>
-
- </base:View>
-
-</base:View>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ScaleTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- <comp:Button x:Name="ScaleButton" Text="Wow!!!" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ScaleTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="0,10"/>
- </View.Layout>
-
- <comp:Button x:Name="ScaleChangeButton" Text="Scale the bottom button" Size2D="0,50" WidthResizePolicy="FillToParent"/>
- <comp:Button x:Name="ScaleButton" Text="Scale me" Size2D="0,50" WidthResizePolicy="FillToParent"/>
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.ScrollViewTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <base:View x:Name="rootView" HeightResizePolicy="FillToParent" >
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
-
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="CenterHorizontal"/>
- </comp:ScrollableBase.Layout>
- <comp:Button x:Name="btn" Text="Test ScrollTo" Size2D="700,100" />
- </comp:ScrollableBase>
- </base:View>
- </base:View>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ScrollViewTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest3"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
- <base:TextLabel x:Name="scrollInfo" Text="scroll X:0, Y:0" Size2D="700,70" />
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
- <comp:Button x:Name="btn" Text="Test ScrollTo" Size2D="240,100" />
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </base:View>
-
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ScrollViewTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest4"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
-
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
- <base:TextLabel x:Name="scrollInfo" Text="scroll X:0, Y:0" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="70" />
- <comp:Button x:Name="btn" Text="change" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="100" />
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ScrollViewTest6Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest6"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <View x:Name="textView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ScrollableBase x:Name="ScrollAreaMain" HideScrollbar="True" ScrollingDirection="Vertical" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="Begin"/>
- </comp:ScrollableBase.Layout>
- <comp:ScrollableBase x:Name="ScrollArea" HideScrollbar="True" ScrollingDirection="Horizontal" >
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10" LinearAlignment="Begin"/>
- </comp:ScrollableBase.Layout>
- <base:TextLabel x:Name="txtLbl1" Text="This is what a ScrollView widget looks like." TextColor="Blue" CellHorizontalAlignment="Left"/>
- <base:TextLabel x:Name="txtLbl2" Text="Please use the widgets to test ScrollView's behavior." TextColor="Green" CellHorizontalAlignment="Left" />
- <base:TextLabel x:Name="txtLbl3" Text="This is long horizontal text." TextColor="Cyan" CellHorizontalAlignment="Left" FontSizeScale="0.8"/>
- </comp:ScrollableBase>
- <base:TextLabel x:Name="widthLbl" Text="Width:400.00" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HorizontalAlignment="Begin" VerticalAlignment="Center" PointSize="8"/>
- <comp:Slider x:Name="slider1" MinValue="50" MaxValue="800" CurrentValue="400" HeightSpecification="50" WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
- <base:TextLabel x:Name="heightLbl" Text="Height:300.00" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HorizontalAlignment="Begin" VerticalAlignment="Center" PointSize="8"/>
- <comp:Slider x:Name="slider2" MinValue="50" MaxValue="600" CurrentValue="400" HeightSpecification="50" WidthSpecification="{Static LayoutParamPolicies.MatchParent}"/>
- <comp:Button x:Name="btn1" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Add more horizontal text"/>
- <comp:Button x:Name="btn2" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Add more vertical text"/>
- <comp:Button x:Name="btn3" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Remove more vertical text"/>
- <base:TextLabel x:Name="scrollLbl" Text="ScrollX: 0, ScrollY: 0" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HorizontalAlignment="Begin" VerticalAlignment="Center" PointSize="8"/>
- <comp:Button x:Name="btn4" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Async scroll to (0, 0) without animation"/>
- <comp:Button x:Name="btn5" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Async scroll to (0, 0) with animation"/>
- <base:TextLabel x:Name="orientLbl" Text="Orientation: Horizontal" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HorizontalAlignment="Begin" VerticalAlignment="Center" PointSize="8"/>
- <comp:Button x:Name="btn6" HeightSpecification="100" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Text="Set Orientation to Vertical"/>
- </comp:ScrollableBase>
- </View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ScrollViewTest7Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="White"
- PositionUsesPivotPoint="True"
- ParentOrigin="Center"
- PivotPoint="Center">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="ScrollViewTest7"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="rootView" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10, 10"/>
- </base:View.Layout>
- <base:TextLabel x:Name="scrollInfo" Text="scroll X:0, Y:0" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="70" />
- <comp:Button x:Name="btn" Text="Random vertical scroll" Size2D="{Binding Source={x:Static Window.Instance}, Path=Size }" HeightSpecification="100" />
- <base:View x:Name="lblView">
- <comp:ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
- <comp:ScrollableBase.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10, 10"/>
- </comp:ScrollableBase.Layout>
- </comp:ScrollableBase>
- </base:View>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.SetColorTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center"
- PivotPoint="Center" WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent" BackgroundColor="#FFFFFF">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar" Title="CarouselPageTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="5,5" />
- </View.Layout>
-
- <comp:Button x:Name="ChangeColorButton" Text="ChangeColor"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
-
- <base:TextLabel x:Name="ButtonColorName" Text="" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
- HeightSpecification="{Static LayoutParamPolicies.WrapContent}" MultiLine="true"/>
-
- <base:View WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="50,0"/>
- </View.Layout>
-
- <comp:CheckBox x:Name="CheckBox1" Size2D="30,30" IsSelected="false"/>
- <comp:CheckBox x:Name="CheckBox2" Size2D="30,30" IsSelected="true"/>
- </base:View>
-
- <base:TextLabel x:Name="CheckBoxColorName" Text="" WidthSpecification="{Static LayoutParamPolicies.WrapContent}"
- HeightSpecification="{Static LayoutParamPolicies.WrapContent}" MultiLine="true"/>
-
- <comp:Progress x:Name="ProgressBar" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" CurrentValue="50.0"/>
- <base:TextLabel x:Name="ProgressBarColorName" Text="" WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}" MultiLine="true"/>
-
- <base:View WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="50,0"/>
- </View.Layout>
-
- <comp:RadioButton x:Name="RadioButton1" Size2D="30,30" IsSelected="false"/>
- <comp:RadioButton x:Name="RadioButton2" Size2D="30,30" IsSelected="true"/>
- </base:View>
-
- <base:TextLabel x:Name="RadioColorName" Text="" Size2D="0,120" WidthResizePolicy="FillToParent" MultiLine="true"/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.SimpleTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="SimpleTest"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="10,10" />
- </View.Layout>
-
- <base:TextLabel Text="aaaaaaaaaa aaaaaa aaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaa" x:Name="CounterViewer" Size2D="320, 100" MultiLine="true"/>
- <comp:Button Text="Click Me!" x:Name="CounterButton" WidthSpecification="{Static LayoutParamPolicies.WrapContent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.SliderTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
-<b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
- </View.Layout>
-
-
- <b:TextLabel x:Name="text1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- PointSize="8"
- Text="slider value: 50.0"
- />
-
- <nui:Slider x:Name="slider1"
- MinValue="0"
- MaxValue="100"
- CurrentValue="50"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- TrackThickness="5"
- BgTrackColor="#b1b1b1"
- SlidedTrackColor="#3db9cc"
- />
- <b:View x:Name="innerView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center" CellPadding="20,20"/>
- </View.Layout>
-
- <nui:Button x:Name="button1"
- SizeHeight="100"
- BackgroundColor="#3db9cc"
- PointSize="6"
- Text="increment"
- Weight="0.5" />
- <nui:Button x:Name="button2"
- SizeHeight="100"
- BackgroundColor="#3db9cc"
- PointSize="6"
- Text="decrement"
- Weight="0.5" />
- </b:View>
-
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.SliderTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
-<b:View x:Name="rootView"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
- </View.Layout>
-
-
- <b:TextLabel x:Name="text1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- PointSize="8"
- Text="slider value: 50.0"
- />
-
- <nui:Slider x:Name="slider1"
- MinValue="0"
- MaxValue="100"
- CurrentValue="50"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- TrackThickness="5"
- BgTrackColor="#b1b1b1"
- SlidedTrackColor="#3db9cc"
- Direction="Horizontal"
- />
- <nui:Button x:Name="button1"
- SizeHeight="100"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="#3db9cc"
- PointSize="6"
- Text="Change orientation" />
-
-
- </b:View>
-</b:View>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <TextLabel Text="1 Row - 1 Label"
- PointSize="8"/>
-
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <TextLabel Text="1 Row - 2 Label"
- PointSize="8"/>
-
- </View>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <TextLabel Text="2 Row - 1 Label"
- PointSize="8"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <TextLabel Text="2 Row - 2 Label"
- PointSize="8"/>
-
- </View>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <TextLabel Text="Third Row - I'm on left"
- PointSize="8"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
- </View.Layout>
-
- <TextLabel Text="Fourth Row - I'm on right"
- PointSize="8"/>
-
- </View>
-
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
- </View.Layout>
-
- <Button Text="button1"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" Weight="0.5">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
- </View.Layout>
-
- <Button Text="button2"/>
-
- </View>
-
- </View>
-
- </View>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="10,10"/>
- </View.Layout>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="10,10"/>
- </View.Layout>
-
- <View Size2D="100,100"
- BackgroundColor="1,0,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,1,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,0,1,1"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="20,20"/>
- </View.Layout>
-
- <View Size2D="100,100"
- BackgroundColor="1,0,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,1,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,0,1,1"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="30,30"/>
- </View.Layout>
-
- <View Size2D="100,100"
- BackgroundColor="1,0,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,1,0,1"/>
-
- <View Size2D="100,100"
- BackgroundColor="0,0,1,1"/>
-
- </View>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- <View x:Name="layout"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- <Button x:Name="addButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Add label"/>
-
- </View>
-
- <TextLabel Text="End"/>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest5Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel Text="abcde"
- PointSize="6"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="0.2"/>
-
- <TextLabel Text="12345"
- PointSize="6"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="0.2"/>
-
- <TextLabel Text="This is rather looooooonoooooooooooog and looooooooong text"
- PointSize="6"
- MultiLine="True"
- LineWrapMode="Character"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="0.2"/>
-
- <TextLabel Text="This is blue text"
- TextColor="0,0,1,1"
- PointSize="6"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="0.2"/>
-
-
- <View BackgroundColor="0,1,0,1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- Weight="0.2"/>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest6Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:vm="clr-namespace:NUITizenGallery"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="20,20"/>
- </View.Layout>
-
- <Button x:Name="changeOrientationButton"
- Text="Change orientation"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}"/>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel Text="Padding"/>
-
- <Slider x:Name="paddingSlider"
- Weight="1.0"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- MinValue="0.0"
- MaxValue="100.0"/>
-
- </View>
-
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
-
- <View.Layout>
- <LinearLayout LinearAlignment="Begin" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel Text="CellPadding"/>
-
- <Slider x:Name="cellPaddingSlider"
- Weight="1.0"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- MinValue="0.0"
- MaxValue="100.0"/>
-
- </View>
-
- <View BackgroundColor="Black"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="20"/>
-
- <View x:Name="layout"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin"/>
- </View.Layout>
-
- <TextLabel x:Name="firstLabel"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="this is first label with loooooooong and loooooooong and loooooooongand loooooooongand loooooooong text"
- MultiLine="True"
- PointSize="6"/>
-
- <View x:Name="switchView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearAlignment="Center" />
- </View.Layout>
-
- <Switch IsSelectable="True"
- IsSelected="False"/>
-
- </View>
-
- <View x:Name="blueBox"
- BackgroundColor="Blue"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="300"/>
-
- <TextLabel x:Name="lastLabel"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="this is first label with loooooooong and loooooooong and loooooooongand loooooooongand loooooooong text"
- MultiLine="True"
- PointSize="6"/>
-
- </View>
-
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.StackLayoutTest8Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:vm="clr-namespace:NUITizenGallery"
- BackgroundColor="#EEFFEE"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent">
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel Text="Padding"
- TextColor="Black"/>
-
- <Slider x:Name="sliderPadding"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- CurrentValue="0.0"
- MinValue="0.0"
- MaxValue="50.0"/>
-
- <TextLabel Text="CellPadding"
- TextColor="Black"/>
-
- <Slider x:Name="sliderCellPadding"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- CurrentValue="0.0"
- MinValue="0.0"
- MaxValue="50.0"/>
-
- <TextLabel Text="Margin"
- TextColor="Black"/>
-
- <Slider x:Name="sliderMargin"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- CurrentValue="0.0"
- MinValue="0.0"
- MaxValue="50.0"/>
-
- <Button x:Name="buttonOrientation"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Toggle Orientation"/>
-
- <Button x:Name="buttonReset"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Reset"/>
-
- <View x:Name="layout"
- BackgroundColor="#BBFFBB"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical"/>
- </View.Layout>
-
- <View x:Name="redBox"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="Red"
- HeightSpecification="80"/>
-
- <View x:Name="greenBox"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="Green"
- HeightSpecification="80"/>
-
- <View x:Name="blueBox"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="Blue"
- HeightSpecification="80"/>
-
- </View>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.SwipeGestureRecognizerTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="SwipeGestureRecognizerTest"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Top" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel x:Name="text1"
- PointSize="8"
- Text="SwipeGestureRecognizer" />
-
- <TextLabel x:Name="text2"
- PointSize="8"
- Text="Swipe across the red area" />
-
- <View x:Name="areaView"
- BackgroundColor="Red"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.SwipeViewTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="SwipeViewTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="30,30"/>
- </View.Layout>
-
- <View x:Name="table" >
- <base:View.Layout >
- <GridLayout Columns="3" Rows="4" GridOrientation="Horizontal" ColumnSpacing="2" RowSpacing="2" />
- </base:View.Layout>
-
- <TextLabel x:Name="text1"
- GridLayout.Column="1" GridLayout.Row="0"
- HorizontalAlignment="Center"
- PointSize="8"
- SizeHeight="70"
- Text="SwipeGestureRecognizer" />
-
- <TextLabel x:Name="text2"
- GridLayout.Column="1" GridLayout.Row="1"
- WidthSpecification="200"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- PointSize="8"/>
-
- <TextLabel x:Name="text3"
- GridLayout.Column="1" GridLayout.Row="3"
- WidthSpecification="200"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- PointSize="8"/>
-
- <View x:Name="img1View" GridLayout.Column="0" GridLayout.Row="2" SizeWidth="100" SizeHeight="100">
- <ImageView x:Name="image1"
- SizeWidth="1" SizeHeight="1"
- ResourceUrl="*Resource*/images/tizen.png" />
- </View>
-
- <View x:Name="img2View" GridLayout.Column="2" GridLayout.Row="2" SizeWidth="100" SizeHeight="100">
- <ImageView x:Name="image2"
- SizeWidth="1" SizeHeight="1"
- ResourceUrl="*Resource*/images/tizen.png" />
- </View>
-
- <View x:Name="imgView" BackgroundColor="#ffffff" GridLayout.Column="1" GridLayout.Row="2">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <ImageView x:Name="imageView"
- SizeWidth="200"
- SizeHeight="200"
- ResourceUrl="*Resource*/images/Boston.png" />
-
- </View>
-
- </View>
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.SwipeViewTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="SwipeViewTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
- </View.Layout>
-
- <View x:Name="test1" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View x:Name="text1BackView" BackgroundColor="#FF8224" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <base:View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="End" CellPadding="10,10"/>
- </base:View.Layout>
- <ImageView x:Name="image1Back"
- SizeWidth="70" SizeHeight="70"
- ResourceUrl="*Resource*/images/tizen.png" />
- </View>
-
- <View x:Name="text1View" BackgroundColor="#AE48A0" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <TextLabel x:Name="text1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SizeHeight="70"
- PointSize="8"
- Text="Swipe Left to be invoked" />
- </View>
- </View>
-
- <View x:Name="test2" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View x:Name="text2BackView" BackgroundColor="#FF8224" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <TextLabel x:Name="text2Back"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HorizontalAlignment="End"
- VerticalAlignment="Center"
- SizeHeight="70"
- PointSize="8"
- Text="Tizen" />
- </View>
- <View x:Name="text2View" BackgroundColor="#AE48A0" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <TextLabel x:Name="text2"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SizeHeight="70"
- PointSize="8"
- Text="Swipe Left to be execute command" />
- </View>
- </View>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.TapGestureTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="TapGestureTest1"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <TabView x:Name="tabView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- </TabView>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.TapGestureTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="TapGestureTest2"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
- </View.Layout>
-
- <TextLabel x:Name="text1"
- PointSize="8"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- MultiLine="True"
- />
-
- <View x:Name="imgView" BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.TapGestureTest3Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="TapGestureTest3"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="30,30"/>
- </View.Layout>
-
-
- <View x:Name="imgView" BackgroundColor="#ffffff">
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
- <ImageView x:Name="imageView" ResourceUrl="*Resource*/images/picture.png" />
- </View>
-
- <TextLabel x:Name="text1"
- PointSize="8"
- Text="Tap the photo!" />
-
- <comp:Button x:Name="button1"
- SizeHeight="70"
- BackgroundColor="#3db9cc"
- PointSize="8"
- Text="Change the number of taps required"/>
-
- <TextLabel x:Name="text2"
- PointSize="8"/>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.TapGestureTest4Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="TapGestureTest4"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="20,20"/>
- </View.Layout>
-
- <TextLabel x:Name="text1"
- PointSize="8"
- MultiLine="True" />
-
- <TextLabel x:Name="text2"
- PointSize="8"
- TextColor="Red" />
-
-
- <ImageView x:Name="imageView"
- ResourceUrl="*Resource*/images/Image.png"
- SizeHeight="70"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
- <View x:Name="boxView"
- BackgroundColor="Green"
- SizeHeight="70"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}" />
-
-
- <comp:Button x:Name="button1"
- SizeHeight="70"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- BackgroundColor="#3db9cc"
- PointSize="8"
- Text="It's a Button"/>
-
- <TextLabel x:Name="label1"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- SizeHeight="70"
- BackgroundColor="Yellow"
- PointSize="8"
- Text="It's a Label"/>
-
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<base:View x:Class="NUITizenGallery.Test1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
-
- <base:TextLabel x:Name="test1PageText" Text="Hello NUI XAML !" PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center"
- WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" HorizontalAlignment="Center" VerticalAlignment="Center"
- PointSize="15" TextColor="Cyan"/>
-
-</base:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<b:View x:Class="NUITizenGallery.Test2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
-
- <b:TextLabel x:Name="test2PageText" Text="Test2Page" Size2D="500,300" Position2D="50,50" PointSize="20" TextColor="Blue"/>
-
-</b:View>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ContentPage x:Class="NUITizenGallery.TextAnchorTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <ContentPage.AppBar>
- <AppBar x:Name="appBar"
- Title="TextAnchorTestPage"/>
- </ContentPage.AppBar>
-
- <ContentPage.Content>
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <TextField x:Name="field" Text="Text Anchor Test" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80" />
- <TextLabel x:Name="anchorLabel" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80" />
- <TextField x:Name="anchorField" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80" />
- <TextEditor x:Name="anchorEditor" WidthSpecification="{Static LayoutParamPolicies.MatchParent}" HeightSpecification="80" />
-
- </View>
- </ContentPage.Content>
-
-</ContentPage>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.TimePickerTestPage"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="TimePickerTestPage"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <base:View x:Name="ContentView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterHorizontal" CellPadding="30,30"/>
- </View.Layout>
- <base:TextLabel x:Name="text1"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="100"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- PointSize="20"
- />
- <comp:Button x:Name="timeButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="80"
- Text="Time Picker"
- PointSize="20"
- />
- <comp:Button x:Name="setNowButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="80"
- Text="Set Now Time"
- PointSize="20"
- />
- <comp:Button x:Name="changePickerStyleButton"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="80"
- Text="Change TimePicker Style"
- PointSize="20"
- />
- </base:View>
- </comp:ContentPage.Content>
-</comp:ContentPage>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<comp:ContentPage x:Class="NUITizenGallery.ToolbarItemTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:comp="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- BackgroundColor="White"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <comp:ContentPage.AppBar>
- <comp:AppBar x:Name="appBar"
- Title="ToolbarItemTest1Page"/>
- </comp:ContentPage.AppBar>
-
- <comp:ContentPage.Content>
- <View WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
-
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" CellPadding="10,10" LinearAlignment="CenterHorizontal"/>
- </View.Layout>
-
- <TextLabel Text="ToolbarItemTest" />
-
- <Button x:Name="addPage1Button"
- Text="Add Page 1"/>
-
- <Button x:Name="addPage2Button"
- Text="Add Page 2"/>
-
- <Button x:Name="addPage3Button"
- Text="Add Page 3"/>
-
- <Button x:Name="addPage4Button"
- Text="Add Page 4"/>
-
- </View>
-
- </comp:ContentPage.Content>
-
-
-</comp:ContentPage>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<c:ContentPage x:Class="NUITizenGallery.WebViewTest1Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:c="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <c:ContentPage.AppBar>
- <c:AppBar x:Name="appBar" Title="WebViewTest1"/>
- </c:ContentPage.AppBar>
-
- <c:ContentPage.Content>
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="80"
- Padding="20,0,0,0">
- <View.Layout>
- <LinearLayout
- LinearOrientation="Horizontal"
- LinearAlignment="CenterVertical" />
- </View.Layout>
-
- <TextField
- x:Name="InputField"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- VerticalAlignment="Center"
- Text="https://m.naver.com/"
- TextChanged="OnTextChanged" />
-
- <c:Button
- x:Name="GoButton"
- WidthSpecification="120"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Go"
- Clicked="OnGoClicked"/>
- </View>
-
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="2"
- BackgroundColor="#0A0E4A"
- Margin="20,120,0,0"/>
-
- <WebView x:Name="TargetWebView"
- Url="https://m.naver.com/"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- UrlChanged="OnUrlChanged"/>
-
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.WrapContent}">
-
- <View.Layout>
- <LinearLayout
- LinearOrientation="Horizontal"
- LinearAlignment="Center"
- CellPadding="20, 20" />
- </View.Layout>
-
- <c:Button
- x:Name="BackButton"
- Weight="0.5"
- HeightSpecification="80"
- IsEnabled="False"
- Text="Back"
- Clicked="OnBackClicked"/>
-
- <c:Button
- x:Name="NextButton"
- Weight="0.5"
- HeightSpecification="80"
- IsEnabled="False"
- Text="Next"
- Clicked="OnNextClicked"/>
- </View>
- </View>
- </c:ContentPage.Content>
-</c:ContentPage>
-
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<c:ContentPage x:Class="NUITizenGallery.WebViewTest2Page"
- xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:c="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- ParentOrigin="Center"
- PivotPoint="Center"
- PositionUsesPivotPoint="true"
- BackgroundColor="White">
-
- <c:ContentPage.AppBar>
- <c:AppBar x:Name="appBar" Title="WebViewTest2"/>
- </c:ContentPage.AppBar>
-
- <c:ContentPage.Content>
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
- <View.Layout>
- <LinearLayout LinearOrientation="Vertical" />
- </View.Layout>
-
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="200"
- Padding="20,0,0,0">
- <View.Layout>
- <LinearLayout
- LinearOrientation="Horizontal"
- LinearAlignment="CenterVertical" />
- </View.Layout>
-
- <TextEditor
- x:Name="InputField"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- TextChanged="OnTextChanged" />
-
- <c:Button
- x:Name="RunButton"
- WidthSpecification="120"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}"
- Text="Run"
- Clicked="OnRunClicked"/>
- </View>
-
- <View
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="2"
- BackgroundColor="#0A0E4A"
- Margin="20,120,0,0"/>
-
- <WebView x:Name="TargetWebView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}" />
- </View>
- </c:ContentPage.Content>
-</c:ContentPage>
-