I have a generic class
public abstract class BaseViewModel
Since I am trying to create a DataTemplate that will be applied to all clas
I would create a non-generic version of BaseViewModel
and let the generic one inherit from it:
public abstract class BaseViewModel
{
// members that are not T-specific, if any
// (not required, but could prove useful)
}
public abstract class BaseViewModel<T> : BaseViewModel
{
// T-specific members
}
By doing this, your DataTemplate
is going to work.