All the samples in the MenuFlyout are statically constructed, please add an example on how to dynamically create these items from some object in a DataTemplate.
Screenshots
No response
Windows version
No response
Additional context
I'm creating a log viewer that can have one or more potential corrections to attached to each log entry, when multiple corrections could apply I want to display a drop-down button with a flyout menu that is connected to Action callbacks to apply corrections/adjustments to the data. Here's an example DataTemplate of what I'm currently trying (does not work in WinUI3):
Issue type
sample request
Which version of the app?
WinUI 3 Gallery
Description
All the samples in the MenuFlyout are statically constructed, please add an example on how to dynamically create these items from some object in a DataTemplate.
Screenshots
No response
Windows version
No response
Additional context
I'm creating a log viewer that can have one or more potential corrections to attached to each log entry, when multiple corrections could apply I want to display a drop-down button with a flyout menu that is connected to Action callbacks to apply corrections/adjustments to the data. Here's an example DataTemplate of what I'm currently trying (does not work in WinUI3):