private void OnListViewMouseClick(object o, ButtonPressEventArgs args) { if (args.Event.Button == 3 && _listView.Selection.GetSelectedRows().Any()) { var menu = BuildPopupMenu(); if (menu.Children.Length > 0) menu.Popup(); args.RetVal = true; } }