protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); this.windowHandle = new WindowInteropHelper(this).EnsureHandle(); WindowEffectManager.UpdateWindowEffect(this, this.IsActive); }
protected override void OnDeactivated(EventArgs e) { base.OnDeactivated(e); WindowEffectManager.UpdateWindowEffect(this, this.IsActive); }