Overlay for ribbon window

Ribbon for WPF Forum

Posted 11 years ago by Marc Ambrosius
Version: 13.1.0581
Avatar

Hi,

we are trying to create an overlay that takes the whole ribbon window and makes it impossible to use any of the controls in the underlying ribbon window. I added some code below to illustrate what we have done. If we do it like this, the overlay will just take the client area. In the title bar there are still controls that should not be used as long as the overlay is active, e.g. in the quick access toolbar.

Is there an easy way to have the overlay capture the whole ribbon window?

Thanks for any ideas

Marc

 

<ribbon:RibbonWindow xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon">

<Grid>

<Border x:Name="Overlay" BorderThickness="0" Background="#20000000" Visibility="Visible" />

</Grid>

</ribbon:RibbonWindow>

Comments (5)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Marc,

You could set Ribbon.QuickAccessToolBarLocation = None while that overlay is displayed.  That will hide it.


Actipro Software Support

Posted 11 years ago by Marc Ambrosius
Avatar

Thanks for your answer. This works, but we would prefer a solution with the overlay effect capturing the whole window und not just the client area. Is it possible to extend to overlay to make the title bar look grey as well?

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Marc,

You could make an Adorner and put your element in that.  We have an AdorneryDecorator right at the root of RibbonWindow's template, so it will cover the non-client area too.


Actipro Software Support

Posted 11 years ago by Marc Ambrosius
Avatar

Thanks again, this led to a solution. After finding the "outerGrid" I am able to capture the whole window.

Posted 11 years ago by Marc Ambrosius
Avatar

Just for everyone else to understand. The application menu of the Actipro ribbon is rendered on the adorner layer. So we finally had to move our overlay to the adorner layer as well.

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.