52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
namespace Common.UI.ViewModels
|
|
{
|
|
using System.Windows.Media;
|
|
|
|
public class GridItem : GridItem<GridItem>
|
|
{
|
|
public int Column { get; set; }
|
|
|
|
public int ColumnSpan { get; set; } = 1;
|
|
|
|
public int Row { get; set; }
|
|
|
|
public int RowSpan { get; set; } = 1;
|
|
|
|
private object label;
|
|
public object Label
|
|
{
|
|
get => this.label;
|
|
set => this.Set(() => this.label = value);
|
|
}
|
|
}
|
|
|
|
public class UIGridItem : GridItem
|
|
{
|
|
private Brush foregroundColor;
|
|
public Brush ForegroundColor
|
|
{
|
|
get => this.foregroundColor;
|
|
set => this.Set(() => this.foregroundColor = value);
|
|
}
|
|
|
|
private Brush backgroundColor;
|
|
public Brush BackgroundColor
|
|
{
|
|
get => this.backgroundColor;
|
|
set => this.Set(() => this.backgroundColor = value);
|
|
}
|
|
|
|
private Brush borderColor;
|
|
public Brush BorderColor
|
|
{
|
|
get => this.borderColor;
|
|
set => this.Set(() => this.borderColor = value);
|
|
}
|
|
}
|
|
|
|
public class TaskGridItem : UIGridItem
|
|
{
|
|
|
|
}
|
|
}
|