Hi,
How to display list of contacts (with profile pic and profile name) in grid format(like windows apps store) in XAML.
can u please help on this.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishnujeet KumarPosted Dec 19, 2012, 12:29 AM
you can try this article code also may be that help you .
http://www.c-sharpcorner.com/UploadFile/0b73e1/different-types-of-panels-in-xaml-layout/
Vishnujeet KumarPosted Dec 19, 2012, 3:33 AM
http://www.scip.be/index.php?Page=ArticlesNET07
apply this style for win8 looks .
http://msdn.microsoft.com/en-us/library/ff727788.aspx
surya syamalaPosted Dec 19, 2012, 3:13 AM
Vishnujeet KumarPosted Dec 19, 2012, 2:18 AM
surya syamalaPosted Dec 19, 2012, 12:47 AM
<DataTemplate x:Key="TextTileListFolderTemplate">
<Grid Background="DarkGray" Width="300" Height="70">
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom">
<Image Source="s1.png" Stretch="UniformToFill"/>
<TextBlock Text="ameya "
FontSize="16" Margin="10,0,0,10"
TextTrimming="WordEllipsis" HorizontalAlignment="Left" />
StackPanel>
Grid>
DataTemplate>
Data template used in Grid view
<
common:LayoutAwarePage
x:Name="pageRoot"
x:Class="display45.GroupedItemsPage"
DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:display45"
xmlns:data="using:display45.Data"
xmlns:common="using:display45.Common"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<CollectionViewSource
x:Name="groupedItemsViewSource"
Source="{Binding Groups}"
IsSourceGrouped="true"
ItemsPath="TopItems"
d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
Page.Resources>
<Grid Style="{StaticResource LayoutRootStyle}">
<Grid.RowDefinitions>
<RowDefinition Height="140"/>
<RowDefinition Height="*"/>
Grid.RowDefinitions>
<GridView
x:Name="TextTileListFolderGrid"
VerticalAlignment="Stretch" HorizontalAlignment="Left"
CanReorderItems="True" CanDragItems="True"
AutomationProperties.AutomationId="ItemGridView"
AutomationProperties.Name="Grouped Items"
Grid.RowSpan="2"
Padding="116,137,40,46"
ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
ItemTemplate="{StaticResource TextTileListFolderTemplate}"
SelectionMode="None"
IsSwipeEnabled="false"
IsItemClickEnabled="True"
ItemClick="ItemView_ItemClick" >
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<WrapGrid MaximumRowsOrColumns="6"
VerticalChildrenAlignment="Top" HorizontalChildrenAlignment="Center" />
ItemsPanelTemplate>
GridView.ItemsPanel>
I want to display contacts in this format.