Files
aistudio-wpf-diagram/AIStudio.Wpf.Logical/ViewModels/ValueDesignerItemData.cs
艾竹 4b798f75a0 1.01
2022-12-12 22:33:17 +08:00

45 lines
1.1 KiB
C#

using AIStudio.Wpf.DiagramDesigner;
namespace AIStudio.Wpf.Logical.ViewModels
{
/// <summary>
/// This is passed to the PopupWindow.xaml window, where a DataTemplate is used to provide the
/// ContentControl with the look for this data. This class is also used to allow
/// the popup to be cancelled without applying any changes to the calling ViewModel
/// whos data will be updated if the PopupWindow.xaml window is closed successfully
/// </summary>
public class ValueDesignerItemData : BindableBase
{
private string _title;
public string Title
{
get
{
return _title;
}
set
{
SetProperty(ref _title, value);
}
}
public ValueDesignerItemData(double value)
{
this.Value = value;
}
private double _value;
public double Value
{
get
{
return _value;
}
set
{
SetProperty(ref _value, value);
}
}
}
}