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
345
How to Hide close button and enable Autohide button in XamDocManager
posted

How can I hide the close button and enable the Autohide button in XamDocManager panes.

Below is my code

<idm:XamDockManager x:Name="Dock">
<idm:DocumentContentHost>
<idx:ContentPaneFactory.PaneFactory>
<idx:ContentPaneFactory
RemoveItemOnClose="False"
ItemsSource="{Binding ItemsSource,RelativeSource={RelativeSource TemplatedParent},Converter={x:Static rtc:DummyConverter.Default},ConverterParameter={}ContentPaneFactory ItemsSource}"
HeaderPath="Header"
ContentPath="."
>
</idx:ContentPaneFactory>
</idx:ContentPaneFactory.PaneFactory>
</idm:DocumentContentHost>
</idm:XamDockManager>

Parents
  • 2180
    Offline posted

    Hello Richa,

    You can use the ContentPane AllowClose property to configure the visibility of the Close button. I don’t think Auto Hide option is possible for the panes placed in DocumentContentHost. It is an option for the panes placed in SplitPane for example.

    I’ve attached a sample project for your reference.

    Let me know if I may be of further assistance.

    Svetla Boykova

    DockManagerTest.zip
Reply Children