Open John-Qiao opened 3 years ago
@John-Qiao , Is this issue in response to a feedback? We would need a business case to implement functionality. In the best case we may hide design time property. Did you check behavior in MFC (C++) app with 'MainMenu'?
@dreddy-work yes, it's a feedback issue which post in here: https://developercommunity2.visualstudio.com/t/ToolStripMenuItem-TextAlign-doesnt-work/856122.
And I didn't find the TextAlign property for Menu items in MFC app, please check below screenshot:
There is a solution available on SO https://stackoverflow.com/a/4397976/2338036, which also notes that "this is not standard Windows GUI menu item layout which users expect". Our goal is to allow building Windows native apps, and this request is asking to allow building apps that don't look native on Windows.
I propose we hide these API from the strip controls. Any users that desire to build apps with non-traditional Windows look and feel can provide custom renderers and achieve the desired.
.NET Core Version:
.NET SDK 6.0.100-preview.6.21276.13
Have you experienced this same bug with .NET Framework?:
Yes
More Info:
Problem description:
TextAlign property doesn't work for File item.
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.
Minimal repro: