update demo

This commit is contained in:
NaBian committed 2020-06-07 17:56:55 +08:00
1 parent ea9d6b78cc
commit e67c04bf82
5 files changed
+70 -10

No files matched your search

@@ -1,6 +1,8 @@
namespace HandyControlDemo.Data
using GalaSoft.MvvmLight;
namespace HandyControlDemo.Data
{
public class DemoItemModel
public class DemoItemModel : ObservableObject
{
public string Name { get; set; }
@@ -9,5 +11,17 @@
public string ImageName { get; set; }
public bool IsNew { get; set; }
private bool _isVisible = true;
public bool IsVisible
{
get => _isVisible;
#if NET40
set => Set(nameof(IsVisible), ref _isVisible, value);
#else
set => Set(ref _isVisible, value);
#endif
}
}
}