This project is read-only.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

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))]
    [HostedAsPropertyPage]
    public class ExternalPropertyPageControlTemplate1: ActiveXUserControlBase, IExternalUserControl
    {
        public const string PROGID = "SwExternalControls.ExternalPropertyPageControlTemplate1";

        public ExternalPropertyPageControlTemplate1()
        {
            InitializeComponent();
        }

        public dynamic ExternalUserControl
        {
            get { return this; }
        }

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

        }

        [InvokableMethod("TestMethod1")]
        public void TestMethod()
        {
            
        }

    }
}


External Task Pane Control
External Model View Tab Control
External Feature View Tab Control

Last edited Jun 18, 2010 at 7:21 PM by fixitchris, version 2

Comments

No comments yet.