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

CommandBarFlyout sometimes disabled #569

Open
deakjahn opened this issue Sep 25, 2023 · 0 comments
Open

CommandBarFlyout sometimes disabled #569

deakjahn opened this issue Sep 25, 2023 · 0 comments

Comments

@deakjahn
Copy link

deakjahn commented Sep 25, 2023

I have the following flyout from a button:

<Button>
  <ui:SymbolIcon Symbol="More" />
  <ui:FlyoutService.Flyout>
    <ui:CommandBarFlyout Placement="Right">
      <ui:AppBarButton Label="Edit" Icon="Edit" Command="{StaticResource DoEdit}" />
      <ui:AppBarButton Label="New" Icon="Add" Command="{StaticResource DoNew}" />
      <ui:AppBarButton Label="Delete" Icon="Delete" Command="{StaticResource DoDelete}" Foreground="Crimson" />
      <ui:CommandBarFlyout.SecondaryCommands>
        <ui:AppBarButton Label="Download" Icon="Download" Command="{StaticResource DoDownloadWeb}" />
        <ui:AppBarButton Label="Download URL" Icon="Globe" Command="{StaticResource DoDownloadUrl}" />
      </ui:CommandBarFlyout.SecondaryCommands>
    </ui:CommandBarFlyout>
  </ui:FlyoutService.Flyout>
</Button>

When I click on the button, the flyout opens but is disabled -- from time to times. Sometimes it's enabled. Sometimes it gets enabled for a moment when I click the button to close -- just before closing, the items get the non-disabled colors. No rhyme or reason to it, it works about half of the time. The commands are available, they are not conditional.

My app is .NET 6,0, running on 11.

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

No branches or pull requests

1 participant