commandbar

Keyboard accelerator stops working in UWP app

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 06:32:12
问题 I'm trying to add a keyboard accelerator to a CommandBar menu item in a UWP app. This works fine when the app starts up, but after I open the overflow menu for the first time, the accelerator stops working. This doesn't appear to happen with primary commands (outside the menu), only secondary commands inside the overflow menu. Also, the menu item still works fine when clicked. XAML: <CommandBar> <CommandBar.SecondaryCommands> <AppBarButton Label="Test" Click="AppBarButton_Click">

Custom CommandBar to PickerFlyout

断了今生、忘了曾经 提交于 2019-12-25 07:03:12
问题 By default PickerFlyout has commandbar that has done and cancel buttons. Is it possible to disable done button programmatically? If not is there any way to add custom command bar and replace default one? With the help of the answer given i tried to write custom picker from PickerFlyoutBase. But now i'm not able to add content to flyout in xaml. Giving me error saying custompicker doesnt support direct content <Button> <Button.Flyout> <local:custompicker> <TextBlock Margin="20" FontSize="30"

I cannot apply a custom style for an AppBarButton inside a CommandBar in WP 8.1

你离开我真会死。 提交于 2019-12-20 04:38:25
问题 I have a very specific question. I could not find any answers for this exact problem, so I used the trial and error method to pinpoint the problem. Here is an example code I have the problem with: <Page.BottomAppBar> <CommandBar x:Name="MainMenuCommandBar" ClosedDisplayMode="Minimal"> <CommandBar.PrimaryCommands> <AppBarButton x:Name="otherCommandButton" Label="Egyéb" Icon="List" Click="otherCommandButton_Click" Style="{StaticResource appbarButton}"> <AppBarButton.Flyout> <MenuFlyout>