61 lines
1.3 KiB
C#
61 lines
1.3 KiB
C#
|
|
using Stylet;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.Windows.Media;
|
|||
|
|
|
|||
|
|
namespace MainShell.Models
|
|||
|
|
{
|
|||
|
|
public class ToolNavItem : PropertyChangedBase
|
|||
|
|
{
|
|||
|
|
private string _title;
|
|||
|
|
public string Title
|
|||
|
|
{
|
|||
|
|
get => _title;
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
SetAndNotify(ref _title, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
private string _subtitle;
|
|||
|
|
public string Subtitle
|
|||
|
|
{
|
|||
|
|
get => _subtitle;
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
SetAndNotify(ref _subtitle, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
private string _icon = "🛠";
|
|||
|
|
public string Icon
|
|||
|
|
{
|
|||
|
|
get => _icon;
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
SetAndNotify(ref _icon, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
private object _viewModel;
|
|||
|
|
public object ContentViewModel
|
|||
|
|
{
|
|||
|
|
get => _viewModel;
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
SetAndNotify(ref _viewModel, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private Brush _foreground = Brushes.Black;
|
|||
|
|
|
|||
|
|
public Brush Foreground
|
|||
|
|
{
|
|||
|
|
get { return _foreground; }
|
|||
|
|
set { SetAndNotify(ref _foreground, value); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|