From: Yurii Zinchuk/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics Date: Fri, 1 Dec 2023 16:26:41 +0000 (+0100) Subject: add custom page X-Git-Tag: accepted/tizen/unified/20231207.171711~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98110aa63108949ea5792c6a2ffef281bf83071b;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsettings.git add custom page --- diff --git a/SettingView/CustomPage.cs b/SettingView/CustomPage.cs new file mode 100644 index 0000000..4ba835b --- /dev/null +++ b/SettingView/CustomPage.cs @@ -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(); + } + } +}