Windows Ribbon Framework DynamicUI element - how to use?

Fabion Burke 21 Reputation points
2021-03-06T12:06:26.803+00:00

I was trying to add commands and buttons during runtime, the win32 ribbon framework (UIRibbon.dll) does not seem to support this. However, I found that the documentation mentioned the DynamicUI markup element. It was described as "Represents a container for Ribbon markup. This container and its content is declared at run time." Unfortunately, I cannot find any example or more detailled documentation on this.

https://learn.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-element-dynamicui

How do I use the DynamicUI element?

Thanks

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,068 questions
{count} votes

Accepted answer
  1. Fei Xue - MSFT 1,111 Reputation points Microsoft Employee
    2021-04-26T02:46:34.277+00:00

    @Fabion Burke , The DynamicUI was never really intended for public consumption. Nor does it appear to be used in the inbox apps that use ribbon. It was added as part of some test work 10 years ago. We will remove this document so that developers will not be confused about this. If you have any feedback about Windows Ribbon Framework, you can also submit it via Feedback hub.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Fabion Burke 21 Reputation points
    2021-04-26T02:57:15.977+00:00

    Fair enough. Although it's not the answer I hoped for, I appreciate you checking for me and finding out - thanks!

    0 comments No comments

  2. harborsiem 1 Reputation point
    2021-05-20T07:49:14.133+00:00

    @Fabion Burke

    For adding commands and buttons, togglebuttons during runtime you can use the Ribbon elements DropDownGallery, SplitButtonGallery and InRibbonGallery.

    A .NET (C#, VB) implementation of the Ribbon with many samples and a wiki documentation you can find here.

    0 comments No comments