Selects a MEF composition container and satisfies imports for RichTextEditor extension parts.
Definition
Namespace:Telerik.WinForms.Documents.UI.Extensibility
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public static class RadCompositionInitializer
Inheritance: objectRadCompositionInitializer
Properties
Gets or sets the catalog used to create the default composition container. Silverlight and WPF create a target-specific catalog on first access; WinForms initialization supplies a type catalog.
public static ComposablePartCatalog Catalog { get; set; }
Gets or sets a callback that supplies the composition container for a part. Assigning a non-null callback invalidates the cached default container and MEF-loaded format providers.
public static Func<object, CompositionContainer> GetCompostionContainerCallback { get; set; }
Methods
Satisfies the imports on an object using the callback-selected container or the shared default container.
public static void SatisfyImports(object part)
The object whose MEF imports should be satisfied.
Exceptions: ArgumentNullExceptionpart is null outside design mode.
The configured container callback returns null.
This method does nothing in design mode. Otherwise, imports are satisfied once; when no callback is configured, the shared container is created from Catalog on first use.