microsoft / microsoft/microsoft-ui-xaml

Bug in App.InitializeComponent

Open
#10,411 1 comment 0 reactions 0 assignees View on GitHub
bug needs-repro
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Adding same item twice to a flyoutmenu will go to #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION

### Steps to reproduce the bug

reproduce the bug, when triggered goes to above description of the bug.

![Image](https://github.com/user-attachments/assets/1b46dcff-4d3f-426a-aa05-ead58d2c5f65)

### Expected behavior

expected behavior would be the item appearing twice, although in my case it was cause by a mistake.

### Screenshots

_No response_

### NuGet package version

None

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported duplicate flyout-menu item case and inspect App.InitializeComponent, the entry point named in the issue. No source file or test is identified; done would require establishing the intended behavior for duplicate items and preventing the reported break, with regression coverage if an appropriate test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.