@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.
Windows Ribbon Framework DynamicUI element - how to use?

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
2 additional answers
Sort by: Most helpful
-
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!
-
harborsiem 1 Reputation point
2021-05-20T07:49:14.133+00:00 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.