mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-07 10:10:49 +08:00
46 lines
935 B
C#
46 lines
935 B
C#
namespace FluentTest.ViewModels
|
|
{
|
|
public class GalleryItemViewModel : ViewModel
|
|
{
|
|
private string text;
|
|
private string group;
|
|
|
|
public GalleryItemViewModel(string group, string text)
|
|
{
|
|
this.Group = group;
|
|
this.Text = text;
|
|
}
|
|
|
|
public string Text
|
|
{
|
|
get { return this.text; }
|
|
|
|
set
|
|
{
|
|
if (value == this.text)
|
|
{
|
|
return;
|
|
}
|
|
|
|
this.text = value;
|
|
this.OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public string Group
|
|
{
|
|
get { return this.group; }
|
|
|
|
set
|
|
{
|
|
if (value == this.group)
|
|
{
|
|
return;
|
|
}
|
|
|
|
this.group = value;
|
|
this.OnPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
} |