Test: use new window each time (some people report a slowness... but I can't reproduce)

This commit is contained in:
Paddy Xu
2017-12-20 22:23:07 +02:00
parent 6cd837b423
commit f321e243ba
3 changed files with 4 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ namespace QuickLook.Controls
{ {
public MainWindowBase() public MainWindowBase()
{ {
WindowStyle = WindowStyle.None; //WindowStyle = WindowStyle.None;
SourceInitialized += SourceInitializedHandler; SourceInitialized += SourceInitializedHandler;
} }

View File

@@ -267,6 +267,8 @@ namespace QuickLook
Hide(); Hide();
//Dispatcher.BeginInvoke(new Action(Hide), DispatcherPriority.ApplicationIdle); //Dispatcher.BeginInvoke(new Action(Hide), DispatcherPriority.ApplicationIdle);
ViewWindowManager.GetInstance().ForgetCurrentWindow();
ProcessHelper.PerformAggressiveGC(); ProcessHelper.PerformAggressiveGC();
} }

View File

@@ -12,7 +12,7 @@
d:DesignWidth="624" d:DesignHeight="700" d:DesignWidth="624" d:DesignHeight="700"
MinWidth="400" MinHeight="200" MinWidth="400" MinHeight="200"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
Focusable="False" WindowStyle="None" Focusable="False"
Background="{DynamicResource CaptionBackground}" Background="{DynamicResource CaptionBackground}"
ShowActivated="False" ShowInTaskbar="False"> ShowActivated="False" ShowInTaskbar="False">
<controls:MainWindowBase.Resources> <controls:MainWindowBase.Resources>