Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

[Maya 2014 SP3] Dockable WPF control?

[Maya 2014 SP3] Dockable WPF control?

Anonymous
Not applicable
714 Views
0 Replies
Message 1 of 1

[Maya 2014 SP3] Dockable WPF control?

Anonymous
Not applicable

We're currently evaluating new .NET api and have noticed few little issues with dockable wpf controls.

 

Controls do show up docked in the Maya window but with few glitches:

 

  • Docked window sizes are not respected. Same control when attached to the bottom dock would have 0 height, left have minimum width (~30), right would actually be sharing space with whichever other native control happens to be there (i.e. attribute editor/channel box/layer editor) and have 0 height.
  • Some amount of space is also 'eaten' away from the control on the bottom (~30) and right side (~15) (when attached to the right) so we're compensating by extending the control's margins to avoid having the control partially obscured. This ends up looking odd if control is detached or docked to the other side.

These same issues are present even in the wpf example provided with the api (//devkit/dotnet/wpfexamples/)

 

Also, same method for docking the wpf control was used:

MDockingStation mI;
wpfexamples.DAGExplorer wnd

override public void doIt(MArgList args)
{
    wnd = new wpfexamples.DAGExplorer();
    wnd.Show()

    IntPtr mWindowHandle = new System.Windows.Interop.WindowInteropHelper(wnd).Handle;
    mI = new MDockingStation(mWindowHandle, true, MDockingStation.BottomDock | MDockingStation.TopDock, MDockingStation.BottomDock);
}

Please let us know if you have a workaround or a fix for these.

Thx.

0 Likes
715 Views
0 Replies
Replies (0)