protected override void OnSourceInitialized(EventArgs e) { AttachCore = new AttachWindowCore(); AttachCore.Init(this); AttachCore.TargetLostDetached += AttachCore_TargetLostDetached; base.OnSourceInitialized(e); }
protected override void OnSourceInitialized(EventArgs e) { AttachCore = new AttachWindowCore(); AttachCore.Init(this); AttachCore.TargetLostDetached += AttachCore_TargetLostDetached; HotKey.Register(this, HotKey.Modifier.MOD_ALT | HotKey.Modifier.MOD_SHIFT, VirtualKey.KEY_R, out int id, () => { this.WindowState = this.WindowState == WindowState.Minimized ? WindowState.Normal : WindowState.Minimized; }); base.OnSourceInitialized(e); }