AdornerLayer Z order problem

Docking/MDI for WPF Forum

Posted 9 years ago by Josh Usovsky
Version: 9.1.0507
Avatar
We're writing an application with an MDI interface using the docking controls, and I've noticed a problem with adorners we're using on our child windows.
We display error messages on our child windows' adorner layers. We've added an AdornerDecorator in the XAML for each child window's UI container (usually a grid), so when we obtain the adorner layer, it should be unique to each child window. However, when two child windows with visible adorners overlap one another, the lower window's adorner is still visible over the upper window. The adorners always stack with the most recently created one on top, regardless of the owning window's relative Z order. Is this a bug in the docking controls, and if so, is there a workaround?
Thank you in advance for suggestions.

Josh Usovsky

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Josh,

Sorry, as you pointed out the WPF adnorners are simply displayed in the order they are added. You could probably remove then re-add the adorner for the primary document, to make it top-most. There's an event in TabbedMdiHost and StandardMdiHost when the primary document changes.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.