Open jsuarezruiz opened 2 years ago
Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32427.455.main]. Repro on Windows. Sample Project: ToolbarItemsDemo.zip
I have the same problem. This is in MAUI:
<ContentPage.ToolbarItems>
<ToolbarItem Text="Pick me!" Order="Secondary" />
</ContentPage.ToolbarItems>
And this is in WinUI 3:
<CommandBar>
<CommandBar.SecondaryCommands>
<AppBarButton Label="Pick me"/>
</CommandBar.SecondaryCommands>
</CommandBar>
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Same problem here and it got worse in my case. The size is wrong as shown in the description of this bug, but also de text is displayed in white color. Only on mouse over, it turns black making the text legible.
When opened:
When mouse over:
I tried this in a File -> New -> Project... with the current latest MAUI version 7.0.59
Verified this on Visual Studio Enterprise 17.6.0 Preview 6.0. Repro on Windows 11 with below Project: 7156.zip
This is still failing with the last updates (Visual Studio 17.8.0, .Net 8, MAUI 8.0.3) It really ugly to display the secondary menus in such way.
Please, give some priority to this issue
The following code can FIX the BUG about the size of the secondary toolbar items:
Microsoft.Maui.Handlers.ToolbarHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) =>
{
handler.PlatformView.FontSize = 14;
handler.PlatformView.SizeChanged += (f, o) =>
{
var toolbar = f as Microsoft.Maui.Platform.MauiToolbar;
var grid = toolbar.Content as Microsoft.UI.Xaml.Controls.Grid;
dynamic k = grid.Children[grid.Children.Count - 2];
k.Child.FontSize = 28;
};
//handler.PlatformView.BackgroundSizing= Microsoft.UI.Xaml.Controls.BackgroundSizing.InnerBorderEdge;
});
But the colour BUG is still present.
Description
Wrong secondary ToolbarItem size on Windows.
Also de popup is bigger than expected.
Steps to Reproduce
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows App SDK 17134
Did you find any workaround?
No response
Relevant log output
No response