using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace FWindSoft.Wpf.SystemTypeExtensions { public static class BindingGroupExtension { public static void UpdateSourceForEach(this BindingGroup bg) { //bg.ValidateWithoutUpdate(); //bg.UpdateSources(); //与下面写法,是不一样的 foreach (var bindingExpressionBase in bg.BindingExpressions) { bindingExpressionBase.UpdateSource(); } } } }