Files
aistudio-wpf-diagram/Fluent.Ribbon/Fluent.Ribbon.Showcase/ViewModels/GalleryItemViewModel.cs
2021-07-23 09:42:22 +08:00

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();
}
}
}
}