private static void SetEventCommands(DependencyObject element, EventCommandsCollection commands) { if (element == null) { return; } Ex.SetEventCommands(element, commands); }
/// <summary>Event commands</summary> /// <param name="obj">Object to set the event command on</param> /// <param name="value">Value to set</param> public static void SetEventCommands(DependencyObject obj, EventCommandsCollection value) { obj.SetValue(EventCommandsProperty, value); }