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()
{
WindowStyle = WindowStyle.None;
//WindowStyle = WindowStyle.None;
SourceInitialized += SourceInitializedHandler;
}

View File

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

View File

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