dotnet / dotnet/winforms

TextAlign property doesn't work for ToolStripMenuItem

Open
#4,985 3 comments 0 reactions 0 assignees View on GitHub
:beetle: bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version:

.NET SDK 6.0.100-preview.6.21276.13

* Have you experienced this same bug with .NET Framework?:

Yes

**More Info:**

1. This is not the regression issue, it occurs in .NET Framework project too.
2. This issue occurs in the design time too.
3. This issue occurs in MenuStrip/ContextMenuStrip/StatusStrip/ToolStrip controls.

**Problem description:**

TextAlign property doesn't work for **File** item.
![Actual](https://user-images.githubusercontent.com/45864985/119808611-dfcef480-bf16-11eb-84a2-be4db56a7676.png)

**Expected behavior:**

As set the TextAlign = MiddleRight for the **File** item in form designer, so the text of **File** item should shows on the right side.
![PropertySetting](https://user-images.githubusercontent.com/45864985/119808486-be6e0880-bf16-11eb-9955-156605323a55.png)

**Minimal repro:**

1. Open the attached [TestApp.zip](https://github.com/dotnet/winforms/files/6553044/TestApp.zip) project in VS and run it.
2. Click on **toolStripMenuItem1** to expand its drop down item **File**.
3. Observe the text align of **File** item.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.