This project is read-only.

Avalon Dock IsFloating Triggers

Sep 2, 2014 at 9:25 AM
Hello

I am using Avalon Dock in WPF.

What i want to do

When a tab is floating, I would like to change the title of the tab (add text) and if possible add an icon in the tab.
On "Dock as Tab" click, the icon and the text should dispears?

Can you help me to write this piece of code?
this seems not to work
 private void LayoutDocumentPane_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
          var documentPane = DocManager.Layout.Descendents().OfType<LayoutDocumentPane>().FirstOrDefault();
           for (int ix = 0; ix < documentPane.ChildrenCount; ix++)
                {
                    if (documentPane.Children[ix].IsSelected == true)
                    {
                        if (documentPane.Children[ix].IsFloating ==true)
                        {
                            
                            documentPane.Children[ix].Title = "MyAPP - Dashborad";
                        }
                     }
                 }
        }
Thanks