Files
Wino-Mail/Wino.Core.ViewModels/Data/BreadcrumbNavigationItemViewModel.cs
T

29 lines
779 B
C#
Raw Normal View History

2024-04-18 01:44:37 +02:00
using CommunityToolkit.Mvvm.ComponentModel;
using Wino.Messaging.Client.Navigation;
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
namespace Wino.Mail.ViewModels.Data;
public partial class BreadcrumbNavigationItemViewModel : ObservableObject
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
[ObservableProperty]
private string title;
2025-02-16 11:54:23 +01:00
[ObservableProperty]
private bool isActive;
public int StepNumber { get; set; }
2026-03-08 13:21:42 +01:00
public int BackStackDepth { get; set; }
2025-02-16 11:54:23 +01:00
public BreadcrumbNavigationRequested Request { get; set; }
2024-04-18 01:44:37 +02:00
2026-03-08 13:21:42 +01:00
public BreadcrumbNavigationItemViewModel(BreadcrumbNavigationRequested request, bool isActive, int stepNumber = 0, int backStackDepth = 0)
2025-02-16 11:54:23 +01:00
{
Request = request;
Title = request.PageTitle;
IsActive = isActive;
StepNumber = stepNumber;
2026-03-08 13:21:42 +01:00
BackStackDepth = backStackDepth;
2024-04-18 01:44:37 +02:00
}
}