修复关注碎片报错的问题
This commit is contained in:
parent
1fccc85b77
commit
4840715ef8
|
@ -71,8 +71,6 @@ public partial class App : Application
|
||||||
// Views and ViewModels
|
// Views and ViewModels
|
||||||
services.AddTransient<SettingsViewModel>();
|
services.AddTransient<SettingsViewModel>();
|
||||||
services.AddTransient<SettingsPage>();
|
services.AddTransient<SettingsPage>();
|
||||||
//services.AddTransient<MainViewModel>();
|
|
||||||
//services.AddTransient<MainPage>();
|
|
||||||
|
|
||||||
services.AddTransient<HomePageViewModel>();
|
services.AddTransient<HomePageViewModel>();
|
||||||
services.AddTransient<HomePage>();
|
services.AddTransient<HomePage>();
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace RustTools.Views;
|
||||||
public sealed partial class Concern : Page
|
public sealed partial class Concern : Page
|
||||||
{
|
{
|
||||||
public ConcernViewModel ConcernViewModel { get; set; }
|
public ConcernViewModel ConcernViewModel { get; set; }
|
||||||
public Concern(string v)
|
public Concern()
|
||||||
{
|
{
|
||||||
ConcernViewModel = App.GetService<ConcernViewModel>();
|
ConcernViewModel = App.GetService<ConcernViewModel>();
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user