Jeg løste det omsider.
Om noen andre tilfeldigvis lurer på det samme:
Kode
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<phone:LongListSelector
x:Name="llsList"
HorizontalAlignment="Left" Height="569"
Margin="10,10,0,0" VerticalAlignment="Top" Width="436"
>
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image HorizontalAlignment="Left" Height="120" VerticalAlignment="Top" Width="100" Source="{Binding pic}" />
<TextBlock HorizontalAlignment="Left" Margin="10,-96,0,0" Height="31" Width="318" FontSize="24" Text="{Binding name}" />
<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Margin="-318,0,0,0" Height="69" Width="318" FontSize="18" Text="{Binding description}" />
</StackPanel>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
Kode
public class Friend
{
public string name { get; private set; }
public string description { get; private set; }
public BitmapImage pic { get; private set; }
public Friend(string name, string des, BitmapImage p)
{
this.name = name; this.description = des; this.pic = p;
}
}
public class Friends : ObservableCollection<Friend>
{
public Friends()
{
BitmapImage image = new BitmapImage(new Uri("/Resources/test.png", UriKind.Relative));
Add(new Friend("Bob 1", "Dette er en beskrivelse av Bob, han er kul...", image));
Add(new Friend("Bob 2", "Bob 2 is awesome", image));
Add(new Friend("Bob 3", "Bob 3 is awesome", image));
Add(new Friend("Bob 4", "Bob 4 is awesome", image));
}
}
..også satt jeg bare inn llsList.ItemsSource = new Friends(); i koden.