Custom context menu in ApplicationMenu.AdditionalContent

Ribbon for WPF Forum

Posted 9 months ago by Jane
Version: 22.1.1
Avatar

Hi, in v17 of Actipro, I was able to add a custom context menu within the additional content. That worked in v17 but starting v18, I'm not seeing the custom context menu anymore and I only see the default context menus of "Show Quick Access Toolbar..." and "Minimize the ribbon". Is there another way of doing this now? Here's my code:

<ribbon:ApplicationMenu>
    <ribbon:Button  Label="New" KeyTipAccessText="N" InputGestureText="Ctrl+N"/>
                  
    <ribbon:ApplicationMenu.AdditionalContent>

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <TextBlock Grid.Row="0" Text="Files:" Padding="5" FontWeight="Bold"/>

            <ListBox Grid.Row="1" ItemsSource="{Binding InternalList}">
                <!--Context Menu-->
                <ListBox.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="Remove From List"/>
                        <MenuItem Header="Clear List" />
                    </ContextMenu>
                </ListBox.ContextMenu>
            </ListBox>

        </Grid>

    </ribbon:ApplicationMenu.AdditionalContent>

</ribbon:ApplicationMenu>

Comments (1)

Answer - Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Thanks for reporting this.  We've fixed it for the next maintenance release v22.1.2.


Actipro Software Support

The latest build of this product (v22.1.4) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.