You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update OnSelectedItemName_Paint: When selectedItem.Site is null, only show selectedItem type in Items Collection Editor (#13078)
<!-- Please read CONTRIBUTING.md before submitting a pull request -->
Fixes#13040
## Proposed changes
- Update method `OnSelectedItemName_Paint`: When `selectedItem.Site` is
null, only show selectedItem type in Items Collection Editor
<!-- We are in TELL-MODE the following section must be completed -->
## Customer Impact
- The right type name can be show in the Items Collection Editor
## Regression?
- No
## Risk
- Minimal
<!-- end TELL-MODE -->
## Screenshots <!-- Remove this section if PR does not change UI -->
### Before
The wrong type name show in the Items Collection Editor

### After
The type name `ToolStripDropDownMenu` can be show correctly, and the
item name is empty

## Test methodology <!-- How did you ensure quality? -->
- Manually
## Test environment(s) <!-- Remove any that don't apply -->
- .net 10.0.0-preview.3.25152.4
<!-- Mention language, UI scaling, or anything else that might be
relevant -->
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/13078)
Copy file name to clipboardExpand all lines: src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/ToolStripCollectionEditor.ToolStripItemEditorForm.cs
0 commit comments