fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.48k stars 515 forks source link

BackStage Back Button doesn't have an accessibility text. #1125

Closed robertmuehsig closed 11 months ago

robertmuehsig commented 1 year ago

If you focus the button and have the Narrator/nvda/any other screenreader open, nothing will be read:

image


Environment

robertmuehsig commented 1 year ago

I retested it with the most recent develop branch (version 10) and at least the Windows Narrator from Windows 11 & JAWS don't read the button.

The AutomationPeers are set, but it is not working as expected: image

robertmuehsig commented 11 months ago

Just tested it with the most recent released version (and tested the develop branch) and it still seems broken - at least on Windows 11 with the Narrator and NVDA nothing happens when I focus the close backstage button.

I tried to fix it myself, but even when I replace the backbutton with a very simple button like this nothing happens:

                    <Button 
                            Content="Foobar"
                            Grid.Row="0"
                            Padding="22 7 0 7"
                            VerticalAlignment="Top"
                            Background="Yellow"
                            AutomationProperties.Name="Test"
                            >
                        <Button.Margin>
                            <MultiBinding Converter="{x:Static converters:StaticConverters.ThicknessConverter}">
                                <Binding Source="0" />
                                <Binding FallbackValue="0"
                                         Path="TitleBar.ActualHeight"
                                         RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Fluent:IRibbonWindow}}" />
                                <Binding Source="0" />
                                <Binding Source="0" />
                            </MultiBinding>
                        </Button.Margin>
                    </Button>

It seems that something is blocking the narrator.

Any idea? Sorry to bother you.