i use this code: <avalondock:LayoutAnchorable x:Name="Tree" Title="Project Explorer" CanClose="False"> but it still shows the close button