Beispiel #1
0
 /// <summary>
 /// Creates a new <see cref="Binding"/> using <paramref name="bindingSource"/> as the <see cref="Binding.Source"/>
 /// and <paramref name="propertyPath"/> as the <see cref="Binding.Path"/>.
 /// </summary>
 /// <param name="bindingSource">The object to use as the new binding's <see cref="Binding.Source"/>.</param>
 /// <param name="propertyPath">The property path to use as the new binding's <see cref="Binding.Path"/>.</param>
 /// <returns>A new <see cref="Binding"/> object.</returns>
 public static Binding CreateOneWayBinding(this INotifyPropertyChanged bindingSource, string propertyPath)
 {
     return(bindingSource.CreateOneWayBinding(propertyPath, null));
 }