26 lines
771 B
C#
26 lines
771 B
C#
using System.Windows.Forms.Integration;
|
|
using Autodesk.Navisworks.Api.Plugins;
|
|
|
|
namespace NavisworksTransport
|
|
{
|
|
[Plugin("NavisworksTransport.SimpleWPFTest", "ADSK",
|
|
DisplayName = "SimpleWPFTestPlugin",
|
|
ToolTip = "Basic WPF Docking Pane Plugin")]
|
|
[DockPanePlugin(150, 200, FixedSize=false)]
|
|
class SimpleWPFTestPlugin : DockPanePlugin
|
|
{
|
|
public override System.Windows.Forms.Control CreateControlPane()
|
|
{
|
|
ElementHost eh = new ElementHost();
|
|
eh.AutoSize = true;
|
|
eh.Child = new SimpleWPFHelloWorldControl();
|
|
eh.CreateControl();
|
|
return eh;
|
|
}
|
|
|
|
public override void DestroyControlPane(System.Windows.Forms.Control pane)
|
|
{
|
|
pane.Dispose();
|
|
}
|
|
}
|
|
} |