Hooking Into the Navigation Pane Click Event

Navigation for WPF Forum

Posted 16 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 16 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 16 years ago by Chris Aaron - Partner, Greenstone Strategic Partners
Avatar
Thanks. It works great.
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.