XamlImportSettings
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:
public class XamlImportSettings
Inheritance: objectXamlImportSettings
Derived Classes:
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.
public XamlImportSettings()
Properties
AllowedAssemblies
HashSet<string>
Gets the collection of the assemblies where the allowed types for the XAML import are.
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.
public ICollection<Type> AllowedTypes { get; set; }
Gets the collection of the assemblies tokens. Allows you to add your public keys tokens for additional security.
public IDictionary<string, string> AssembliesTokens { get; }
Events
Occurs after an image is created from the imported XAML.
public event EventHandler<ImageImportedEventArgs> ImageImported
Occurs after an inline UI container is imported. Set SkipFromImport to remove it from the document after the callback.
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.
public event EventHandler<PreProcessingXamlEventArgs> PreProcessingXaml