Clean up initial view code
This commit is contained in:
@@ -29,10 +29,9 @@ public partial class App : Application, ITopLevelGrabber
|
|||||||
}
|
}
|
||||||
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
|
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
|
||||||
{
|
{
|
||||||
// singleViewPlatform.MainView = new MainView();
|
singleViewPlatform.MainView = new MainView();
|
||||||
// _topLevel = singleViewPlatform.MainView as TopLevel;
|
_topLevel = TopLevel.GetTopLevel(singleViewPlatform.MainView);
|
||||||
//_topLevel = TopLevel.GetTopLevel(singleViewPlatform.MainView);
|
singleViewPlatform.MainView.DataContext = new MainViewModel(this);
|
||||||
//singleViewPlatform.MainView.DataContext = new MainViewModel(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnFrameworkInitializationCompleted();
|
base.OnFrameworkInitializationCompleted();
|
||||||
|
|||||||
Reference in New Issue
Block a user