// To load the PopUpContainer control into the Menu Button
if (this.ribbonControlAdv1.RibbonStyle == Syncfusion.Windows.Forms.Tools.RibbonStyle.Office2010 || this.ribbonControlAdv1.RibbonStyle == Syncfusion.Windows.Forms.Tools.RibbonStyle.Office2013)
{
if (!isPopupVisible)
{
if (sender is ToolStripDropDownButton)
{
isPopupVisible = true;
Point pt = this.RectangleToScreen((sender as ToolStripDropDownButton).Bounds).Location;
this.popupControlContainer1.ShowPopup(new Point((int)(pt.X), (int)(pt.Y + (sender as ToolStripDropDownButton).Bounds.Height)));
}
}
else
{
isPopupVisible = false;
this.popupControlContainer1.HidePopup();
}
} |
Hi,
I'm interested in viewing the sample project attached to this post.
However, if I try to download it, a message is shown saying that my account is not associated with this download.
How can I have access to it? Could it be made public?
In particular, I'd like to see how the code shown is bound to Menu button click.
Thank you, regards
Roberto
Hi Roberto,
As mentioned in the previous comment, in MS Office 2010, 2013, and 2016 applications Menu button selection will display BackStage View. If you would like to have Office2007 style like other styles, then that can be achieved by using PopUpContainer and handling the MenuButton Click event. Please find the sample for your reference.
Also, refer to the below link for further reference.
Application Menu in Windows Forms Ribbon control | Syncfusion
Regards,
Raghavendra S