Two question about create tab by MIP SDK.

Question No1:I create new tab by MIP SDK.When dragging the tab,tab become to floating window.I want to prohibit to be floating window.

Could you please tell me how to do it?

Question No2:I create the side panel with tree view by MIP SDK.When tree item unhold,two scroll bar appear.I hope one scroll bar.

Could you please tell me how to use only one scroll bar?

I attach image document.

Please refer it.

No you are not able to configure the Smart Client so that it does not allow a workspace / tab to be dragged out and opened as a floating window.

I think you can use the answer from this other thread..

https://developer.milestonesys.com/s/question/0D50O000049GSD1SAO/is-it-possible-to-make-a-sidepanelusercontrol-autosize

As you can see it might depend on the implementation and seems the newer WPF methods might have an advantage here.

I was thinking about a workaround (1). Perhaps you can in the workspace plugin in the ViewItemWpfUserControl (or ViewItemUserControl), in the Init() detect when it opens outside the main window. This code will achieve that -

public override void Init()
{
    if(this.WindowInformation.WindowId != VideoOS.Platform.Kind.Window)
    {
 
..

Maybe you can then close it down or issue an error or warning that the control should not be used outside the main window.

Hello Bo-san,

Thank you for your reply.

I understand your answer.