/// <summary> /// Gets a binding by its bound property. /// </summary> /// <param name="This">This BindingCollection.</param> /// <param name="propertyName">Name of the property.</param> /// <returns>The first binding that matches the given property name.</returns> public static Binding GetBindingByPropertyName(this BindingsCollection This, string propertyName) { Contract.Requires(This != null); return(This.GetBindingsByPropertyName(propertyName).First()); }