I have a list of strings that initializes in the constructor:
public List<String> m_Distances = new List<String>();
public List<String> Distances
{
get
{
return m_Distances;
}
}
and also in the constructor:
listPickerDistance.ItemsSource = Distances;
Now in my XAML:
<TextBlock Text="Distance" x:Name="textBlockDistance"/>
<toolkit:ListPicker ItemsSource="{Binding}" x:Name="listPickerDistance">
<toolkit:ListPickerItem>
<DataTemplate>
<TextBlock Text="{Binding Distances, ElementName=listPickerDistanceSearch}"/>
</DataTemplate>
</toolkit:ListPickerItem>
</toolkit:ListPicker>
Can you please help me bind the list to the listpicker? Should be easy.. isn't it?