Good morning.
I have a CommandBar with 5 strips in it. Note I don't want users to rearrange the strips, so in my real project I removed this possibility. I run the project and I see all the 5 strips, see image1.png attached file. Now I set Visibility = ElementVisibility.Collapsed for strips 2, 3 and 5. The strip disappears but strip 4 stays where it is. So I try with strip4.DesiredLocation = Pointf.Empty, and the behavior is what I want (see image2.png). When I set Visibility = ElementVisibility.Visible again (for strips 2, 3 and 5), the order of the strips is messed up, and is 1, 2, 4, 3, 5, but I wanted to get them exactly in the previous order. How can I solve this problem?
Thank you
Gianfranco
I have a CommandBar with 5 strips in it. Note I don't want users to rearrange the strips, so in my real project I removed this possibility. I run the project and I see all the 5 strips, see image1.png attached file. Now I set Visibility = ElementVisibility.Collapsed for strips 2, 3 and 5. The strip disappears but strip 4 stays where it is. So I try with strip4.DesiredLocation = Pointf.Empty, and the behavior is what I want (see image2.png). When I set Visibility = ElementVisibility.Visible again (for strips 2, 3 and 5), the order of the strips is messed up, and is 1, 2, 4, 3, 5, but I wanted to get them exactly in the previous order. How can I solve this problem?
Thank you
Gianfranco