mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
wpfui 4.0.0 (#1255)
* new INavigationAware, remove PageService * fix run * fix title bar * override OnNavigatedTo * try fix WindowStartupLocation
This commit is contained in:
@@ -22,7 +22,7 @@ using Wpf.Ui.Violeta.Controls;
|
||||
|
||||
namespace BetterGenshinImpact.ViewModel.Pages;
|
||||
|
||||
public partial class KeyMouseRecordPageViewModel : ObservableObject, INavigationAware, IViewModel
|
||||
public partial class KeyMouseRecordPageViewModel : ViewModel
|
||||
{
|
||||
private readonly ILogger<KeyMouseRecordPageViewModel> _logger = App.GetLogger<KeyMouseRecordPageViewModel>();
|
||||
private readonly string scriptPath = Global.Absolute(@"User\KeyMouseScript");
|
||||
@@ -74,15 +74,11 @@ public partial class KeyMouseRecordPageViewModel : ObservableObject, INavigation
|
||||
return files.Select(file => new FileInfo(file)).ToList();
|
||||
}
|
||||
|
||||
public void OnNavigatedTo()
|
||||
public override void OnNavigatedTo()
|
||||
{
|
||||
InitScriptListViewData();
|
||||
}
|
||||
|
||||
public void OnNavigatedFrom()
|
||||
{
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public async Task OnStartRecord()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user