mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
13 lines
450 B
C#
13 lines
450 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Material.Icons;
|
|
|
|
namespace Needlework.Net.Desktop.ViewModels
|
|
{
|
|
|
|
public abstract partial class PageBase(string displayName, MaterialIconKind icon, int index = 0) : ObservableValidator
|
|
{
|
|
[ObservableProperty] private string _displayName = displayName;
|
|
[ObservableProperty] private MaterialIconKind _icon = icon;
|
|
[ObservableProperty] private int _index = index;
|
|
}
|
|
} |