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

Configures the types accepted during XAML import and exposes callbacks for imported document content.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Xaml

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class XamlImportSettings

Inheritance: objectXamlImportSettings

Derived Classes: HtmlImportSettings

Constructors

Initializes the allowlist with the built-in types supported by the RichTextEditor XAML format provider. Add custom types to AllowedTypes when importing XAML that uses them.

C#
public XamlImportSettings()

Properties

Gets the collection of the assemblies where the allowed types for the XAML import are.

C#
public HashSet<string> AllowedAssemblies { get; }

AllowedTypes

ICollection<Type>

Gets the collection of the allowed types for the XAML import. Add any types used in your specific XAML files.

C#
public ICollection<Type> AllowedTypes { get; set; }

Gets the collection of the assemblies tokens. Allows you to add your public keys tokens for additional security.

C#
public IDictionary<string, string> AssembliesTokens { get; }

Events

Occurs after an image is created from the imported XAML.

C#
public event EventHandler<ImageImportedEventArgs> ImageImported

Occurs after an inline UI container is imported. Set SkipFromImport to remove it from the document after the callback.

C#
public event EventHandler<InlineUIContainerImportedEventArgs> InlineUIContainerImported

This event allows you to edit the Xaml before the import or cancel the import if you are not sure that the Xaml is safe.

C#
public event EventHandler<PreProcessingXamlEventArgs> PreProcessingXaml