This project is read-only.

How can I set the active Anchorable in a LayoutAnchorablePane?

Jun 15, 2012 at 5:50 PM

The DockingManager has the excellent "ActiveContent" property, that is used to get and set the current document.

But there is no such thing (that I can see) for an Anchorable.  I can kind of see why.  Several Anchorables can be top most Anchorable at any time (in different LayoutAnchorablePanes).

But I still need a way to get a given Anchorable to move to the front.

I saw the ActivateCommand, and I tried to do a TwoWay binding on it in my selector (and call Execute on it). 

But even though the "SetDefaultBindings" method had been called, when it came to calling the bound variable, it was always null.

What is the preferred way to control the active Anchorable in a LayoutAnchorablePane?

Jun 15, 2012 at 6:09 PM

IsSelected property returns a value indicating if the Anchorable is selected inside its container. Set it to true and you have done, ado

Jun 15, 2012 at 6:17 PM

Thanks Ado.

I also realized from this discussion that the ActiveContent is not specific to the current document.  You can set it for an anchorable or a docuement and it will activate it.


That works perfectly for what I need.