Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [Verison 2.0] Is there a way to make a tab not closeable?

$
0
0

Ado and mach22,

Thank you for the responses.  I really appreciate it.

Sadly, I am still stuck with this.  I tried to set CanClose and it does not recognize the property.

I have this:

 <avalonDock:LayoutAnchorable Title="Panel 1" CanClose="False">
     <Border Background="Cyan" />
 </avalonDock:LayoutAnchorable>

And Visual Studio errors out with:

The property 'CanClose' does not exist in XML namespace 'http://avalondock.codeplex.com'.
The property 'CanClose' was not found in type 'LayoutAnchorable'. 

I also tried this on a LayoutAchorablePaneGroup, LayoutAnchorablePane, LayoutDocumentPaneGroup, LayoutDocumentPane and a LayoutDocument.  All of them say that CanClose is not found. 

CanClose seems to be a dependency property on LayoutItem.  But I can't seem to access it.

Or am I missing something else?

(I am running v 2.0.0911)

 <avalonDock:LayoutAnchorable Title="Panel 1" CanClose="False">
                                    <Border Background="Cyan" />
                                </avalonDock:LayoutAnchorable>
d

Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>