첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

TestProject.zip
0.16MB

▶ TodoListPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="TestProject.TodoListPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:TestProject"
    IconImageSource="sample2.png"
    Title="할일"
    BackgroundColor="White">
    <Button x:Name="navigateButton"
        HorizontalOptions="Center"
        VerticalOptions="Center"
        Text="리마인더 이동" />
</ContentPage>

 

728x90

 

▶ TodoListPage.xaml.cs

namespace TestProject;

/// <summary>
/// 할일 페이지
/// </summary>
public partial class TodoListPage : ContentPage
{
    //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
    ////////////////////////////////////////////////////////////////////////////////////////// Public

    #region 생성자 - TodoListPage()

    /// <summary>
    /// 생성자
    /// </summary>
    public TodoListPage()
    {
        InitializeComponent();

        this.navigateButton.Clicked += navigateButton_Clicked;
    }

    #endregion

    //////////////////////////////////////////////////////////////////////////////////////////////////// Method
    ////////////////////////////////////////////////////////////////////////////////////////// Private

    #region 리마인더 이동 버튼 클릭시 처리하기 - navigateButton_Clicked(sender, e)

    /// <summary>
    /// 리마인더 이동 버튼 클릭시 처리하기
    /// </summary>
    /// <param name="sender">이벤트 발생자</param>
    /// <param name="e">이벤트 인자</param>
    private async void navigateButton_Clicked(object sender, EventArgs e)
    {
        await Navigation.PushAsync(new ReminderPage());
    }

    #endregion
}

 

300x250

 

▶ MainPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage x:Class="TestProject.MainPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:TestProject">
    <local:ContactPage />
    <NavigationPage
        Title="할일"
        IconImageSource="sample2.png">
        <x:Arguments>
            <local:TodoListPage />
        </x:Arguments>
    </NavigationPage>
</TabbedPage>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요