tags:

views:

91

answers:

1

I have the following class:

public class DefaultDropTargetAdvisor : IDropTargetAdvisor 
{

I decided to make it have a generic parameter:

public class DefaultDropTargetAdvisor<TDragType>
       : IDropTargetAdvisor where TDragType : class
{

This was my XAML before the change:

<local:DefaultDropTargetAdvisor x:Key="targetAdvisor1"/>

How do I change that XAML to now reflect the type parameter? (I want to pass in a class called MockWI).

Clearly this does not work:

<local:DefaultDropTargetAdvisor<local:MockWI> x:Key="targetAdvisor1"/>

Any ideas?

+1  A: 

Check out an identical SO question.

Aviad P.