Hi guys,
i am a very beginner in WPF. I am trying to create my first app for Windows Phone 7.
I have a Detail View and the .cs class associated to the view.
In my view i have :
<StackPanel Grid.Row="0" Grid.Column="0">
<TextBlock Name="textBlock1" Text="..."/>
</StackPanel>
In the .cs:
...
listAgences = new List<Agence>();
Agence agence1 = new Agence();
agence1.Name = "test";
agence1.Adresse = "test1";
...
listAgences.Add(agence1);
...
How do i get to have the Text in the texbox to be "test"? i tried stuff like :
Text="{Binding Path=listAgences[0].Name}";
in asp.net i know how to do it but here i'm quite lost.
Thx for helping