public static void SetAssociationEntry(DependencyObject obj, CommandOnEventAssociation value) { if (null == obj) { throw new ArgumentNullException("obj", "Unable to set mapping entry on null dependency object."); } obj.SetValue(AssociationEntryProperty, value); }