views:

25

answers:

1

Hello all,

An easy one ;-)

I declared:

     xmlns:om="clr-namespace:System.Collections.ObjectModel;assembly=System"

I try to set a generaic as the DataType:

 <DataGrid d:DataContext="{
     d:DesignInstance Type=om:ObservableCollection&lt;System:Int32&gt;}" />

But I'm receiving an error: "Invalid format for a type".

Anybody have an idea how I can do that ?

A: 

My post about how to use a DesignInstance to populate controls with design time data in Silverlight and WPF should be able to help you out.

Jag Reehal