// initialization/finalization...
        #region InitializePlugIn
        public override void InitializePlugIn()
        {
            _UIContext            = SynchronizationContext.Current;
            EnableActionExecuting = true;
            _Shortcuts            = new CommandKeyBindingCollection();

            LoadShortcuts();

            Hardware.Keyboard.Connect();

            xkeysEngine              = new XkeysEngine();
            xkeysEngine.XkeyPressed += xkeysEngine_XkeyPressed;
        }
        public XkeysEditControl()
        {
            InitializeComponent();

            xkeysEngine              = new XkeysEngine();
            xkeysEngine.XkeyPressed += xkeysEngine_XkeyPressed;

            _Shortcut = new CustomInputShortcut();
            XkeysRaw.Data.DataChanged += Data_DataChanged;
            xkeysPainter.SetKeySizeToFit(xkeyPreview.ClientRectangle.Size);
            xkeyLayout = xkeysPainter.GetLayout(XkeysRaw.Data.LastKeyCode, XkeysRaw.Data.BlockedKeysMask);
            xkeyLayout.Load();
        }