feat: init avalonia demo.
This commit is contained in:
1 parent
adb6355884
commit
63bf5c6aa7
95 files changed
+20896
-2634
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace HandyControlDemo.Data;
|
||||
|
||||
public class DemoDataModel
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
public string Remark { get; set; } = string.Empty;
|
||||
|
||||
public DemoType Type { get; set; }
|
||||
|
||||
public string ImgPath { get; set; } = string.Empty;
|
||||
|
||||
public List<DemoDataModel> DataList { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace HandyControlDemo.Data;
|
||||
|
||||
public class DemoInfoModel : ObservableObject
|
||||
{
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
private string _title = string.Empty;
|
||||
|
||||
public string Title
|
||||
{
|
||||
get => _title;
|
||||
set => SetProperty(ref _title, value);
|
||||
}
|
||||
|
||||
private int _selectedIndex;
|
||||
|
||||
public int SelectedIndex
|
||||
{
|
||||
get => _selectedIndex;
|
||||
set => SetProperty(ref _selectedIndex, value);
|
||||
}
|
||||
|
||||
public bool IsGroupEnabled { get; set; }
|
||||
|
||||
public IList<DemoItemModel> DemoItemList { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace HandyControlDemo.Data;
|
||||
|
||||
public class DemoItemModel : ObservableObject
|
||||
{
|
||||
private bool _isVisible = true;
|
||||
private string _queriesText = string.Empty;
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string GroupName { get; set; } = string.Empty;
|
||||
|
||||
public string TargetCtlName { get; set; } = string.Empty;
|
||||
|
||||
public object? ImageBrush { get; set; }
|
||||
|
||||
public bool IsNew { get; set; }
|
||||
|
||||
public string QueriesText
|
||||
{
|
||||
get => _queriesText;
|
||||
set => SetProperty(ref _queriesText, value);
|
||||
}
|
||||
|
||||
public bool IsVisible
|
||||
{
|
||||
get => _isVisible;
|
||||
set => SetProperty(ref _isVisible, value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user