I have this code behind:

CustomUserControl.xaml.cs

```
namespace MyProject
{
    public partial class CustomUserControl<T> : UserControl
    {
        ...
    }
}

```

and this xaml:

CustomUserControl.xaml

```
<UserControl x:Class="MyProject.CustomUserControl"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Grid>

</Grid>

```

It doesn't work since the x:Class="MyProject.CustomUserControl" doesn't match the code-behind's generic class definition. Is there some way to make this work?