Why doesn't the AppBarButtons respond to Tapped events in Windows Phone 8.1 RT Universal apps?

I have a pretty simple script in a Windows Phone 8.1 RT app.

<Page.BottomAppBar> <CommandBar> <AppBarButton Click="AppBarButton_Click" Tapped="AppBarButton_Tapped" Icon="Emoji"/> </CommandBar> </Page.BottomAppBar> 

This is a new Page , no other code involved. On the real device and in the emulator, the Tapped event is never raised, but the Click event. I tried using Commanding instead, but did not find that it changed anything.

Has anyone else come across this before? Any solutions?

+6
source share
1 answer

If you have both settings (Click Event and Tapped Event), It will focus only on the Click event (if it is configured).

You cannot just use them like that. You will need to mix the rows in the same event.

I tried this once, and I found it futile to use both of them.

+3
source

Source: https://habr.com/ru/post/970633/


All Articles