Hello i'm new in programming and i making a Football Windows Phone 8.1 Application using Web Services. i created a class Football.cs:
public int Id { get; set; }
public string Team1 { get; set; }
public string Team2 { get; set; }
public string Score { get; set; }
public string Place { get; set; }
public string Stadium { get; set; }
Then i generated a Web API 2 Controller using Entity Framework to create the DataBase and get the data from it. Then i created a Windows Phone application, in the Mainpage.xaml here's the code :
<Page.Resources>
<DataTemplate x:Key="EmployeeDataTemplate">
<Grid Margin="12,12,12,0"
Width="376">
<TextBlock
FontSize="24"
Text="{Binding Team1}"/>
<TextBlock
FontSize="24"
HorizontalAlignment="Right"
Text="{Binding Team2}"/>
<StackPanel>
<TextBlock
FontSize="18.667"
HorizontalAlignment="Center"
Text="{Binding Score}" />
</StackPanel>
</Grid>
</DataTemplate>
</Page.Resources>
<Page.DataContext>
<Core:MainViewModel/>
</Page.DataContext>
<Grid>
<ListView x:Name="mainListView"
ItemsSource="{Binding EmployeesList}"
ItemTemplate="{StaticResource EmployeeDataTemplate}"
IsItemClickEnabled="True"
ItemClick="listView_ItemClick"/>
</Grid>
then i created a new BasicPage.xaml:
<Page.DataContext>
<Core:MainViewModel/>
</Page.DataContext>
<StackPanel>
<TextBlock Text="{Binding Place}" />
<TextBlock Text="{Binding Stadium}"/>
</StackPanel>
Can you help me please, i'm a beginner and i tried to make it but without success. All i want is when i click in a specific Item in the ListView, the Basic Page will display the Place and the Stadium to ONLY and ONLY to this specific Item, not the first one and not all of them. Thank you very much, i appreciate it