// RibbonNavigationActivationUICommandBase.cs
// Copyright (c) 2016 Bentley Systems, Incorporated. All Rights Reserved.

using Haestad.Support.Library;
using Haestad.Support.Support;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.RibbonView;

namespace Haestad.Framework.UI.Integration
{
    /// <summary>
    /// Base class for a headless UI command that allows ALT key presses to be registered as hot keys to focus the Ribbon.
    /// </summary>
    internal abstract class RibbonNavigationActivationUICommandBase : RibbonHeadlessUICommandBase
    {
        #region Constructor
        internal RibbonNavigationActivationUICommandBase(RadRibbonView ribbon) 
            : base (ribbon)
        {
        }
        #endregion

        #region Public Override Methods
        public override void Execute(object parameter)
        {
            Ribbon.Focus();
        }
        #endregion
    }
}
