Hi,
ho can i close a content pane in code. I'd like to do the same as if the user clicks on the close command. (Including evaluation of CloseAction, OnClose event etc.)
Thank you!
HI,
Call the ContentPane's ExecuteCommand Method and pass it the Close command.
cpa.ExecuteCommand(ContentPaneCommands.Close);
Here a links to this method and commands:
http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=InfragisticsWPF4.DockManager.v12.1~Infragistics.Windows.DockManager.ContentPaneCommands_members.html
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=InfragisticsWPF4.DockManager.v12.1~Infragistics.Windows.DockManager.ContentPane~ExecuteCommand.html
Sincerely,
MattDeveloper Support Engineer
You can call the ExecuteCommand method of the ContentPane and pass along the value from ContentPaneCommands.Close.