Skip to content

Commit 94b56a8

Browse files
committed
Apply background effects on ContentRendered
1 parent 98ec2ce commit 94b56a8

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

QuickLook/ViewerWindow.xaml.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@ internal ViewerWindow()
158158
base.Close();
159159
}
160160

161-
protected override void OnSourceInitialized(EventArgs e)
162-
{
163-
base.OnSourceInitialized(e);
164-
ApplyWindowBackgroundEffects();
165-
}
166-
167161
public override void OnApplyTemplate()
168162
{
169163
base.OnApplyTemplate();
@@ -173,6 +167,13 @@ public override void OnApplyTemplate()
173167
ApplyWindowBackgroundEffects();
174168
}
175169

170+
protected override void OnContentRendered(EventArgs e)
171+
{
172+
base.OnContentRendered(e);
173+
174+
ApplyWindowBackgroundEffects();
175+
}
176+
176177
private void ApplyWindowBackgroundEffects()
177178
{
178179
var useTransparency = SettingHelper.Get("UseTransparency", true)

0 commit comments

Comments
 (0)