I am implementing the BottomNavigationBar from Uno.Material in my app. I can get the bar to appear like I want it to- but can not figure out what the event handler is for when I click on a bottomnavigationbaritem to change it. I have tried ItemInvoked, OnPressed, OnTouch, OnClick, Clicked- but not able to get it to work. I am a bit embarrassed to ask- but would someone be able to point me in the right direction of what event is fired and what the method signature of the event should be?
... <controls:BottomNavigationBar x:Name="BottomNavBar" Grid.Row="2"mOnClick="BottomNavView_ItemInvoked"> ...
BottomNavigationBardoes not expose anItemInvokedevent. You can retrieve the current selection via theSelectedItemproperty. I suppose it could also offer aItemInvokedoption likeNavigationViewis offering, feel free to open an issue here with your suggestion.However,
BottomNavigationBarItemis aToggleButton, so it implements theClick,CheckedandUncheckedevents already.Here's an example of how you could handle those events in your app. (You probably only need
Checked, depending on your scenario)