Dear community members,
Does anyone know if it is possible to use a WPF user control as viewpart? If yes, how should it be declared in the AbstractViewPartController Class? The following code will not work:
public class SearchViewPart : AbstractViewPartController
{
protected override System.Windows.Forms.Control GetContentControl()
{
return _control.Value;
}
protected override void Initialize()
{
}
private readonly Lazy<SearchViewPartControl> _control = new Lazy<SearchViewPartControl>(() => new SearchViewPartControl());
}
Apparently, the XAML cannot be converted to the type user control.
I also tried to integrated a WPF usercontrol in a windows user control form but I am running into difficulties too (Error message: the component does not have a resource identified by the uri). Can anyone advise on the best way to use WPF in plugins?
Thanks in advance.
Laurent