Insert a WPF usercontrol in a viewpart

Dear Language developers,

Has anyone ever tried to develop a plugin with a view part which would display a WPF user control? Or a view part with a user control containing an hosting element for a WPF user control?

I have tried this latter solution but I am getting trouble when trying to embed the WPF user control in the hosting element (the WPF user control is not in the list of objects to insert in the hosting element). Moreover, after I had added a WPF user control to my project, I received an error message when building the project (error message similar to the one I am receiving when I forget to close Studio when building the plugin).

Does anyone know why this does not work? Is it the plugin template which does not support WPF? Or is it a problem coming from Visual Studio Express 2013?

I would like to implement some parts of my view part (or even the whole view part) in WPF in order to improve the performance of my plugin. With a standard user control, I need to create and display objects at runtime, which is making the application slower. If I could use WPF, I would not need to create UI objects, thus making my plugin quicker.

Thank you in advance for your support.

Regards,

Laurent

Parents Reply
  • Hi Romulus,

    I hope you had a safe trip back from San Francisco!

    I am back at working on the improvement of the CRiC plugin and, as I told you, I want to use WPF in order to improve performance and layout.

    I could get rid of the error messages mentioned in my original post by killing the XAML designer when building my plugin, thus releasing the file for Studio use. I also added the above-mentioned assemblies directly in the pluginmanifest, as you specified.

    I can now build my plugin, which contains a windows form with an elementhost. However, after I open Studio, when I try to open the Editor (which contains my viewpart), I receive the following error message:

    The component "EPO_446_CRiC_SearchViewPartUC" does not have a resource identified by the URI "/EPO_446_CRiC;component/searchviewpartuc.xaml"

    Any idea what is causing this problem? I have been searching for hours without success... I can find what is missing there.

    Thanks in advance for your support.

    Regards,

    Laurent
Children