Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect display of Button shortcut access key #10071

Open
antikmozib opened this issue Nov 15, 2024 · 1 comment · May be fixed by #10073
Open

Incorrect display of Button shortcut access key #10071

antikmozib opened this issue Nov 15, 2024 · 1 comment · May be fixed by #10073

Comments

@antikmozib
Copy link

Description

Image

<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="200" Width="300">
    <Grid>
        <StackPanel Margin="8">
            <Button Content="_Press Me" />
        </StackPanel>
    </Grid>
</Window>

Reproduction Steps

  1. Create a new WPF project with .NET 9.
  2. Set ThemeMode = "Light" in App.xaml.
  3. Add a Button to MainWindow.xaml.
  4. Set Button.Content = "_Press Me".

Expected behavior

Image

Actual behavior

Image

Regression?

Yes

Known Workarounds

No response

Impact

No response

Configuration

.NET 9.0.100
VS 2022 17.12
Windows 11 24H2 x64

Other information

No response

@h3xds1nz
Copy link
Contributor

Yeah, well, some controls seem to missing RecognizesAccessKey on their ContentPresenters.

It's my first visit in that XAML and yay, we can't say that's ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants