Hello,
How i can remove the active file et close button of the XamDockManager? See the attached file for more details.
Help would be appreciated!
Thks!
Pierre.
Hello Pierre,
Using the Infragistics Utilities class, you can obtain the active file and close button from the dock manager that you are using.
The code looks like this:Button b = Utilities.GetDescendantFromName((DependencyObject)XamDockManager1, "closeBtn") as Button; for the close button.
MenuItem mi = Utilities.GetDescendantFromName((DependencyObject)XamDockManager1, "PART_FilesMenuItem") as MenuItem; for the active file menu item.
Then, just set the visibility of these two objects to Visibility.Collapsed.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support
Hello Andrew,
my version of IG is 12.2 and this two lines code return a null object:
Utilities.GetDescendantFromName((DependencyObject)XamDockManager1, "closeBtn")
Utilities.GetDescendantFromName((DependencyObject)XamDockManager1, "PART_FilesMenuItem")
I will test with the version 14.1 of IG and i will get back to you as soon as I can.
Regards,
Hi,
it's work with version 12.2 and 14.1 of IG.
Thks for your help.