PopupButton popup translucency

Ribbon for WPF Forum

Posted 9 years ago by Stephen Tapper
Avatar
Hey there,
I'm looking to make my pop up menu semi transparent when the pop up is open. This is a simple example which shows my problem. When you are viewing the content of the popup, the text boxes below it are not visible.

<StackPanel>
        <ribbon:PopupButton Label="Button">
            <ribbon:Menu Background="Transparent">
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
                <TextBlock>Menu item</TextBlock>
            </ribbon:Menu>
            
        </ribbon:PopupButton>
        <TextBlock>Hi there</TextBlock>
        <TextBlock>Hi there</TextBlock>
        <TextBlock>Hi there</TextBlock>
        <TextBlock>Hi there</TextBlock>
        <TextBlock>Hi there</TextBlock>
        <TextBlock>Hi there</TextBlock>
    </StackPanel>
I've also tried setting the background to transparent for each TextBlock inside the popup button menu, but that didn't change anything. I'm guessing that I need to change the background of the actual Popup control, but I'm not sure how to get to it. Let me know if I need to include anything else.
Thanks for the help!

Comments (1)

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

Sorry but you'd need to retemplate the control to achieve that as the drop-shadow and popup background are defined in its template.

If you are a WPF Studio customer you can download our default styles/templates right from your account.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.