将开关后台服务改为实时响应
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using PMSWPF.ViewModels;
|
||||
using System.Windows.Controls;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace PMSWPF.Views;
|
||||
|
||||
@@ -8,6 +9,6 @@ public partial class SettingView : UserControl
|
||||
public SettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = new SettingViewModel();
|
||||
DataContext = App.Current.Services.GetRequiredService<SettingViewModel>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user