"Click" for menubar item? #207
GronbergInfo
started this conversation in
General
Replies: 1 comment 1 reply
-
Currently the designer does not support creating events but you can do it with the For example if you have an empty view that you have added a MenuBar to there will be a placeholder menu item called "Edit Me". Putting a callback on that is done as follows (In MyView.cs): public MyView() {
InitializeComponent();
editMeMenuItem.Action = SomeMethod;
}
private void SomeMethod()
{
MessageBox.Query("Clicked", "You clicked bud!", "Yeah!");
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi, i have been looking around and cannot seem to fine a way to do something when a menu item is clicked.
Is it action i need to use? If so, got any example?
Beta Was this translation helpful? Give feedback.
All reactions