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
715
Remove active file and close button
posted

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.

Parents
No Data
Reply
  • 34850
    Verified Answer
    Offline posted

    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,
    Andrew
    Developer Support I
    Infragistics Inc.
    www.infragistics.com/support

Children