Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set CommandBar / AppBar to be always open

I searched for a way, to set a commandBar (in a Windows Metro App) to be always open. But I couldn't find anything. Has anyone an idea?

like image 980
Matt126 Avatar asked Jan 10 '23 03:01

Matt126


2 Answers

If you don't want it to ever close - simply use some Panel instead of the AppBar. If you use the CommandBar and utilize its infrastructure that automatically switches IsCompact property of the buttons - you could also try to handle the Closed event and set IsOpen to true. Also set IsSticky to true so you can use the rest of the UI.

like image 118
Filip Skakun Avatar answered Jan 18 '23 18:01

Filip Skakun


In UWP set the IsOpen and IsSticky to true on a CommandBar, and it should just stay open.

like image 23
James Esh Avatar answered Jan 18 '23 19:01

James Esh