Create an instance of the object, and then install the handler:
var logoutButton = new UIBarButtonItem (UIBarButtonSystemItem.Stop) logoutButton.Clicked += logoutButtonEventHandler;
To remove it, use the syntax -= :
logoutButton.Clicked -= logoutButtonEventHandler;
Just be careful with commom traps when you do this because they can cause a memory leak.
source share