PopupButton - null PopupContent??

Ribbon for WPF Forum

Posted 14 years ago by FinallyInSeattle
Version: 10.1.0523
I've wired up the PopupOpened event and was trying to access items in the PopupContent, but it's null even though there are items present. We're defining the items in the popup by setting the PopupContentTemplate with an Actipro menu as the root element in the DataTemplate. Is there a way to get at the items in the popup?

Thanks in advance!

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Think of the PopupContent and PopupContentTemplate like the props on any ContentControl. If you set the template, the content property is never filled in unless you set the content property explicitly. The only way to get to template-generated child elements in that case is via VisualTreeHelper.

Actipro Software Support

The latest build of this product (v24.1.2) 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.