How to click the ribbon popup button from coding?

Ribbon for WPF Forum

Posted 9 years ago by Roger Rong
Version: 13.2.0590

Hi there,

We use a ribbon popupbutton in our applications and a user control is didsplayed when users clicking the button, which works perfectly.

        private void PopupButton_PopupOpening(object sender, ActiproSoftware.Windows.CancelRoutedEventArgs e)
            PopupButton popupOwner = (PopupButton)sender;
            popupOwner.PopupContent = UCWorkCode.CurrentWorkCodeUserControl;


 Now we need to popup the user control from coding. Anyway to archieve that? We tried the sendkey with no luck.


Thanks in advance.


Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Roger,

I believe you could just set the PopupButton.IsPopupOpen property to true.

Actipro Software Support

Posted 9 years ago by Roger Rong

Thanks. It does work. Just as simple as that. :)



The latest build of this product (v22.1.4) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.