[NUI] Add Test of NUISettings
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 17 Aug 2022 08:43:00 +0000 (17:43 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 22 Aug 2022 09:37:36 +0000 (18:37 +0900)
Test of NUISettings has been added.
NUISettings uses Widget and WidgetView according to
Tizen.NUI.WidgetViewTest.

Each setting page is implemented as Widget.
NUISettings creates WidgetView from the Widget of each setting page.
NUISettings pushes and pops pages whose Content is the WidgetView.

test/NUISettings/NUISettings/NUISettings.cs [new file with mode: 0755]
test/NUISettings/NUISettings/NUISettings.csproj [new file with mode: 0755]
test/NUISettings/NUISettings/NUISettings.sln [new file with mode: 0755]
test/NUISettings/NUISettings/shared/res/NUISettings.png [new file with mode: 0755]
test/NUISettings/NUISettings/tizen-manifest.xml [new file with mode: 0755]
test/NUISettings/NUISettingsReset/NUISettingsReset.cs [new file with mode: 0755]
test/NUISettings/NUISettingsReset/NUISettingsReset.csproj [new file with mode: 0755]
test/NUISettings/NUISettingsReset/NUISettingsReset.sln [new file with mode: 0755]
test/NUISettings/NUISettingsReset/shared/res/NUISettingsReset.png [new file with mode: 0755]
test/NUISettings/NUISettingsReset/tizen-manifest.xml [new file with mode: 0755]

diff --git a/test/NUISettings/NUISettings/NUISettings.cs b/test/NUISettings/NUISettings/NUISettings.cs
new file mode 100755 (executable)
index 0000000..a454a19
--- /dev/null
@@ -0,0 +1,206 @@
+/*
+ * Copyright (c) 2022 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.Applications;
+
+namespace WidgetApplicationTemplate
+{
+    class Program : NUIApplication
+    {
+        string widgetAppId = "NUISettingsReset";
+
+        protected override void OnCreate()
+        {
+            base.OnCreate();
+            Initialize();
+        }
+        void Initialize()
+        {
+            Window window = GetDefaultWindow();
+            window.KeyEvent += OnKeyEvent;
+            window.TouchEvent += OnTouchEvent;
+
+            int widgetWidth = window.Size.Width;
+            int widgetHeight = window.Size.Height;
+
+            Bundle bundle = new Bundle();
+            bundle.AddItem(" ", " ");
+            String encodedBundle = bundle.Encode();
+
+            // Add Widget of "secondPage@NUISettingsReset" in advance to avoid loading pending.
+            AddWidget(out secondPageWidgetView, "secondPage@NUISettingsReset", encodedBundle, widgetWidth, widgetHeight, 0.0f);
+
+            Navigator navigator = window.GetDefaultNavigator();
+
+            var button = new Button()
+            {
+                Text = "Click to Second Page",
+                WidthSpecification = LayoutParamPolicies.MatchParent,
+                HeightSpecification = LayoutParamPolicies.MatchParent,
+            };
+            button.Clicked += (o, e) =>
+            {
+                var page = new ContentPage();
+                page.Content = secondPageWidgetView;
+                navigator.Push(page);
+            };
+
+            // Push the first page.
+            PushContentPage("First Page", button);
+        }
+
+        void AddWidget(out WidgetView widgetView, string widgetID, string contentInfo, int width, int height, float updatePeriod)
+        {
+            widgetView = WidgetViewManager.Instance.AddWidget(widgetID, contentInfo, width, height, updatePeriod);
+            widgetView.WidgetContentUpdated += OnWidgetContentUpdatedCB;
+        }
+
+        void PushContentPage(string title, View content)
+        {
+            Window window = GetDefaultWindow();
+            Navigator navigator = window.GetDefaultNavigator();
+
+            window.KeyEvent += OnKeyEvent;
+            window.TouchEvent += OnTouchEvent;
+
+            var page = new ContentPage()
+            {
+                AppBar = new AppBar()
+                {
+                    Title = title,
+                },
+            };
+
+            page.Content = content;
+            navigator.Push(page);
+        }
+
+        public void OnKeyEvent(object sender, Window.KeyEventArgs e)
+        {
+        }
+
+        private void OnTouchEvent(object source, Window.TouchEventArgs e)
+        {
+        }
+
+        private void OnWidgetContentUpdatedCB(object sender, WidgetView.WidgetViewEventArgs e)
+        {
+            String encodedBundle = e.WidgetView.ContentInfo;
+            Bundle bundle = Bundle.Decode(encodedBundle);
+
+            string widgetID;
+            if (bundle.TryGetItem("WIDGET_ID", out widgetID))
+            {
+            }
+
+            string widgetWidth;
+            if (bundle.TryGetItem("WIDGET_WIDTH", out widgetWidth))
+            {
+            }
+
+            string widgetHeight;
+            if (bundle.TryGetItem("WIDGET_HEIGHT", out widgetHeight))
+            {
+            }
+
+            string widgetPage;
+            if (bundle.TryGetItem("WIDGET_PAGE", out widgetPage))
+            {
+            }
+
+            string widgetAction;
+            if (bundle.TryGetItem("WIDGET_ACTION", out widgetAction))
+            {
+                if (widgetAction.Equals("ADD"))
+                {
+                    if (Int32.TryParse(widgetWidth, out int width) && Int32.TryParse(widgetHeight, out int height))
+                    {
+                        Bundle bundle2 = new Bundle();
+                        bundle2.AddItem(" ", " ");
+                        String encodedBundle2 = bundle2.Encode();
+
+                        if (widgetID.Equals("secondPage@NUISettingsReset"))
+                        {
+                            secondPageWidgetView = WidgetViewManager.Instance.AddWidget(widgetID, encodedBundle2, width, height, 0.0f);
+                            secondPageWidgetView.WidgetContentUpdated += OnWidgetContentUpdatedCB;
+                        }
+                        else if (widgetID.Equals("thirdPage@NUISettingsReset"))
+                        {
+                            thirdPageWidgetView = WidgetViewManager.Instance.AddWidget(widgetID, encodedBundle2, width, height, 0.0f);
+                            thirdPageWidgetView.WidgetContentUpdated += OnWidgetContentUpdatedCB;
+                        }
+                        else if (widgetID.Equals("fourthPage@NUISettingsReset"))
+                        {
+                            fourthPageWidgetView = WidgetViewManager.Instance.AddWidget(widgetID, encodedBundle2, width, height, 0.0f);
+                            fourthPageWidgetView.WidgetContentUpdated += OnWidgetContentUpdatedCB;
+                        }
+                    }
+                }
+                else if (widgetAction.Equals("PUSH"))
+                {
+                    if (widgetPage.Equals("CONTENT_PAGE"))
+                    {
+                        if (widgetID.Equals("secondPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = secondPageWidgetView });
+                        }
+                        else if (widgetID.Equals("thirdPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = thirdPageWidgetView });
+                        }
+                        else if (widgetID.Equals("fourthPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new ContentPage() { Content = fourthPageWidgetView });
+                        }
+                    }
+                    else if (widgetPage.Equals("DIALOG_PAGE"))
+                    {
+                        if (widgetID.Equals("secondPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = secondPageWidgetView });
+                        }
+                        else if (widgetID.Equals("thirdPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = thirdPageWidgetView });
+                        }
+                        else if (widgetID.Equals("fourthPage@NUISettingsReset"))
+                        {
+                            NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(new DialogPage() { Content = fourthPageWidgetView });
+                        }
+                    }
+                }
+                else if (widgetAction.Equals("POP"))
+                {
+                    NUIApplication.GetDefaultWindow().GetDefaultNavigator().Pop();
+                }
+            }
+        }
+
+        static void Main(string[] args)
+        {
+            var app = new Program();
+            app.Run(args);
+        }
+
+        WidgetView secondPageWidgetView;
+        WidgetView thirdPageWidgetView;
+        WidgetView fourthPageWidgetView;
+    }
+}
\ No newline at end of file
diff --git a/test/NUISettings/NUISettings/NUISettings.csproj b/test/NUISettings/NUISettings/NUISettings.csproj
new file mode 100755 (executable)
index 0000000..4d74637
--- /dev/null
@@ -0,0 +1,28 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp2.0</TargetFramework>
+    <AssemblyName>NUISettings</AssemblyName>
+    <SignAssembly>true</SignAssembly>
+    <PackageId>NUISettings</PackageId>
+    <Authors>NUISettings</Authors>
+    <Company>NUISettings</Company>
+    <Product>NUISettings</Product>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugType>portable</DebugType>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>None</DebugType>
+  </PropertyGroup>
+
+  <ItemGroup>
+         <ProjectReference Include="../../../src/Tizen.NUI.Components/Tizen.NUI.Components.csproj" />
+    <ProjectReference Include="../../../src/Tizen.Applications.MessagePort/Tizen.Applications.MessagePort.csproj" />
+         <PackageReference Include="Tizen.NET.Sdk" Version="1.0.9" />
+  </ItemGroup>
+
+</Project>
+
diff --git a/test/NUISettings/NUISettings/NUISettings.sln b/test/NUISettings/NUISettings/NUISettings.sln
new file mode 100755 (executable)
index 0000000..ab145cd
--- /dev/null
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30309.148
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NUISettings", "NUISettings.csproj", "{3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|Any CPU = Debug|Any CPU
+               Release|Any CPU = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Debug|Any CPU.Build.0 = Debug|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Release|Any CPU.ActiveCfg = Release|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Release|Any CPU.Build.0 = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(SolutionProperties) = preSolution
+               HideSolutionNode = FALSE
+       EndGlobalSection
+       GlobalSection(ExtensibilityGlobals) = postSolution
+               SolutionGuid = {355D568D-D02A-490A-A6AC-FD6C7D97457A}
+       EndGlobalSection
+EndGlobal
diff --git a/test/NUISettings/NUISettings/shared/res/NUISettings.png b/test/NUISettings/NUISettings/shared/res/NUISettings.png
new file mode 100755 (executable)
index 0000000..9f3cb98
Binary files /dev/null and b/test/NUISettings/NUISettings/shared/res/NUISettings.png differ
diff --git a/test/NUISettings/NUISettings/tizen-manifest.xml b/test/NUISettings/NUISettings/tizen-manifest.xml
new file mode 100755 (executable)
index 0000000..db14673
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="NUISettings" version="1.0.0" api-version="4" xmlns="http://tizen.org/ns/packages">
+  <profile name="tv" />
+  <ui-application appid="NUISettings" exec="NUISettings.dll" multiple="false" nodisplay="false" taskmanage="true"
+                  splash-screen-display="true"
+                  type="dotnet"
+                  launch_mode="single">
+    <label>NUISettings</label>
+    <icon>NUISettings.png</icon>
+    <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
+    <splash-screens />
+  </ui-application>
+  <privileges>
+    <privilege>http://tizen.org/privilege/widget.viewer</privilege>
+    <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+    <privilege>http://tizen.org/privilege/datasharing</privilege>
+  </privileges>
+</manifest>
diff --git a/test/NUISettings/NUISettingsReset/NUISettingsReset.cs b/test/NUISettings/NUISettingsReset/NUISettingsReset.cs
new file mode 100755 (executable)
index 0000000..1d4ed8d
--- /dev/null
@@ -0,0 +1,296 @@
+/*
+ * Copyright (c) 2022 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; // for Dictionary
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+using Tizen.Applications;
+
+namespace WidgetTemplate
+{
+    class SecondPage : Widget
+    {
+        protected override void OnCreate(string contentInfo, Window window)
+        {
+            Bundle bundle = Bundle.Decode(contentInfo);
+
+            window.BackgroundColor = Color.Transparent;
+
+            // Update Widget Content by sending message to add the third page in advance.
+            Bundle nextBundle = new Bundle();
+            nextBundle.AddItem("WIDGET_ID", "thirdPage@NUISettingsReset");
+            nextBundle.AddItem("WIDGET_ACTION", "ADD");
+            nextBundle.AddItem("WIDGET_WIDTH", window.Size.Width.ToString());
+            nextBundle.AddItem("WIDGET_HEIGHT", window.Size.Height.ToString());
+            String encodedBundle = nextBundle.Encode();
+            SetContentInfo(encodedBundle);
+
+            var appBar = new AppBar()
+            {
+                Title = "Second Page",
+                AutoNavigationContent = false,
+            };
+
+            var appBarStyle = ThemeManager.GetStyle("Tizen.NUI.Components.AppBar");
+
+            var navigationContent = new Button(((AppBarStyle)appBarStyle).BackButton);
+            navigationContent.Clicked += (o, e) =>
+            {
+                // Update Widget Content by sending message to pop the second page.
+                Bundle nextBundle2 = new Bundle();
+                nextBundle2.AddItem("WIDGET_ACTION", "POP");
+                String encodedBundle2 = nextBundle2.Encode();
+                SetContentInfo(encodedBundle2);
+            };
+
+            appBar.NavigationContent = navigationContent;
+
+            var page = new ContentPage()
+            {
+                AppBar = appBar,
+            };
+
+            var button = new Button()
+            {
+                Text = "Click to Third Page",
+                WidthSpecification = LayoutParamPolicies.MatchParent,
+                HeightSpecification = LayoutParamPolicies.MatchParent,
+            };
+            button.Clicked += (o, e) =>
+            {
+                // Update Widget Content by sending message to push the third page.
+                Bundle nextBundle2 = new Bundle();
+                nextBundle2.AddItem("WIDGET_ID", "thirdPage@NUISettingsReset");
+                nextBundle2.AddItem("WIDGET_PAGE", "CONTENT_PAGE");
+                nextBundle2.AddItem("WIDGET_ACTION", "PUSH");
+                String encodedBundle2 = nextBundle2.Encode();
+                SetContentInfo(encodedBundle2);
+            };
+
+            page.Content = button;
+            window.Add(page);
+        }
+
+        protected override void OnPause()
+        {
+            base.OnPause();
+        }
+
+        protected override void OnResume()
+        {
+            base.OnResume();
+        }
+
+        protected override void OnResize(Window window)
+        {
+            base.OnResize(window);
+        }
+
+        protected override void OnTerminate(string contentInfo, TerminationType type)
+        {
+            base.OnTerminate(contentInfo, type);
+        }
+
+        protected override void OnUpdate(string contentInfo, int force)
+        {
+            base.OnUpdate(contentInfo, force);
+        }
+    }
+
+    class ThirdPage : Widget
+    {
+        protected override void OnCreate(string contentInfo, Window window)
+        {
+            Bundle bundle = Bundle.Decode(contentInfo);
+
+            window.BackgroundColor = Color.Transparent;
+
+            // Update Widget Content by sending message to add the fourth page in advance.
+            Bundle nextBundle = new Bundle();
+            nextBundle.AddItem("WIDGET_ID", "fourthPage@NUISettingsReset");
+            nextBundle.AddItem("WIDGET_WIDTH", window.Size.Width.ToString());
+            nextBundle.AddItem("WIDGET_HEIGHT", window.Size.Height.ToString());
+            nextBundle.AddItem("WIDGET_ACTION", "ADD");
+            String encodedBundle = nextBundle.Encode();
+            SetContentInfo(encodedBundle);
+
+            var appBar = new AppBar()
+            {
+                Title = "Third Page",
+                AutoNavigationContent = false,
+            };
+
+            var appBarStyle = ThemeManager.GetStyle("Tizen.NUI.Components.AppBar");
+
+            var navigationContent = new Button(((AppBarStyle)appBarStyle).BackButton);
+            navigationContent.Clicked += (o, e) =>
+            {
+                // Update Widget Content by sending message to pop the third page.
+                Bundle nextBundle2 = new Bundle();
+                nextBundle2.AddItem("WIDGET_ACTION", "POP");
+                String encodedBundle2 = nextBundle2.Encode();
+                SetContentInfo(encodedBundle2);
+            };
+
+            appBar.NavigationContent = navigationContent;
+
+            var page = new ContentPage()
+            {
+                AppBar = appBar,
+            };
+
+            var button = new Button()
+            {
+                Text = "Click to Fourth Page",
+                WidthSpecification = LayoutParamPolicies.MatchParent,
+                HeightSpecification = LayoutParamPolicies.MatchParent,
+            };
+            button.Clicked += (o, e) =>
+            {
+                // Update Widget Content by sending message to push the fourth page.
+                Bundle nextBundle2 = new Bundle();
+                nextBundle2.AddItem("WIDGET_ID", "fourthPage@NUISettingsReset");
+                nextBundle2.AddItem("WIDGET_PAGE", "DIALOG_PAGE");
+                nextBundle2.AddItem("WIDGET_ACTION", "PUSH");
+                String encodedBundle2 = nextBundle2.Encode();
+                SetContentInfo(encodedBundle2);
+            };
+
+            page.Content = button;
+            window.Add(page);
+        }
+
+        protected override void OnPause()
+        {
+            base.OnPause();
+        }
+
+        protected override void OnResume()
+        {
+            base.OnResume();
+        }
+
+        protected override void OnResize(Window window)
+        {
+            base.OnResize(window);
+        }
+
+        protected override void OnTerminate(string contentInfo, TerminationType type)
+        {
+            base.OnTerminate(contentInfo, type);
+        }
+
+        protected override void OnUpdate(string contentInfo, int force)
+        {
+            base.OnUpdate(contentInfo, force);
+        }
+    }
+
+    class FourthPage : Widget
+    {
+        protected override void OnCreate(string contentInfo, Window window)
+        {
+            Bundle bundle = Bundle.Decode(contentInfo);
+
+            window.BackgroundColor = Color.Transparent;
+
+            var button = new Button()
+            {
+                Text = "OK",
+            };
+            button.Clicked += (o, e) =>
+            {
+                // Update Widget Content by sending message to pop the fourth page.
+                Bundle nextBundle2 = new Bundle();
+                nextBundle2.AddItem("WIDGET_ACTION", "POP");
+                String encodedBundle2 = nextBundle2.Encode();
+                SetContentInfo(encodedBundle2);
+            };
+
+            var dialog = new AlertDialog()
+            {
+                Title = "Fourth Page",
+                Message = "Message",
+                Actions = new View[] { button },
+            };
+
+            window.Add(dialog);
+        }
+
+        protected override void OnPause()
+        {
+            base.OnPause();
+        }
+
+        protected override void OnResume()
+        {
+            base.OnResume();
+        }
+
+        protected override void OnResize(Window window)
+        {
+            base.OnResize(window);
+        }
+
+        protected override void OnTerminate(string contentInfo, TerminationType type)
+        {
+            base.OnTerminate(contentInfo, type);
+        }
+
+        protected override void OnUpdate(string contentInfo, int force)
+        {
+            base.OnUpdate(contentInfo, force);
+        }
+    }
+
+    class Program : NUIWidgetApplication
+    {
+        public Program(Dictionary<System.Type, string> widgetSet) : base(widgetSet)
+        {
+
+        }
+
+        protected override void OnCreate()
+        {
+            base.OnCreate();
+            Initialize();
+        }
+
+        void Initialize()
+        {
+        }
+
+        public void OnKeyEvent(object sender, Window.KeyEventArgs e)
+        {
+            if (e.Key.State == Key.StateType.Down && (e.Key.KeyPressedName == "XF86Back" || e.Key.KeyPressedName == "Escape"))
+            {
+                Exit();
+            }
+        }
+
+        static void Main(string[] args)
+        {
+            Dictionary<System.Type, string> widgetSet = new Dictionary<Type, string>();
+            widgetSet.Add(typeof(SecondPage), "secondPage@NUISettingsReset");
+            widgetSet.Add(typeof(ThirdPage), "thirdPage@NUISettingsReset");
+            widgetSet.Add(typeof(FourthPage), "fourthPage@NUISettingsReset");
+            var app = new Program(widgetSet);
+            app.Run(args);
+        }
+    }
+}
\ No newline at end of file
diff --git a/test/NUISettings/NUISettingsReset/NUISettingsReset.csproj b/test/NUISettings/NUISettingsReset/NUISettingsReset.csproj
new file mode 100755 (executable)
index 0000000..ce940cf
--- /dev/null
@@ -0,0 +1,28 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp2.0</TargetFramework>
+    <AssemblyName>NUISettingsReset</AssemblyName>
+    <SignAssembly>true</SignAssembly>
+    <PackageId>NUISettingsReset</PackageId>
+    <Authors>NUISettingsReset</Authors>
+    <Company>NUISettingsReset</Company>
+    <Product>NUISettingsReset</Product>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugType>portable</DebugType>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>None</DebugType>
+  </PropertyGroup>
+
+  <ItemGroup>
+        <ProjectReference Include="../../../src/Tizen.NUI.Components/Tizen.NUI.Components.csproj" />
+   <ProjectReference Include="../../../src/Tizen.Applications.MessagePort/Tizen.Applications.MessagePort.csproj" />
+        <PackageReference Include="Tizen.NET.Sdk" Version="1.0.9" />
+  </ItemGroup>
+
+</Project>
+
diff --git a/test/NUISettings/NUISettingsReset/NUISettingsReset.sln b/test/NUISettings/NUISettingsReset/NUISettingsReset.sln
new file mode 100755 (executable)
index 0000000..59641e9
--- /dev/null
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30309.148
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NUISettingsReset", "NUISettingsReset.csproj", "{3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|Any CPU = Debug|Any CPU
+               Release|Any CPU = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Debug|Any CPU.Build.0 = Debug|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Release|Any CPU.ActiveCfg = Release|Any CPU
+               {3C6CE4CE-9D35-42C9-B23D-BBFFA96B3955}.Release|Any CPU.Build.0 = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(SolutionProperties) = preSolution
+               HideSolutionNode = FALSE
+       EndGlobalSection
+       GlobalSection(ExtensibilityGlobals) = postSolution
+               SolutionGuid = {355D568D-D02A-490A-A6AC-FD6C7D97457A}
+       EndGlobalSection
+EndGlobal
diff --git a/test/NUISettings/NUISettingsReset/shared/res/NUISettingsReset.png b/test/NUISettings/NUISettingsReset/shared/res/NUISettingsReset.png
new file mode 100755 (executable)
index 0000000..9f3cb98
Binary files /dev/null and b/test/NUISettings/NUISettingsReset/shared/res/NUISettingsReset.png differ
diff --git a/test/NUISettings/NUISettingsReset/tizen-manifest.xml b/test/NUISettings/NUISettingsReset/tizen-manifest.xml
new file mode 100755 (executable)
index 0000000..d3e63c7
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" api-version="5" package="NUISettingsReset" version="1.0.0">
+  <profile name="common" />
+  <widget-application appid="NUISettingsReset"
+                                       exec="NUISettingsReset.dll"
+                                       type="dotnet"
+                                       multiple="false"
+                                       taskmanage="true"
+                                       nodisplay="false"
+                                       launch_mode="single">
+    <label>NUISettingsReset</label>
+    <icon>NUISettingsReset.png</icon>
+    <widget-class classid="secondPage" update-period="0">
+      <support-size preview="NUISettingsReset.png">4x4</support-size>
+    </widget-class>
+    <widget-class classid="thirdPage" update-period="0">
+      <support-size preview="NUISettingsReset.png">4x4</support-size>
+    </widget-class>
+    <widget-class classid="fourthPage" update-period="0">
+      <support-size preview="NUISettingsReset.png">4x4</support-size>
+    </widget-class>
+    <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
+  </widget-application>
+</manifest>
+