コード例 #1
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     var ctx = value as CommandContext;
     if (ctx == null) return null;
     BindingCollection<object> result = new BindingCollection<object>();
     ctx.PropertyChanged += (s, e) => result.Load(Load(ctx));
     result.Load(Load(ctx));
     return result;
 }