public override void doIt(MArgList args) { // Create the window to dock wnd = new wpfexamples.DAGExplorer(); wnd.Show(); // Extract the window handle of the window we want to dock IntPtr mWindowHandle = new System.Windows.Interop.WindowInteropHelper(wnd).Handle; // Dock it in Maya using the docking station mI = new MDockingStation(mWindowHandle, true, MDockingStation.BottomDock | MDockingStation.TopDock, MDockingStation.BottomDock); }
override public void doIt(MArgList args) { // Create the window to dock wnd = new wpfexamples.DAGExplorer(); wnd.Show(); // Extract the window handle of the window we want to dock IntPtr mWindowHandle = new System.Windows.Interop.WindowInteropHelper(wnd).Handle; // Dock it in Maya using the docking station mI = new MDockingStation(mWindowHandle, true, MDockingStation.BottomDock | MDockingStation.TopDock, MDockingStation.BottomDock); }