public void RemoveActionItem(ActionItem actionItem) { if (ActionItems == null || actionItem == null || !ActionItems.Contains(actionItem)) { return; } ActionItems.Remove(actionItem); UpdateProperties(); }