Monday, August 18, 2014

How to position Gridview header on the left and use variablewrapgrid for all items to fill up the item space ?

What is your GridView code?


I shared my code here:



<Page.Resources>
<DataTemplate x:Key="DataTemplate1">
<StackPanel>
<Button>header</Button>
<Button>header</Button>
<Button>header</Button>
</StackPanel>
</DataTemplate>
</Page.Resources>

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<GridView HorizontalAlignment="Left" Height="282" Margin="403,179,0,0" VerticalAlignment="Top" Width="622" HeaderTemplate="{StaticResource DataTemplate1}" >
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
<x:String>asdsada</x:String>
</GridView>

</Grid>



--James


<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>

Thanks

MSDN Community Support



Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


No comments:

Post a Comment