I have the following class that I use in order to populate a combo box:

```
public class DamageTypeList
{
    static Begbil2Entities _DB = new Begbil2Entities();
    public static List<HUB_DamageTypes> _list = (from d in _DB.HUB_DamageTypes orderby d.DamageOrder select d).ToList(); 

    public static List<HUB_DamageTypes> TList
    {
        get
        {
            return _list;
        }
    }
 }

```

In the xaml file I add it like this:

```
<UserControl.Resources>
    <me:DamageTypeList  x:Key="DamageTypeList"/>

```

The xaml line creates an error (ONLY in design time, it runs pefectly at runtime):

Cannot create an instance of "DamageTypeList". C:\HUB\HUB\HubbCostOfferPage.xaml

I have found some suggestions to solve it by using: 

```
if (!DesignerProperties.IsInDesignTool)

```

But how do I use it to solve my problem?