I would like to create a commandbar (former appbar) that is not getting closed when the user presses one of the primary command buttons. When i got it right, the "issticky"-property should make this behavior possible.
My XAML Code:
<Page.BottomAppBar>
<CommandBar x:Name="bottomCommandBar" IsSticky="True" ClosedDisplayMode="Minimal">
<CommandBar.PrimaryCommands>
<AppBarButton x:Name="button1" Label="Button1" Tapped="Button1_Tapped">
<AppBarButton.Icon>
<PathIcon Data=""/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton x:Name="button2" Label="Button2" Tapped="Button2_Tapped">
<AppBarButton.Icon>
<PathIcon Data=""/>
</AppBarButton.Icon>
</AppBarButton>
</CommandBar.PrimaryCommands>
</CommandBar>
</Page.BottomAppBar>
IsSticky = true doesn't work, i also tested to set it in the button tapped event handler.
What is the regular way of getting this behavior? Or does anyone know a 'workaround'?
I would be grateful for any suggestions!
Best,