Hooking Into the Navigation Pane Click Event

Navigation for WPF Forum

Posted 11 years ago by Chris Aaron - Partner, Greenstone Strategic Partners
Version: 3.5.0421
Avatar
I'd like to display content in a control outside of the Navigation Bar when I click on one of the Navigation Pane "buttons". I notice in the documentation that the Navigation Pane has no events and the NavigationBar has none specifically geared toward this. The NavigationBar *does* inherit the SelectionChanged event (from Selector), but I'm at a loss as to how to cast the sender parm in the handler.

Is the SelectionChanged event the best event to handle this? If not, what would be the proper event and how should I go about this (a bit of code would be helpful)?

Thanks,

Chris

Comments (2)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Chris,

Correct, the NavigationBar is a Selector so when a pane is clicked, it is becoming selected. Therefore the SelectionChanged is the correct event to use.


Actipro Software Support

Posted 11 years ago by Chris Aaron - Partner, Greenstone Strategic Partners
Avatar
Thanks. It works great.
The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.