using System.Windows.Controls;

namespace PDF_Master.Views.Tools
{
    /// <summary>
    /// Interaction logic for ToolsBarContent
    /// </summary>
    public partial class ToolsBarContent : UserControl
    {
        public ToolsBarContent()
        {
            InitializeComponent();
        }

        private void SecurityButtonMore_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            SecurityMenuMore.PlacementTarget = this.SecurityButtonMore;
            SecurityMenuMore.IsOpen = true;
        }

        private void SecurityButtonMore_Initialized(object sender, System.EventArgs e)
        {
            this.SecurityButtonMore.ContextMenu = null;
        }

        private void CropPageMore_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            CropPageMenu.PlacementTarget = this.SecurityButtonMore;
            CropPageMenu.IsOpen = true;
        }

        private void CropPageMore_Initialized(object sender, System.EventArgs e)
        {
            this.CropPageMenuMore.ContextMenu = null;
        }
    }
}