I\'m trying to put two Grids in a DataTemplate.
I\'m getting the following error with my code shown below.
Error: \"The property \'VisualTree\' is
A data template can only have one visual tree but you are defining two grids. If you want the two grids to appear next to each other or one below the other, wrap them in a StackPanel
and set the property Orientation
accordingly.
<DataTemplate>
<StackPanel Orientation="Vertical">
<Grid>[...]</Grid>
<Grid>[...]</Grid>
</StackPanel>
</DataTemplate>