add listview for KeyMouseRecordPage

This commit is contained in:
辉鸭蛋
2024-07-01 00:13:18 +08:00
parent 2cd71ff4a1
commit 6c1314cc4d
7 changed files with 423 additions and 13 deletions

View File

@@ -1,8 +1,11 @@
using System.Diagnostics;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Threading.Tasks;
using BetterGenshinImpact.Core.Monitor;
using BetterGenshinImpact.Core.Recorder;
using BetterGenshinImpact.Core.Simulator;
using BetterGenshinImpact.Model;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Wpf.Ui.Controls;
@@ -13,6 +16,19 @@ public partial class KeyMouseRecordPageViewModel : ObservableObject, INavigation
{
private string _macro = string.Empty;
[ObservableProperty]
private ObservableCollection<KeyMouseScriptItem> _scriptItems;
public KeyMouseRecordPageViewModel()
{
_scriptItems =
[
new() { Name = "脚本1", CreateTime = "2021-10-01" },
new() { Name = "脚本2", CreateTime = "2021-10-02" },
new() { Name = "脚本3", CreateTime = "2021-10-03" },
];
}
public void OnNavigatedTo()
{
}