How to hide close button when IsCloseable == false

Jul 16, 2010 at 10:19 PM


Is it possible to hide close button when IsCloseable == false?

Best Regards.

Jul 17, 2010 at 1:08 PM

Hi, it's just matter of adding a trigger or two in the theme you're using for Dockable/DocumentContent styles.

Something like this:

<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.IsCloseable}" Value="false">
                            <Setter Property="Visibility" TargetName="btnClose" Value="Collapsed"/>

Anyway consider that soon I'll add it for all themes,


Jul 19, 2010 at 1:24 PM

Hi, I added this trigger to version 1.3.3583 build,


Jul 22, 2010 at 4:05 PM
Does this work for DocumentContainers using the VS2010 or ExpressionsDark theme?