mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-07 02:00:21 +08:00
Apply background effects on ContentRendered
This commit is contained in:
@@ -158,12 +158,6 @@ public partial class ViewerWindow : Window
|
||||
base.Close();
|
||||
}
|
||||
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
{
|
||||
base.OnSourceInitialized(e);
|
||||
ApplyWindowBackgroundEffects();
|
||||
}
|
||||
|
||||
public override void OnApplyTemplate()
|
||||
{
|
||||
base.OnApplyTemplate();
|
||||
@@ -173,6 +167,13 @@ public partial class ViewerWindow : Window
|
||||
ApplyWindowBackgroundEffects();
|
||||
}
|
||||
|
||||
protected override void OnContentRendered(EventArgs e)
|
||||
{
|
||||
base.OnContentRendered(e);
|
||||
|
||||
ApplyWindowBackgroundEffects();
|
||||
}
|
||||
|
||||
private void ApplyWindowBackgroundEffects()
|
||||
{
|
||||
var useTransparency = SettingHelper.Get("UseTransparency", true)
|
||||
|
||||
Reference in New Issue
Block a user