From 7a468403f275a6f3d130db22308ab220707e0163 Mon Sep 17 00:00:00 2001 From: syneffort Date: Thu, 26 Jan 2023 15:36:41 +0900 Subject: [PATCH] padding, margin of stack layout --- .../XamarinStudy/XamarinStudy/App.xaml.cs | 12 ++++--- .../Views/SampleStackLayoutPage.xaml | 33 +++++++++++++++++++ .../Views/SampleStackLayoutPage.xaml.cs | 20 +++++++++++ .../XamarinStudy/XamarinStudy.csproj | 3 ++ 4 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleStackLayoutPage.xaml create mode 100644 XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleStackLayoutPage.xaml.cs diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/App.xaml.cs b/XamarinStudy/XamarinStudy/XamarinStudy/App.xaml.cs index 1418d82..d7c4ed4 100644 --- a/XamarinStudy/XamarinStudy/XamarinStudy/App.xaml.cs +++ b/XamarinStudy/XamarinStudy/XamarinStudy/App.xaml.cs @@ -35,11 +35,13 @@ namespace XamarinStudy //MainPage = new NavigationPage(new SampleNavigationPage()); - TabbedPage tabbed = new TabbedPage(); - tabbed.Children.Add(new SampleElementPage3() { Title = "XAML_NEW" }); - tabbed.Children.Add(new SampleElementPage1() { Title = "XAML" }); - tabbed.Children.Add(new SampleElementPage2() { Title = "CS" }); - MainPage = tabbed; + //TabbedPage tabbed = new TabbedPage(); + //tabbed.Children.Add(new SampleElementPage3() { Title = "XAML_NEW" }); + //tabbed.Children.Add(new SampleElementPage1() { Title = "XAML" }); + //tabbed.Children.Add(new SampleElementPage2() { Title = "CS" }); + //MainPage = tabbed; + + MainPage = new SampleStackLayoutPage(); } protected override void OnStart() diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleStackLayoutPage.xaml b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleStackLayoutPage.xaml new file mode 100644 index 0000000..337a681 --- /dev/null +++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleStackLayoutPage.xaml @@ -0,0 +1,33 @@ + + + + +