Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Adding event handler

$
0
0
Hi guys,
I'm adding a tab with Avalon like this:
        var leftAnchorGroup = DockingManager.Layout.RightSide.Children.SingleOrDefault();

        if (leftAnchorGroup == null)
        {
            leftAnchorGroup = new LayoutAnchorGroup();
            DockingManager.Layout.LeftSide.Children.Add(leftAnchorGroup);
        }

        leftAnchorGroup.Children.Add(new LayoutAnchorable() 
        { 
            Title = "New Anchorable",
            ContentId = "newAchorableDock",
            IsActive = true,
            IsSelected = true,
            CanHide = true
        });
But I wanna be able to closed and re-open this tab whenever I want. The fact is that leftAnchorGroup's events are not triggered.

How can I register leftAnchorGroup's events so I can see every time they are triggered?

Thank you.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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