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
180
How to execute MaximizeCommand for PaneToolWindow of XamDockManager in code behind
posted

Hi!

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.

Parents
  • 420
    Offline posted

    Hello,

    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())

        viewModel.MyCommand.Execute();

    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.

    Sincerely,
    Tihomir Tonev
    Associate Software Developer
    Infragistics

Reply Children