laatzen/Common/OmniPlus/InspectionUI/ViewModels/ItemsGridCellVM.cs
2024-01-29 16:01:10 +01:00

45 lines
1.1 KiB
C#

namespace InspectionUI.ViewModels
{
using System.Windows;
using System.Windows.Media;
public class ItemsGridCellVM : VM
{
public ItemsGridCellVM() : base()
{
}
private string value;
public string Value
{
get => this.value;
set => this.Set(() => this.value = value);
}
private Brush background;
public Brush Background
{
get => this.background;
set => this.Set(() => this.background = value);
}
private Brush foreground;
public Brush Foreground
{
get => this.foreground;
set => this.Set(() => this.foreground = value);
}
private HorizontalAlignment horizontalContentAlignment = HorizontalAlignment.Right;
public HorizontalAlignment HorisontalContentAlignment
{
get => this.horizontalContentAlignment;
set => this.Set(() => this.horizontalContentAlignment = value);
}
public int ColSpan { get; set; } = 1;
public int RowSpan { get; set; } = 1;
}
}