add custom page
authorYurii Zinchuk/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <y.zinchuk@samsung.com>
Fri, 1 Dec 2023 16:26:41 +0000 (17:26 +0100)
committerPiotr Czaja/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Wed, 6 Dec 2023 09:59:29 +0000 (10:59 +0100)
SettingView/CustomPage.cs [new file with mode: 0644]

diff --git a/SettingView/CustomPage.cs b/SettingView/CustomPage.cs
new file mode 100644 (file)
index 0000000..4ba835b
--- /dev/null
@@ -0,0 +1,25 @@
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+using Tizen.NUI.Components;
+
+namespace SettingView
+{
+    public class CustomPage : Page
+    {
+        public TextLabel Title { get; set; }
+
+        public ScrollableBase Content { get; set;  }
+
+        public CustomPage()
+        {
+            WidthSpecification = LayoutParamPolicies.MatchParent;
+            HeightSpecification = LayoutParamPolicies.MatchParent;
+            Layout = new LinearLayout()
+            {
+                LinearOrientation = LinearLayout.Orientation.Vertical,
+            };
+            ThemeChangeSensitive = true;
+            CornerRadius = (SettingViewBorder.WindowCornerRadius - SettingViewBorder.WindowPadding).SpToPx();
+        }
+    }
+}