Usercontrol containing a datagrid

Jul 8, 2009 at 8:29 AM


I'd like to make a usercontrol like


<ToolBarTray Grid.Row=0>

<DataGrid Grid.Row=1>



To this usercontrol I'd like to pass the DataGrid Columns for the datagrid within the usercontrol




Binding="{Binding Path=myFirstBinding}" Header="FirstColumn" />
Binding="{Binding Path=mySecondBinding}" Header="SecondColumn" />



Has anyone an idea how I can achieve this?

Your help is appreciated,


Matthieu de Graaf