I have a litte problems with these class
public class MyClass : MyGenericClass<String, Int32>
{
}
// XAML Class
public class MyGenericClass<T, U> : MyGenericClassBase<T, U>
where U : class
where T : class
{
public MyGenericClass()
{
InitializeComponent();
}
}
public class MyGenericClassBase<T, U>
where U : class, new()
where T : class, new()
{
T _t;
U _u;
public MyGenericClassBase()
{
}
}
I want to did the class "MyGenericClass" in XAML but I can't !
I try it :
<MyGenericClassBase x:Class="MyGenericClass"
x:TypeArguments="class,class"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
...
How can i pass the argument type at my "MyGenericClass" and the inherit class "MyGenericClassBase "
Thanks a lot
Nico