microsoft / microsoft/windows-rs

Feature request: Expand the `MenuFlyout` example in `reactor-gallery`

Open
#4,923 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Rust
Stars
12.8k
Forks
665
Avg merge
7h 9m
Merged PRs (30d)
70

Description

### Suggestion

The current `MenuFlyout` page in the Rust `reactor-gallery` sample only demonstrates two basic usage scenarios: a `MenuFlyout` with standard menu items, and a `MenuFlyout` with standard menu items and a separator.

It would be useful to expand this page into a more complete `MenuFlyout` showcase, similar to the `MenuFlyout` page in the WinUI 3 Gallery.

The goal is to demonstrate the different `MenuFlyout` capabilities and usage patterns that are available in WinUI 3, rather than only showing the most basic cases.

Specifically, I would like the `reactor-gallery` `MenuFlyout` page to include examples for:

* A `MenuFlyout` with `ToggleMenuFlyoutItems` and `MenuFlyoutSeparator`.
* A `MenuFlyout` with cascading menus.
* A `MenuFlyout` with `SplitMenuFlyoutItems`.
* A `MenuFlyout` with icons.
* A `MenuFlyout` with icons and Keyboard Accelerators.
* A `MenuFlyout` with `RadioMenuFlyoutItems`.

Ideally, the Rust `reactor-gallery` page would provide a similar set of interactive examples and overall presentation to the corresponding `MenuFlyout` page in the WinUI 3 Gallery.

I will attach a video to this issue showing the `MenuFlyout` page in the WinUI 3 Gallery as a visual reference for the desired result.

This would make the `reactor-gallery` example much more useful as a reference for Rust developers learning how to use `MenuFlyout` and its different item types with `windows-reactor`.

Thank you!

https://github.com/user-attachments/assets/f2b2d851-0c67-4fcd-ac16-0b8621ba2c2f

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing MenuFlyout page in the Rust reactor-gallery sample and compare its two current scenarios with the corresponding MenuFlyout page in the WinUI 3 Gallery. Done means adding interactive examples for toggle items and separators, cascading menus, split items, icons, icons with keyboard accelerators, and radio items.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.