Context menu highlighting broken

Ribbon for WPF Forum

Posted 6 years ago by Phil Devaney
Version: 13.2.0590
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

We are using the ribbon ContextMenu class for regular (non-ribbon) context menus, and have found a problem with the highlighting. When the menu is close to the right edge of screen, causing sub-menus to double back on themselves, the highlighting doesn't work if there is another menu under the active sub-menu. If you move the mouse to a part of the sub-menu that isn't over a parent menu, the highlighting starts working.

See here for a screenshot http://imgur.com/OY1Andc Though you can't see it, my mouse is over Sub Menu Item 1 in the screenshot.

To repro, paste this code into a sample app, then move the window close to right such that the first sub-menu appears to the right of the top menu, but the second sub-menu appears to the left (over the top menu)

<Grid Background="LightGray">
    <Grid.ContextMenu>
      <ribbon:ContextMenu>
        <ribbon:Menu>
          <ribbon:Menu.Items>
            <ribbon:Button Label="Menu Item 1" />
            <ribbon:Button Label="Menu Item 2" />
            <ribbon:PopupButton Label="Sub Menu A">
              <ribbon:Menu>
                <ribbon:PopupButton Label="Sub Menu B">
                  <ribbon:Menu>
                    <ribbon:Button Label="Sub Menu Item 1" />
                    <ribbon:Button Label="Sub Menu Item 2" />
                  </ribbon:Menu>
                </ribbon:PopupButton>
              </ribbon:Menu>
            </ribbon:PopupButton>
            <ribbon:Button Label="Menu Item 3" />
            <ribbon:Button Label="Menu Item 4" />
          </ribbon:Menu.Items>
        </ribbon:Menu>
      </ribbon:ContextMenu>
    </Grid.ContextMenu>
  </Grid>

Comments (1)

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

Hi Phil,

This was a tricky one to track down but we finally got it fixed for the upcoming maintenance release.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.