"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
- "WARNING01": "*********************************************************************************",
- "WARNING02": "The C# extension was unable to automatically decode projects in the current",
- "WARNING03": "workspace to create a runnable launch.json file. A template launch.json file has",
- "WARNING04": "been created as a placeholder.",
- "WARNING05": "",
- "WARNING06": "If OmniSharp is currently unable to load your project, you can attempt to resolve",
- "WARNING07": "this by restoring any missing project dependencies (example: run 'dotnet restore')",
- "WARNING08": "and by fixing any reported errors from building the projects in your workspace.",
- "WARNING09": "If this allows OmniSharp to now load your project then --",
- "WARNING10": " * Delete this file",
- "WARNING11": " * Open the Visual Studio Code command palette (View->Command Palette)",
- "WARNING12": " * run the command: '.NET: Generate Assets for Build and Debug'.",
- "WARNING13": "",
- "WARNING14": "If your project requires a more complex launch configuration, you may wish to delete",
- "WARNING15": "this configuration and pick a different template using the 'Add Configuration...'",
- "WARNING16": "button at the bottom of this file.",
- "WARNING17": "*********************************************************************************",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/NUITizenGallery.dll",
"args": [],
"PKG_CONFIG_PATH":"${env:HOME}/dali-env/opt/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig",
"DOTNET_CLI_TELEMETRY_OPTOUT":"1",
"DALI_WINDOW_WIDTH":"720",
- "DALI_WINDOW_HEIGHT":"1080",
+ "DALI_WINDOW_HEIGHT":"800",
},
"cwd": "${workspaceFolder}",
"console": "internalConsole",
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.AbsoluteLayoutTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.ActivityIndicatorTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.AlertDialogTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
--- /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.Components;
+
+namespace NUITizenGallery
+{
+ internal class AnimatedVectorImageViewTest : IExample
+ {
+ Window window;
+
+ public void Activate()
+ {
+ window = NUIApplication.GetDefaultWindow();
+ window.GetDefaultNavigator().Push(new AnimatedVectorImageViewTestPage());
+ }
+ public void Deactivate()
+ {
+ window.GetDefaultNavigator().Pop();
+ }
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<ContentPage x:Class="NUITizenGallery.AnimatedVectorImageViewTestPage"
+ 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="AnimatedVectorImageViewTestPage"/>
+ </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 x:Name="ChangeCurrFrameBtn"
+ WidthSpecification="500"
+ HeightSpecification="100"
+ BackgroundColor="#52c7d9"
+ PointSize="15"
+ TextColor="#800080"
+ Position2D="50, 40"
+ Text="change current frame"
+ Weight="0.12">
+ </Button>
+
+ <Button x:Name="GetCurrFrameBtn"
+ WidthSpecification="500"
+ HeightSpecification="100"
+ BackgroundColor="#52c7d9"
+ PointSize="15"
+ TextColor="#800080"
+ Text="get current frame"
+ Position2D="600, 40"
+ Weight="0.12">
+ </Button>
+
+ <Button x:Name="PlayBtn"
+ WidthSpecification="500"
+ HeightSpecification="100"
+ BackgroundColor="#52c7d9"
+ PointSize="15"
+ TextColor="#800080"
+ Text="play"
+ Position2D="50, 150"
+ Weight="0.12">
+ </Button>
+
+ <Button x:Name="StopBtn"
+ WidthSpecification="500"
+ HeightSpecification="100"
+ BackgroundColor="#52c7d9"
+ PointSize="15"
+ TextColor="#800080"
+ Text="stop"
+ Position2D="600, 150"
+ Weight="0.12">
+ </Button>
+
+ <Button x:Name="SetMinMaxBtn"
+ WidthSpecification="500"
+ HeightSpecification="100"
+ BackgroundColor="#52c7d9"
+ PointSize="15"
+ TextColor="#800080"
+ Text="SetMinAndMaxFrame"
+ Position2D="1200, 150"
+ Weight="0.12">
+ </Button>
+
+ <AnimatedVectorImageView x:Name="aviv" Position2D="300,300" ResourceUrl="*Resource*/images/cycle_animation.json" RepeatCount="-1"/>
+
+ </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
+{
+ using tlog = Tizen.Log;
+
+ public partial class AnimatedVectorImageViewTestPage : ContentPage
+ {
+ private const string tag = "NUITEST";
+ private int toggle, toggle2, toggle3;
+
+ public AnimatedVectorImageViewTestPage()
+ {
+ InitializeComponent();
+ tlog.Error(tag, $"aviv TotalFrame={aviv.TotalFrame}");
+ ChangeCurrFrameBtn.Clicked += ChangeCurrFrameBtnClicked;
+ PlayBtn.Clicked += PlayBtnClicked;
+ StopBtn.Clicked += StopBtnClicked;
+ GetCurrFrameBtn.Clicked += GetCurrFrameBtnClicked;
+ SetMinMaxBtn.Clicked += SetMinMaxBtnClicked;
+ }
+
+ private void SetMinMaxBtnClicked(object sender, ClickedEventArgs e)
+ {
+ string tmpText = "SetMinAndMaxFrame";
+ switch (++toggle3 % 3)
+ {
+ case 0:
+ aviv.SetMinAndMaxFrame(-1, 1000);
+ tmpText += $"(-1, 1000)";
+ break;
+ case 1:
+ aviv.SetMinAndMaxFrame(10, 50);
+ tmpText += $"(10, 50)";
+ break;
+ case 2:
+ aviv.SetMinAndMaxFrame(51, 52);
+ tmpText += $"(51, 52)";
+ break;
+ default:
+ break;
+ }
+ SetMinMaxBtn.Text = tmpText + $" CurrentFrame={aviv.CurrentFrame}";
+ tlog.Error(tag, $"case {toggle3}: aviv AnimationState={aviv.AnimationState} CurrentFrame={aviv.CurrentFrame}");
+ }
+
+ private void GetCurrFrameBtnClicked(object sender, ClickedEventArgs e)
+ {
+ GetCurrFrameBtn.Text = $"get current frame ({aviv.CurrentFrame})";
+ tlog.Error(tag, $"aviv AnimationState={aviv.AnimationState} CurrentFrame={aviv.CurrentFrame}");
+ }
+
+ private void PlayBtnClicked(object sender, ClickedEventArgs e)
+ {
+ aviv.Play();
+ PlayBtn.Text = $"play ({aviv.AnimationState}) curr frame={aviv.CurrentFrame}";
+ }
+
+ private void StopBtnClicked(object sender, ClickedEventArgs e)
+ {
+ string tmpText = "stop";
+ switch (++toggle2 % 3)
+ {
+ case 0:
+ aviv.Stop(AnimatedVectorImageView.EndActions.Cancel);
+ tmpText = $"stop ({aviv.AnimationState}) EndAction(Cancel)";
+ break;
+ case 1:
+ aviv.Stop(AnimatedVectorImageView.EndActions.Discard);
+ tmpText = $"play/stop ({aviv.AnimationState}) EndAction(Discard)";
+ break;
+ case 2:
+ aviv.Stop(AnimatedVectorImageView.EndActions.StopFinal);
+ tmpText = $"play/stop ({aviv.AnimationState}) EndAction(StopFinal)";
+ break;
+ default:
+ break;
+ }
+ StopBtn.Text = tmpText + $" curr frame={aviv.CurrentFrame}";
+ tlog.Error(tag, $"case {toggle2}: aviv AnimationState={aviv.AnimationState} CurrentFrame={aviv.CurrentFrame}");
+ }
+
+ private void ChangeCurrFrameBtnClicked(object sender, ClickedEventArgs e)
+ {
+ switch (++toggle % 3)
+ {
+ case 0:
+ aviv.CurrentFrame = 0;
+ tlog.Error(tag, $"case 0: aviv CurrentFrame={aviv.CurrentFrame}");
+ break;
+ case 1:
+ aviv.CurrentFrame = 5;
+ tlog.Error(tag, $"case 1: aviv CurrentFrame={aviv.CurrentFrame}");
+ break;
+ case 2:
+ aviv.CurrentFrame = aviv.TotalFrame;
+ tlog.Error(tag, $"case 2: aviv CurrentFrame={aviv.CurrentFrame}");
+ break;
+ default:
+ break;
+ }
+ ChangeCurrFrameBtn.Text = $"change current({aviv.CurrentFrame}) frame";
+ }
+ }
+}
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundColorTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundColorTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundColorTest3Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundColorTest4Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundColorTest5Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BackgroundTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BindingTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:vm="clr-namespace:NUITizenGallery.ViewModels"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BindingTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:vm="clr-namespace:NUITizenGallery.ViewModels"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BoxViewTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BoxViewTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BoxViewTest3Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BoxViewTest4Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BrushBackgroundTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BrushBorderTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BrushComponentsTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BrushImageTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.BrushViewerTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
PointSize="10"
TextColor="#ffffff"
Weight="0.12">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview1" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
<Button x:Name="button3"
Text="Image and Text Button"
TextColor="#ffffff"
Weight="0.12">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview2" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
<Button x:Name="button4"
Text="Color Change"
TextColor="#52c7d9"
Weight="0.12">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview3" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
<Button x:Name="button5"
Text="Text Toggle"
TextColor="#ffffff"
Weight="0.12">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview4" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
<Button x:Name="button6"
Text="Image Toggle"
TextColor="#ffffff"
Weight="0.12">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview5" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
<Button x:Name="button7"
public ButtonTest1Page()
{
InitializeComponent();
- imageview1.ResourceUrl = ImageURL + "NUITizenGallery.png";
- imageview2.ResourceUrl = ImageURL + "NUITizenGallery.png";
- imageview3.ResourceUrl = ImageURL + "NUITizenGallery.png";
- imageview4.ResourceUrl = ImageURL + "NUITizenGallery.png";
- imageview5.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button2.Icon.Size2D = new Size2D(60, 60);
+ button2.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button3.Icon.Size2D = new Size2D(60, 60);
+ button3.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button4.Icon.Size2D = new Size2D(60, 60);
+ button4.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button5.Icon.Size2D = new Size2D(60, 60);
+ button5.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button6.Icon.Size2D = new Size2D(60, 60);
+ button6.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
button4.Clicked += (s, e) =>
{
Opacity="0.5"
PointSize="8">
- <Button.Icon>
+ <!--<Button.Icon>
<ImageView x:Name="imageview1" Size2D="60,60" />
- </Button.Icon>
+ </Button.Icon>-->
</Button>
public ButtonTest2Page()
{
InitializeComponent();
- imageview1.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ coloredButton.Icon.Size2D = new Size2D(60, 60);
+ coloredButton.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
coloredButton.Clicked += OnColoredButtonClicked;
button3.Clicked += OnButton3Clicked;
}
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CarouselPageTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CarouselViewFocusTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<View x:Class="NUITizenGallery.CarouselViewItem"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CarouselViewTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CarouselViewTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CarouselViewTest4Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<RecyclerViewItem x:Class="NUITizenGallery.CollectionViewCustomItem"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
<TextLabel x:Name="MainLabel"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
HeightSpecification="{Static LayoutParamPolicies.WrapContent}"
- CellHorizontalAlignment="Left"
- CellVerticalAlignment="Center"
+ HorizontalAlignment="Begin"
+ VerticalAlignment="Center"
Text="{Binding Name}"/>
<CheckBox x:Name="Checkbox"
</View.Layout>
<TextLabel x:Name="IndexLebel"
- CellVerticalAlignment="Center"
- CellHorizontalAlignment="Center"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center"
Text="{Binding Index}"
TextColor="{Binding BgColor}"/>
<ImageView x:Name="SubIcon"
public CollectionViewCustomItem()
{
- Tizen.Log.Error("NUI", "Custom Item Created");
+ Tizen.Log.Info("NUI", "Custom Item Created");
InitializeComponent();
- Tizen.Log.Error("NUI", "Custom Item Initalzied");
+ Tizen.Log.Info("NUI", "Custom Item Initalzied");
Clicked+=OnClicked;
}
}
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewCustomItemTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewObservableTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest3Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest4Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest5Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest6Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest7Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest8Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CollectionViewTest9Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.ContentPageTestPage1"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.ContentPageTestPage2"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<View x:Class="NUITizenGallery.CustomCellListItem"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.CustomCellTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
/*
- * Copyright(c) 2022 Samsung Electronics Co., Ltd.
+ * 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.
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.GraphicsTypeTestPage"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
HeightSpecification="500"
BackgroundColor="#D3D6DD">
- <TextLabel Text="This View is pixel based view." PointSize="12" Position2D="73,130"/>
+ <TextLabel Text="Pixels" PointSize="12" Position2D="73,130"/>
<View BackgroundColor="#FF0000" Position2D="32,108" Size2D="400,5"/>
<View BackgroundColor="#00FF00" Position2D="32,120" Size="400,5"/>
<View BackgroundColor="#0000FF" Position="42,100" Size2D="5,100"/>
<View BackgroundColor="#FF00FF" Position="54,100" Size="5,100"/>
<View x:Name="PixelRect" BackgroundColor="#FFFFFF"/>
<TextLabel x:Name="PixelText" PixelSize="20"/>
- <TextLabel x:Name="PointText" PointSize="20"/>
</View>
<View x:Name="DpTypeView"
HeightSpecification="500dp"
BackgroundColor="#96D3DE">
- <TextLabel Text="This View is Dp based view." PointSize="12dp" Position2D="73dp,130dp"/>
+ <TextLabel Text="DP" PointSize="12dp" Position2D="73dp,130dp"/>
<View BackgroundColor="#FF0000" Position2D="32dp,108dp" Size2D="400dp,5dp"/>
<View BackgroundColor="#00FF00" Position2D="32dp,120dp" Size="400dp,5dp"/>
<View BackgroundColor="#0000FF" Position="42dp,100dp" Size2D="5dp,100dp"/>
<View BackgroundColor="#FF00FF" Position="54dp,100dp" Size="5dp,100dp"/>
<View x:Name="DpRect" BackgroundColor="#FFFFFF"/>
- <TextLabel x:Name="DpPixelText" PixelSize="20dp"/>
- <TextLabel x:Name="DpPointText" PointSize="20dp"/>
+ <TextLabel x:Name="DpText" PixelSize="20"/>
</View>
<View x:Name="SpTypeView"
HeightSpecification="500sp"
BackgroundColor="#B2DAB8">
- <TextLabel Text="This View is Sp based view." PointSize="12sp" Position2D="73sp,130sp"/>
+ <TextLabel Text="SP" PointSize="12sp" Position2D="73sp,130sp"/>
<View BackgroundColor="#FF0000" Position2D="32sp,108sp" Size2D="400sp,5sp"/>
<View BackgroundColor="#00FF00" Position2D="32sp,120sp" Size="400sp,5sp"/>
<View BackgroundColor="#0000FF" Position="42sp,100sp" Size2D="5sp,100sp"/>
<View x:Name="SpRect" BackgroundColor="#FFFFFF"/>
- <TextLabel x:Name="SpPixelText" PixelSize="20sp"/>
- <TextLabel x:Name="SpPointText" PointSize="20sp"/>
+ <TextLabel x:Name="SpText" PixelSize="20"/>
</View>
</ScrollableBase>
</ContentPage.Content>
/*
- * Copyright(c) 2022 Samsung Electronics Co., Ltd.
+ * 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.
PixelRect.Size = new Size(300f, 100f);
PixelText.Position2D = new Position2D(100, 310);
PixelText.WidthSpecification = 300;
- PixelText.HeightSpecification = 90;
- PixelText.Text = "Pixel size 20";
- PixelText.PixelSize = 20f;
- PointText.Position2D = new Position2D(100, 410);
- PointText.WidthSpecification = 300;
- PointText.HeightSpecification = 90;
- PointText.Text = "Point size 20";
- PointText.PointSize = 20f;
+ PixelText.HeightSpecification = 100;
+ PixelText.Text = "Pixel size 100";
+ PixelText.PointSize = 20f;
DpRect.Position = new Position(100f, 200f).DpToPx();
DpRect.Size = new Size(300f, 100f).DpToPx();
- DpPixelText.Position2D = new Position2D(100, 310).DpToPx();
- DpPixelText.WidthSpecification = 300.DpToPx();
- DpPixelText.HeightSpecification = 90.DpToPx();
- DpPixelText.Text = $"Dp Pixel Size {20f.DpToPx()}";
- DpPixelText.PixelSize = 20f.DpToPx();
- DpPointText.Position2D = new Position2D(100, 410).DpToPx();
- DpPointText.WidthSpecification = 300.DpToPx();
- DpPointText.HeightSpecification = 90.DpToPx();
- DpPointText.Text = $"Dp Point Size {20f.DpToPt()}";
+ DpText.Position2D = new Position2D(100, 310).DpToPx();
+ DpText.WidthSpecification = 300.DpToPx();
+ DpText.HeightSpecification = 100.DpToPx();
+ DpText.Text = $"Dp size {100f.DpToPx()}";
+ DpText.PointSize = 20f.DpToPt();
SpRect.Position = new Position(100f, 200f).SpToPx();
SpRect.Size = new Size(300f, 100f).SpToPx();
- SpPixelText.Position2D = new Position2D(100, 310).SpToPx();
- SpPixelText.WidthSpecification = 300.SpToPx();
- SpPixelText.HeightSpecification = 90.SpToPx();
- SpPixelText.Text = $"Sp Pixel Size {20f.SpToPx()}";
- SpPointText.Position2D = new Position2D(100, 410).SpToPx();
- SpPointText.WidthSpecification = 300.SpToPx();
- SpPointText.HeightSpecification = 90.SpToPx();
- SpPointText.Text = $"Sp Point Size {20f.SpToPt()}";
- SpPointText.PointSize = 20f.SpToPt();
+ SpText.Position2D = new Position2D(100, 310).SpToPx();
+ SpText.WidthSpecification = 300.SpToPx();
+ SpText.HeightSpecification = 100.SpToPx();
+ SpText.Text = $"Sp size {100f.SpToPx()}";
+ SpText.PointSize = 20f.SpToPt();
}
}
}
<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"
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"
public ImageButtonTestPage()
{
InitializeComponent();
- imageview1.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button1.Icon.ResourceUrl = ImageURL + "NUITizenGallery.png";
+ button1.Icon.Size2D = new Tizen.NUI.Size2D(300, 300);
button1.ControlStateChangedEvent += (o, e) =>
{
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
</View.Layout>
<TextLabel Text="LeftAligned"
- CellHorizontalAlignment="Left"
+ HorizontalAlignment="Begin"
BackgroundColor="#00ffff"/>
</View>
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="Center"/>
</View.Layout>
<TextLabel Text="CenterAligned"
- CellHorizontalAlignment="Center"
+ HorizontalAlignment="Center"
BackgroundColor="#00ffff"/>
</View>
<View WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
</View.Layout>
<TextLabel Text="RightAligned"
- CellHorizontalAlignment="Right"
+ HorizontalAlignment="End"
BackgroundColor="#00ffff"/>
</View>
<TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.LabelTest5Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.LayoutAddRemoveTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
<ContentPage.AppBar>
- <AppBar Title="LayoutAddRemoveTest1"/>
+ <AppBar x:Name="appBar" Title="LayoutAddRemoveTest1"/>
</ContentPage.AppBar>
-
+
<ContentPage.Content>
<ScrollableBase x:Name="rootView"
- WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="{Static LayoutParamPolicies.MatchParent}">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}" >
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
public LayoutAddRemoveTest1Page()
{
InitializeComponent();
+ rootView.SizeHeight = Window.Instance.WindowSize.Height - appBar.SizeHeight;
+
addButton.Clicked += OnAddButtonClicked;
removeButton.Clicked += OnRemoveButtonClicked;
}
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.LayoutAddRemoveTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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">
InitializeComponent();
// FIXME: For now, menuItem1, 2, 3, 4 handles are not found by FindByName.
-
+ /*
menuItem1.Clicked += MenuItem1Clicked;
menuItem2.Clicked += MenuItem2Clicked;
menuItem3.Clicked += MenuItem3Clicked;
menuItem4.Clicked += MenuItem4Clicked;
+ */
}
private void MenuItem1Clicked(object sender, ClickedEventArgs args)
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.NavigatorTest1Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
<!-- 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}">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="0, 10"/>
public NavigatorTest1Page()
{
InitializeComponent();
+ ContentView.SizeHeight = Window.Instance.WindowSize.Height - appBar.SizeHeight;
}
private void SetButtonColor(NavigatorTest1Page page, int type)
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<ContentPage x:Class="NUITizenGallery.NavigatorTest2Page"
xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
<!-- 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}">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" CellPadding="0, 10"/>
public NavigatorTest2Page()
{
InitializeComponent();
+ ContentView.SizeHeight = Window.Instance.WindowSize.Height - appBar.SizeHeight;
}
private void SetButtonColor(NavigatorTest2Page page, int type)
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
<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"/>
+ <TextLabel Text="abc1" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc2" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc3" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc4" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc5" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc6" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc7" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc8" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc9" HorizontalAlignment="Center"/>
+ <TextLabel Text="abc0" HorizontalAlignment="Center"/>
</View>
<Button x:Name="btn1"
Text="clear"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- CellHorizontalAlignment="Center"/>
+ TextAlignment="Center"/>
</View>
</ContentPage.Content>
</ContentPage>
<Button x:Name="btn1" Text="Change"
WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
- HeightSpecification="100" CellHorizontalAlignment="Left"/>
+ HeightSpecification="100" TextAlignment="Begin"/>
<View x:Name="lblView">
<ScrollableBase x:Name="Scroller" ScrollingDirection="Vertical" HideScrollbar="false" >
<!-- 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}">
+ WidthSpecification="{Static LayoutParamPolicies.MatchParent}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="10, 10"/>
</View.Layout>
<Button x:Name="btn"
- Size2D="600, 100"
+ Size2D="600, 90"
Text="WOW!!"
- CellHorizontalAlignment="Center"
- CellVerticalAlignment="Center"/>
+ TextAlignment="Center" />
<View x:Name="rect"
- Size2D="600, 100"
+ Size2D="600, 90"
BackgroundColor="Blue"
CellHorizontalAlignment="Center"
CellVerticalAlignment="Center" />
<ImageView x:Name="img"
+ SizeHeight="300"
CellHorizontalAlignment="Center"
CellVerticalAlignment="Center"/>
<TextLabel x:Name="label"
Text="Rotation"
- CellHorizontalAlignment="Center"
- CellVerticalAlignment="Center"/>
+ HorizontalAlignment="Center"
+ VerticalAlignment="Center"/>
<TextLabel Text="X:"/>
<Slider x:Name="sliderX"
- Size2D="600, 50"
+ Size2D="600, 40"
MinValue="0"
MaxValue="180"
BgTrackColor="#b1b1b1"
TrackThickness="5" />
<TextLabel Text="Y:"/>
<Slider x:Name="sliderY"
- Size2D="600, 50"
+ Size2D="600, 40"
MinValue="0"
MaxValue="180"
BgTrackColor="#b1b1b1"
TrackThickness="5"/>
<TextLabel Text="Z:"/>
<Slider x:Name="sliderZ"
- Size2D="600, 50"
+ Size2D="600, 40"
MinValue="0"
MaxValue="180"
BgTrackColor="#b1b1b1"
public RotationTest1Page()
{
InitializeComponent();
+ ContentView.SizeHeight = Window.Instance.WindowSize.Height - appBar.SizeHeight;
img.SetImage(ResourcePath + "a.jpg");
int count = 0;
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
-<?xml version="1.0" encoding="UTF-8" ?>
+<?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"
Button btn = new Button
{
Size2D = new Size2D(230, NUIApplication.GetDefaultWindow().WindowSize.Height),
- BackgroundColor = new Color(0.0f, 0.0f, 1.0f, 255),
+ BackgroundColor = new Color(0.0f, 0.0f, 1.0f, 1.0f),
Text = "Test ScrollTo"
};
Scroller.Add(btn);
Random rand = new Random();
for (int i = 0; i <= 60; ++i)
{
- float r = (float)rand.NextDouble();
- float g = (float)rand.NextDouble();
- float b = (float)rand.NextDouble();
+ float r = (float)rand.NextDouble() / 255f;
+ float g = (float)rand.NextDouble() / 255f;
+ float b = (float)rand.NextDouble() / 255f;
var t = new View
{
Size2D = new Size2D(230, NUIApplication.GetDefaultWindow().WindowSize.Height),
- BackgroundColor = new Color(r, g, b, 255),
+ BackgroundColor = new Color(r, g, b, 1.0f),
};
Scroller.Add(t);
}
class Program : NUIApplication
{
private Window window;
+ private AppBar appBar;
+ private View pageContent;
private Navigator navigator;
private CollectionView colView;
private ItemSelectionMode selMode;
public void OnSelectionChanged(object sender, SelectionChangedEventArgs ev)
{
Console.WriteLine($"@@@ OnSelectionChanged() {ev.CurrentSelection}");
-
+
foreach (object item in ev.CurrentSelection)
{
if (item == null)
base.OnCreate();
Initialize();
SetMainPage();
+ pageContent.SizeHeight = Window.Instance.WindowSize.Height - appBar.SizeHeight;
}
private void Initialize()
{
private void SetMainPage()
{
- var appBar = new AppBar()
+ appBar = new AppBar()
{
Title = "NUI Tizen Gallery",
AutoNavigationContent = false,
appBar.NavigationContent = moreButton;
- var pageContent = new View()
+ pageContent = new View()
{
Layout = new LinearLayout()
{
}),
Header = myTitle,
ScrollingDirection = ScrollableBase.Direction.Vertical,
+ HideScrollbar = false,
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = LayoutParamPolicies.MatchParent,
SelectionMode = selMode,
}
var app = new Program();
- app.Run(emptyArgs);
+ app.Run(args);
}
}
}