This is a migrated thread and some comments may be shown as answers.

Cannot host RichTextBox

1 Answer 16 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dietmar
Top achievements
Rank 1
Dietmar asked on 12 Aug 2019, 03:35 PM

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?

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 15 Aug 2019, 10:52 AM
Hello Dietmar,

It sounds like you have used NoXaml dlls in your scenario and did not merge the resource needed for the control to load. If that so, please refer to our Setting a Theme article where you can find information on how to use ImplicitStyles. If this is not the case, please share a sample runnable project reproducing the issue so we could provide you with more information on the matter. As this is a forum thread, you could either submit a support ticket or share the sample via a files sharing service.

Regards,
Peshito
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RichTextBox
Asked by
Dietmar
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or