コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }