From b57e6e8961497d4e91a9499c9096b968ff286874 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 23 May 2020 00:24:28 +0800 Subject: [PATCH] optimized demo start-up speed --- .../Tools/Helper/AssemblyHelper.cs | 1 - .../UserControl/Main/LeftMainContent.xaml | 2 +- .../UserControl/Main/MainContent.xaml | 15 +---- .../UserControl/Main/MainContent.xaml.cs | 64 +++++++++++++++++-- .../ViewModel/Main/MainViewModel.cs | 50 +++++++++------ 5 files changed, 94 insertions(+), 38 deletions(-) diff --git a/src/Shared/HandyControlDemo_Shared/Tools/Helper/AssemblyHelper.cs b/src/Shared/HandyControlDemo_Shared/Tools/Helper/AssemblyHelper.cs index da7782269..34d9a3848 100644 --- a/src/Shared/HandyControlDemo_Shared/Tools/Helper/AssemblyHelper.cs +++ b/src/Shared/HandyControlDemo_Shared/Tools/Helper/AssemblyHelper.cs @@ -25,7 +25,6 @@ public static object CreateInternalInstance(string className) { try { - var type = Type.GetType($"{NameSpaceStr}.{className}"); return type == null ? null : Activator.CreateInstance(type); } diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml index c684b4d8d..ec22dcf17 100644 --- a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml +++ b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml @@ -27,7 +27,7 @@