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

Override MEF

3 Answers 50 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Marcello asked on 12 Dec 2014, 08:59 AM
Hi,

In my scenario the path of the application don't contains any dll.
The application overrides OnResolveAssembly granting that all work good and loading the dlls from others path.
Except the RadRichTextBox!

How to adopt a similar strategy with MEF and assign dinamically the dll positions?







3 Answers, 1 is accepted

Sort by
0
Marcello
Top achievements
Rank 1
answered on 12 Dec 2014, 11:10 AM
Hi,

Solved using  RadCompositionInitializer.Catalog = new TypeCatalog(..) strategy.
Now, how to know requested type [that will change with RichTextBox releases]?
Is not possible to create the type catalog from the current RadCompositionInitializer.Catalog parts?
Or introduce a method RadCompositionInitializer.ReloadCatalog() or something similar?

Thanks,
marc.
0
Petya
Telerik team
answered on 16 Dec 2014, 05:10 PM
Hi Marc,

RadRichTextBox uses MEF to load its extensible components - the dialogs in the UI, context menu, etc. All types loaded by MEF are listed here and I'm afraid there is no way to obtain them with code. My suggestion to you is to add them in your application just before the initialization of RadRichTextBox.

The fact is RadRichTextBox is pretty feature-complete in terms of UI, so we do not introduce new dialogs with every release. On the chance that this happens, it will be noted in the release notes of the version and the respective articles for the control - Changes and Backward Compatibility. I'll also forward your feedback to the team and we will consider introducing some mechanism that will fit your scenario.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marcello
Top achievements
Rank 1
answered on 17 Dec 2014, 08:21 AM
Hi Petya,
many thanks.
marc.
Tags
RichTextBox
Asked by
Marcello
Top achievements
Rank 1
Answers by
Marcello
Top achievements
Rank 1
Petya
Telerik team
Share this question
or