using System;

using SwAddinHelpers.Base;
using SwAddinHelpers.Contracts;
using SwAddinHelpers.Attributes;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.ComponentModel.Design;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;

namespace ExternalControls
{
    [ComVisible(true)]
    [ProgId(PROGID)]
    [Export(typeof(IExternalUserControl))]
    [HostedAsTaskpane]
    public class ExternalTaskPaneControlTemplate1: TaskPaneControlBase, IExternalUserControl
    {
        public const string PROGID = "SwExternalControls.ExternalTaskPaneControlTemplate1";

        public ExternalTaskPaneControlTemplate1()
        {
            InitializeComponent();
            
        }

        public dynamic ExternalUserControl
        {
            get { return this; }
        }

        [SinkMethod(SwAddinHelpers.Sinks.enumEventSink.SW_ActiveModelDocChangeNotify,true)]
        public void SomeMethodToFire(object sender, EventArgs e)
        {

        }
    }
}


External Model View Tab Control
External Feature View Tab Control
External Property Page Control

Last edited Jun 18, 2010 at 6:22 PM by fixitchris, version 3

Comments

No comments yet.