add Drawer demo

This commit is contained in:
NaBian committed 2019-11-25 01:07:04 +08:00
1 parent 453839e763
commit d145dee9c9
29 files changed
+768 -566

No files matched your search

@@ -0,0 +1,34 @@
using System.Collections.Generic;
using GalaSoft.MvvmLight;
namespace HandyControlDemo.Data
{
public class DemoInfoModel : ViewModelBase
{
private string _title;
public string Title
{
get => _title;
#if netle40
set => Set(nameof(Title), ref _title, value);
#else
set => Set(ref _title, value);
#endif
}
private int _selectedIndex = -1;
public int SelectedIndex
{
get => _selectedIndex;
#if netle40
set => Set(nameof(SelectedIndex), ref _selectedIndex, value);
#else
set => Set(ref _selectedIndex, value);
#endif
}
public IList<DemoItemModel> DemoItemList { get; set; }
}
}
@@ -0,0 +1,13 @@
namespace HandyControlDemo.Data
{
public class DemoItemModel
{
public string Name { get; set; }
public string TargetCtlName { get; set; }
public string ImageName { get; set; }
public bool IsNew { get; set; }
}
}