Context building:
I have been developing UWP app (C# & XAML) in which I am using a commandbar for displaying some options at the bottom of the page. I am using Primary as well as SecondaryCommands in the commandBar.
What I need:
We have 3 dots at the end. I have one function which will be called when commandbar will be "opened" & "closed". In this function, I need to check if SecondaryCommands menu is opened or not. Secondly, I want to know the event name which is equivalent to StateChanged Event in AppbarButton earlier. for #2, already referred this: Click event for the "..." three dots of the application bar to change the opacity
Note: I have searched the list which comes when I press space in Visual Studio. On SO, I got links which have discussed for earlier version of Windows. Any help would be appreciated. Thanks in advance.
As far as Microsoft has explained in this there are
Openeing
,Opened
,Closing
andClosed
events forCommandBar
and they refer to...
3-dots (Ellipsis).These events get fired when you press the
Ellipsis
to open or close theCommandBar
. I think this is what you are looking for. And to check theOverflow Menu
which contains theSecondary Commands
you will have to check if theCommandBar
has any secondary commands available withOpening
orOpened
event.Let me know in comments if this is not what you need.