using System;
using System.Windows.Forms;
using System.Windows.Forms.Integration;

namespace OutlookAIAssistant.UI
{
    public partial class TaskPaneHost : UserControl
    {
        private ElementHost elementHost;
        private TaskPaneControl wpfTaskPane;

        public TaskPaneHost()
        {
            InitializeComponent();
            
            // Host the WPF control in this WinForms UserControl
            elementHost = new ElementHost();
            elementHost.Dock = DockStyle.Fill;
            
            wpfTaskPane = new TaskPaneControl();
            elementHost.Child = wpfTaskPane;
            
            this.Controls.Add(elementHost);
        }

        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // TaskPaneHost
            // 
            this.Name = "TaskPaneHost";
            this.Size = new System.Drawing.Size(350, 600);
            this.ResumeLayout(false);
        }
    }
}
