| DataTemplateManagerCreateDynamicDataTemplates Method |
Creates dynamic data templates by looking up all MEF exports with the DataTemplateAttribute attribute,
creating a
DataTemplate resource dictionary entry for every export.
Namespace:
TomsToolbox.Wpf.Composition
Assembly:
TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll)
Syntax public static ResourceDictionary CreateDynamicDataTemplates(
IExportProvider exportProvider
)
Public Shared Function CreateDynamicDataTemplates (
exportProvider As IExportProvider
) As ResourceDictionary
Parameters
- exportProvider
- Type: TomsToolbox.CompositionIExportProvider
The export provider to search for exports with the DataTemplateAttribute.
Return Value
Type:
ResourceDictionary
The resource dictionary containing the dynamic data templates. This is usually added to the merged dictionaries of your application's resources.
See Also