Hi,
I have created a plugin which contains a dialog which should host a RadRichTextBox. But the RichTextBox will not be displayed.
This plugin will be in registered via MEF.
I used your workaround which will be called by the contructor of the dialog:
private void InitMEFCatalog()
{
RadCompositionInitializer.Catalog = new TypeCatalog(
// format providers
typeof(HtmlFormatProvider),
typeof(RtfFormatProvider),
typeof(DocxFormatProvider),
typeof(PdfFormatProvider),
typeof(HtmlFormatProvider),
typeof(TxtFormatProvider),
// mini toolbars
typeof(SelectionMiniToolBar),
typeof(ImageMiniToolBar),
// context menu
typeof(Telerik.Windows.Controls.RichTextBoxUI.ContextMenu),
//// the default English spellchecking dictionary
//typeof(RadEn_USDictionary),
// dialogs
typeof(AddNewBibliographicSourceDialog),
typeof(ChangeEditingPermissionsDialog),
typeof(EditCustomDictionaryDialog),
typeof(FindReplaceDialog),
typeof(FloatingBlockPropertiesDialog),
typeof(FontPropertiesDialog),
typeof(ImageEditorDialog),
typeof(InsertCaptionDialog),
typeof(InsertCrossReferenceWindow),
typeof(InsertDateTimeDialog),
typeof(InsertTableDialog),
typeof(InsertTableOfContentsDialog),
typeof(ManageBibliographicSourcesDialog),
typeof(ManageBookmarksDialog),
typeof(ManageStylesDialog),
typeof(NotesDialog),
typeof(ProtectDocumentDialog),
typeof(RadInsertHyperlinkDialog),
typeof(RadInsertSymbolDialog),
typeof(RadParagraphPropertiesDialog),
typeof(SetNumberingValueDialog),
typeof(SpellCheckingDialog),
typeof(StyleFormattingPropertiesDialog),
typeof(TableBordersDialog),
typeof(TablePropertiesDialog),
typeof(TabStopsPropertiesDialog),
typeof(UnprotectDocumentDialog),
typeof(WatermarkSettingsDialog));
}
My output window looks like that:
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Documents.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Documents.Core.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Documents.Flow.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Documents.Flow.FormatProviders.Pdf.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Controls.RichTextBoxUI.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Controls.Navigation.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Controls.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Controls.RibbonView.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Controls.Input.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\de\Telerik.Windows.Controls.resources.dll" geladen. Das Modul wurde ohne Symbole erstellt.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Documents.FormatProviders.OpenXml.dll" geladen.
"Configurator.exe" (CLR v4.0.30319: Configurator.exe): "C:\Users\Didi\Source\Repos\cc360main\Configurator\bin\Debug\Telerik.Windows.Zip.dll" geladen.
As you can see, there is no error.
My xaml code:
<Grid Grid.Row="2">
<telerik:RadRichTextBox
x:Name="richTextBoxAdv"
IsSpellCheckingEnabled="False"
LayoutMode="Paged" />
</Grid>
The height of Grid.Row 2 is *.
Any ideas?