Is it not possible to place more than one grid in the same pivot page?
I have a set of three elements:image and 2 text boxes and on click on any place in these 3 elements I want to trigger and event. So I placed all the three of them in a grid in a pivot item. When I tried to place one more grid item like it, it throws an e开发者_高级运维rror like the property content is set more than once. Is it not possible to place more than one grid in the same pivot page? If not possible, how can i define an area that has three elements and use a gesture to trigger an event for the same?
You can only have one Content item within each PivotItem.
If you do need multiple Grid's then place them inside a parent Panel - e.g. inside a StackPanel or inside another Grid.
<PivotItem>
<StackPanel>
<Grid />
<Grid />
<Grid />
</StackPanel>
</PivotItem>
精彩评论