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
220
Hide close button
posted

Hi,

Please see related post "How do I add a close button to the header of a ContentPane":

http://ko.infragistics.com/community/forums/t/17769.aspx

I would also like to hide/collapse the custom delete button on items which is not allowed to close, meaning where the AllowClose parameter is set to False.

I've tried to modify your code in the related post with a MultiTrigger, but the close button is still visible on items where AllowClose = False.

<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="igDock:XamDockManager.PaneLocation" Value="Document" />
<Condition Property="igDock:ContentPane.AllowClose" Value="True" />
</MultiTrigger.Conditions>
<Setter TargetName="closeBtn" Property="Visibility" Value="Visible" />
</MultiTrigger>

Do you have any suggestions?