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"> ...
BottomNavigationBar
does not expose anItemInvoked
event. You can retrieve the current selection via theSelectedItem
property. I suppose it could also offer aItemInvoked
option likeNavigationView
is offering, feel free to open an issue here with your suggestion.However,
BottomNavigationBarItem
is aToggleButton
, so it implements theClick
,Checked
andUnchecked
events already.Here's an example of how you could handle those events in your app. (You probably only need
Checked
, depending on your scenario)