0

In my app, I have many commandsBar, but with this last SDK, the button "..." disappear on my commandBar.

I search on web and the conclusion: At Build 2016, showed changes in many XAML elements. CommandBars specific, have new properties.

If I put "OverflowButtonVisibility="Visible"" on my commnadBar, "..." appear correctly, but, is not working with Min Target Version 10586. Only work with Min Target Version Windows 10 Anniversary Edition (10.0; Build 14393).

My question are: I need to show always "...", How do this?

Min Version Supported: 10240

Max Version Supported: Windows 10 Anniversary Edition (10.0; Build 14393).

MyCode:

<CommandBar x:Name="CommandBar">
        <AppBarButton Icon="Filter" Label="Filter X" Style="{StaticResource StyleFilter}">
        </AppBarButton>
    </CommandBar>

Thanks in advance

fipcurren88
  • 701
  • 5
  • 26
  • 1
    Is it not showing if you just let the OverflowButtonVisibility unset? I got it unset and the "..." shows everytime... – Marian Dolinský Oct 19 '16 at 16:44
  • You may also think of publishing two packages one for each version. – Romasz Oct 19 '16 at 17:01
  • Hi People, I dont know the problem, but if I remove the style, it's work perfectly. I try to create a new style on Blend, and the problem are solved. Thanks – fipcurren88 Oct 20 '16 at 10:28

1 Answers1

0

The only way you can handle this in all versions is to Template your own CommandBar. Create a new TemplatedControl, base it off CommandBar and copy the CommandBar's style from here. Then inside the templated control you can add your own version of OverflowButtonVisibility="Visible" by creating your own DependencyProperty which can then be bound to or a default of Visible can be set.

You'll then need to replace all of your current CommandBar's with your TemplatedControl.

jsmyth886
  • 531
  • 7
  • 15