using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VIZ.Package.Module
{
    /// <summary>
    /// ProjectTreePanel.xaml 的交互逻辑
    /// </summary>
    public partial class ProjectTreePanel : UserControl
    {
        public ProjectTreePanel()
        {
            InitializeComponent();
        }

        #region FolderContextMenu -- 文件夹右键菜单

        /// <summary>
        /// 文件夹右键菜单
        /// </summary>
        public ContextMenu FolderContextMenu
        {
            get { return (ContextMenu)GetValue(FolderContextMenuProperty); }
            set { SetValue(FolderContextMenuProperty, value); }
        }

        /// <summary>
        /// Using a DependencyProperty as the backing store for FolderContextMenu.  This enables animation, styling, binding, etc... 
        /// </summary>
        public static readonly DependencyProperty FolderContextMenuProperty =
            DependencyProperty.Register("FolderContextMenu", typeof(ContextMenu), typeof(ProjectTreePanel), new PropertyMetadata(null));

        #endregion

        #region FileContextMenu -- 文件右键菜单

        /// <summary>
        /// 文件右键菜单
        /// </summary>
        public ContextMenu FileContextMenu
        {
            get { return (ContextMenu)GetValue(FileContextMenuProperty); }
            set { SetValue(FileContextMenuProperty, value); }
        }

        /// <summary>
        /// Using a DependencyProperty as the backing store for FileContextMenu.  This enables animation, styling, binding, etc...
        /// </summary>
        public static readonly DependencyProperty FileContextMenuProperty =
            DependencyProperty.Register("FileContextMenu", typeof(ContextMenu), typeof(ProjectTreePanel), new PropertyMetadata(null));

        #endregion
    }
}
