Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
How to execute MaximizeCommand for PaneToolWindow of XamDockManager in code behind


Is it possible to exectute MaximizeCommand for PaneToolWindow of XamDockManager in code behind?

Yes it is easy to do it in xaml. Something like this:

Command="{x:Static igWindows:ToolWindow.MaximizeCommand}" 

But I do need to run it in c#

Thank you.

  • 420
    Offline posted


    Every command deriving from ICommand interface has an execute method, so it will look something like this:

    var viewModel = (MyViewModel)DataContext;

    if (viewModel.MyCommand.CanExecute())


    As far as I am aware MaximizeCommand exists only for our Ribbon component, and there is no pre-build one, however you can check the dockmanager API, as the control itself has an exposed method ExecuteCommand.

    Should you have any further questions, please let me know.

    Tihomir Tonev
    Associate Software Developer

Reply Children