WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Including AppBarButton.AllowFocusOnInteraction with Flyout Documentation in Gallery

Open zateutsch opened this issue 3 years ago • 1 comments

Is this a totally new sample, an addition to an existing sample page, or a modification of an existing sample page?

  • [ ] New sample
  • [ ] Addition to existing sample
  • [x] Modification to existing sample

If this is an addition/modification to an existing sample page, which one? AppBarButton sample

Describe the sample I think the addition of a Flyout example for the AppBarButton could be beneficial. Especially if it includes usage of the AllowFocusOnInteraction property - such as a flyout that allows for input.

Is your sample request related to a problem? Please describe it

I was having issues with having an AppBarButton.Flyout accepting input, even when the same flyout recreated on other elements worked just fine.

Poking around some articles of others having the same issue, I found the solution was to set AppBarButton.AllowFocusOnInteraction="True".

An extra example here for flyout input might ease some future users some pain: it seems to be a common enough scenario.

zateutsch avatar Oct 09 '21 00:10 zateutsch

Thanks so much for the feedback, we would very much appreciate your contribution!

karkarl avatar Feb 01 '24 19:02 karkarl