Files
Wino-Mail/Wino.Mail.WinUI/Views/SettingOptionsPage.xaml.cs
T

31 lines
752 B
C#
Raw Normal View History

2026-03-06 04:04:14 +01:00
using CommunityToolkit.WinUI.Controls;
2025-12-31 14:09:57 +01:00
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
2025-11-16 00:23:23 +01:00
using Wino.Core.Domain.Enums;
2025-11-15 14:52:01 +01:00
using Wino.Views.Abstract;
namespace Wino.Views.Settings;
public sealed partial class SettingOptionsPage : SettingOptionsPageAbstract
{
public SettingOptionsPage()
{
InitializeComponent();
}
2025-11-16 00:23:23 +01:00
2025-12-31 14:09:57 +01:00
private void SettingOptionClicked(object sender, RoutedEventArgs e)
2025-11-16 00:23:23 +01:00
{
2025-12-31 14:09:57 +01:00
WinoPage? page = sender switch
{
Button button when button.Tag is WinoPage p => p,
2026-03-06 04:04:14 +01:00
SettingsCard card when card.Tag is WinoPage p => p,
2025-12-31 14:09:57 +01:00
_ => null
};
if (page.HasValue)
{
ViewModel.NavigateSubDetailCommand.Execute(page.Value);
}
2025-11-16 00:23:23 +01:00
}
2025-11-15 14:52:01 +01:00
}