protected override void LoadCore()
        {
            base.LoadCore();
            ApplicationMenuItems.Add(new ExportMenuItem());
            ApplicationMenuItems.Add(new PrintMenuItem());

            printHotKeyBinding = GetPrintHotKeyBinding();
            if (Application.Current != null && Application.Current.MainWindow != null && !hotKeyRegistered)
            {
                Application.Current.MainWindow.InputBindings.Add(printHotKeyBinding);
                hotKeyRegistered = true;
            }
        }
 protected override void UnloadCore()
 {
     base.UnloadCore();
     ApplicationMenuItems.Clear();
     if (Application.Current != null &&
         Application.Current.MainWindow != null &&
         hotKeyRegistered && printHotKeyBinding != null &&
         Application.Current.MainWindow.InputBindings.Contains(printHotKeyBinding))
     {
         Application.Current.MainWindow.InputBindings.Remove(printHotKeyBinding);
         hotKeyRegistered   = false;
         printHotKeyBinding = null;
     }
 }