How to open a popup menu when a button is clicked?

后端 未结 4 2008
时光取名叫无心
时光取名叫无心 2020-12-30 01:14

I have a button with an Image as its content in a toolbar. I would like this button to open a menu beneath it when clicked. How?


                     


        
4条回答
  •  抹茶落季
    2020-12-30 02:04

    If you have the luxury of targeting .NET 4 or newer, the new Ribbon library has a RibbonMenuButton that can do this. In 4.5 it is as easy as referencing System.Windows.Controls.Ribbon in your project:

    
        
    
    

提交回复
热议问题