21 lines
1.1 KiB
C#
21 lines
1.1 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace Livia.ViewModels;
|
|
|
|
public class ColorBarControlViewModel : ObservableObject
|
|
{
|
|
public bool Visible { get => _visible; set => SetProperty(ref _visible, value); }
|
|
public string ColorBarUnit { get => _colorBarUnit; set => SetProperty(ref _colorBarUnit, value); }
|
|
public float ColorBarRangeMax { get => _colorBarRangeMax; set => SetProperty(ref _colorBarRangeMax, value); }
|
|
public float ColorBarRangeMin { get => _colorBarRangeMin; set => SetProperty(ref _colorBarRangeMin, value); }
|
|
public string ImagePath { get => _imagePath; set => SetProperty(ref _imagePath, value); }
|
|
|
|
public const string PerfusionColorBarImage = "pack://application:,,,/Livia;Component/Resources/Images/orange-green.png";
|
|
public const string BlackWhiteColorBarImage = "pack://application:,,,/Livia;Component/Resources/Images/black-white.png";
|
|
|
|
private bool _visible = true;
|
|
private string _colorBarUnit = string.Empty;
|
|
private float _colorBarRangeMax;
|
|
private float _colorBarRangeMin;
|
|
private string _imagePath = PerfusionColorBarImage;
|
|
} |