locked
Button tapped event is not recognized RRS feed

  • Question

  • I created a button within an appbar and the tap event is not recognized.

    I then created a new page within my project and created a button and received the same results (i.e. no events fired.).

    I have a solution with the issue available on request.

    Friday, August 22, 2014 8:58 PM

Answers

  • How are you defining the button? Can you please share your minimal sample on your OneDrive?

    Both of the following buttons trigger both Tapped (and the more typical Click) for me

        <Page.BottomAppBar>
            <CommandBar>
                <AppBarButton Icon="Accept" Tapped="AppBarButton_Tapped" Click="AppBarButton_Click" />
    
            </CommandBar>
        </Page.BottomAppBar>
        <Page.TopAppBar>
            <AppBar>
                <Button Tapped="Button_Tapped"></Button>
            </AppBar>
        </Page.TopAppBar>


    Saturday, August 23, 2014 7:13 AM
    Moderator