Hi Fabian,
This is the expected behavior of all commands that are managed by the NDiagramCommandBarsManager. This is because without a focused view (NDrawingView or NLibraryView) some of the commands become ambiguous. For example Ctrl-C and Ctrl-V need to know from which view you want to copy/paste.
You can override the GetFocusedView of the NDiagramCommander to provide a default focused view, if neither the library nor drawing view managed by the manager are focused. For example:
public class MyDiagramCommander : NDiagramCommander
{
...
public override NView GetFocusedView()
{
NView view = base.GetFocusedView();
return view == null? View: null;
}
...
}
...
nDiagramCommandBarsManager1.Commander = new MyDiagramCommander;
Hope this helps - questions or comments - please feel free...
Best Regards,
Nevron Support Team