콘텐츠 페이지 추가
namespace xamarinStudy.Views
{
public class Ch_2_ContentPage2 : ContentPage
{
public Ch_2_ContentPage2()
{
Content = new StackLayout
{
Children = {
new Label { Text = "Hello ContentPage",
FontSize = 30,
TextColor = Color.Red}
}
};
}
}
}
툴바 아이템, 네비게이션 페이지
namespace xamarinStudy.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Ch_4_TabbedPage1 : TabbedPage
{
public Ch_4_TabbedPage1()
{
InitializeComponent();
}
}
}
탭페이지
namespace xamarinStudy.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Ch_4_TabbedPage1 : TabbedPage
{
public Ch_4_TabbedPage1()
{
InitializeComponent();
}
}
}
Carousel Page
namespace xamarinStudy.Views
{
public class Ch_5_CarouselPage1 : CarouselPage
{
public Ch_5_CarouselPage1()
{
Children.Add(new Ch_2_ContentPage());
Children.Add(new Ch_2_ContentPage2());
}
}
}