New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
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.

C#
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.

C#
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.

C#
public static void SatisfyImports(object part)
Parameters:partobject

The object whose MEF imports should be satisfied.

Exceptions: ArgumentNullException

part is null outside design mode.

InvalidOperationException

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.