glm9637 / MaterialWinforms

Materialized Windows Forms Controls
MIT License
106 stars 40 forks source link

Material drawer context menu #3

Open n3R0d0T opened 6 years ago

n3R0d0T commented 6 years ago

How to add click event on side drawer items? It doesn't trigger click event on toolstrip menu item. 😢

glm9637 commented 6 years ago

Have a look at the example, the MainForm.cs https://github.com/glm9637/MaterialWinforms/blob/master/MaterialWinformsExample/MainForm.cs

The solution to your problem is in line 134. The Drawer has a specific event for this. Yeah i know, not pretty, but sometime i will probably get to this. But it should work like this,