Esempio n. 1
0
 protected override void OnSourceInitialized(EventArgs e)
 {
     AttachCore = new AttachWindowCore();
     AttachCore.Init(this);
     AttachCore.TargetLostDetached += AttachCore_TargetLostDetached;
     base.OnSourceInitialized(e);
 }
Esempio n. 2
0
        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);
        }