We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ec2ce commit 94b56a8Copy full SHA for 94b56a8
1 file changed
QuickLook/ViewerWindow.xaml.cs
@@ -158,12 +158,6 @@ internal ViewerWindow()
158
base.Close();
159
}
160
161
- protected override void OnSourceInitialized(EventArgs e)
162
- {
163
- base.OnSourceInitialized(e);
164
- ApplyWindowBackgroundEffects();
165
- }
166
-
167
public override void OnApplyTemplate()
168
{
169
base.OnApplyTemplate();
@@ -173,6 +167,13 @@ public override void OnApplyTemplate()
173
ApplyWindowBackgroundEffects();
174
175
170
+ protected override void OnContentRendered(EventArgs e)
171
+ {
172
+ base.OnContentRendered(e);
+
+ ApplyWindowBackgroundEffects();
+ }
176
177
private void ApplyWindowBackgroundEffects()
178
179
var useTransparency = SettingHelper.Get("UseTransparency", true)
0 commit comments