HandyControl/HandyControlDemo/ViewModel/ComboBoxDemoViewModel.cs
NaBian fffbdbb4a9 add some demos & styles
1. add window demo
2. add scrollviewer demo
3. add radiobutton style
4. fixed some bugs
5. add research project
2018-10-23 19:59:59 +08:00

25 lines
641 B
C#

using System.Collections.Generic;
using GalaSoft.MvvmLight;
using HandyControlDemo.Service;
namespace HandyControlDemo.ViewModel
{
public class ComboBoxDemoViewModel : ViewModelBase
{
/// <summary>
/// 数据列表
/// </summary>
private List<string> _dataList;
/// <summary>
/// 数据列表
/// </summary>
public List<string> DataList
{
get => _dataList;
set => Set(ref _dataList, value);
}
public ComboBoxDemoViewModel(DataService dataService) => DataList = dataService.GetComboBoxDemoDataList();
}
}