I have this markup extension
public class NullableExtension : TypeExtension
{
public NullableExtension() {
}
public NullableExtension( string ty
The syntax
DataType="{x:Type TypeName=System:Nullable`1[[System.Int32]]}">
doesn't seem to work for user defined types :(
Actually one other way is to create a base non-generic type. Set first data template to that type and bind ContentPresenter.Content
to the property which holds object of T
. Then create other data templates for whatever T
.