Example #1
0
 public static CollectionPropertyConfiguration <T, TCollection> SelectedItem <T, TCollection>(this CollectionPropertyConfiguration <T, TCollection> propertyConfig, Expression <Func <T, object> > expression)
     where T : new()
     where TCollection : new()
 {
     return(propertyConfig);
 }
Example #2
0
 public static CollectionPropertyConfiguration <T, TCollection> DisplayMember <T, TCollection>(this CollectionPropertyConfiguration <T, TCollection> propertyConfig, Expression <Func <TCollection, object> > expression)
     where T : new()
     where TCollection : new()
 {
     return(propertyConfig);
 }
Example #3
0
 public static CollectionPropertyConfiguration <T, TCollection> WithOrder <T, TCollection>(this CollectionPropertyConfiguration <T, TCollection> propertyConfig, int order)
     where T : new()
     where TCollection : new()
 {
     propertyConfig._bag.WithOrder = order;
     return(propertyConfig);
 }
Example #4
0
 public static CollectionPropertyConfiguration <T, TCollection> VisibleWhen <T, TCollection>(this CollectionPropertyConfiguration <T, TCollection> propertyConfig, Func <T, bool> func)
     where T : new()
     where TCollection : new()
 {
     propertyConfig._bag.VisibleWhen = func;
     return(propertyConfig);
 }
Example #5
0
 public static CollectionPropertyConfiguration <T, TCollection> DisplayAs <T, TCollection>(this CollectionPropertyConfiguration <T, TCollection> propertyConfig, string caption)
     where T : new()
     where TCollection : new()
 {
     propertyConfig._bag.DisplayAs = caption;
     return(propertyConfig);
 }