PropertyMetadataBuilderExtensions.NewItemInitializer<T, TKey, TValue, TNewItem>(PropertyMetadataBuilder<T, IDictionary<TKey, TValue>>, Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>>, String, String) Method
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> NewItemInitializer<T, TKey, TValue, TNewItem>(
this PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> builder,
Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>> createDelegate,
string name = null,
string description = null
)
where TNewItem : TValue
Parameters
Name | Type |
---|---|
builder | PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> |
createDelegate | Func<ITypeDescriptorContext, IDictionary<TKey, TValue>, KeyValuePair<TKey, TNewItem>> |
Optional Parameters
Name | Type | Default |
---|---|---|
name | String | null |
description | String | null |
Type Parameters
Name |
---|
T |
TKey |
TValue |
TNewItem |
Returns
Type |
---|
PropertyMetadataBuilder<T, IDictionary<TKey, TValue>> |
See Also