This project is read-only.

WinStoreApps - how to show: LISTVIEW header titles for the list

Jun 21, 2015 at 6:42 AM
Edited Jun 21, 2015 at 6:44 AM
hi, in Windows Store Apps I've made a ListView but the problem is I don't know what's the best way to show the titles for each list items in that list. I have searched online mostly everyone is trying to use Columns and Rows. Can you tell me what's the appropriate method for showing the Title for each items in the list "ID", "NAME", "Father Name", "Caste","Address".

<ListView Name="EmployeeList" ItemsSource="{Binding}" >
                <StackPanel Orientation="Horizontal">
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Left"/>
                            <Setter Property="FontSize" Value="20"></Setter>
                        <Setter Property="FontFamily" Value="Comic Sans MS"></Setter>
                            <Setter Property="FontWeight" Value="Bold"></Setter>
                    <TextBlock Text="{ Binding Id }"/>
                    <TextBlock Text="{ Binding Name }"/>
                    <TextBlock Text="{ Binding FatherName }"/>
                    <TextBlock Text="{ Binding Caste }"/>
                    <TextBlock Text="{ Binding Address }"/>