To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
Notice that the automatic navigation will only work if the button is inside a NavigationManager (in a view managed by it). If you just want to use the button as a visual element, you can use it like a regular Button and handle the click events with a ClickListener.
But I found I can not add regular ClickListener to NavigationButton