Using Visual Studio 2013 and the Window Phone 8 SDK I cannot get the SelectedItem
property of the LongListSelector
to properly bind to an MVVM property.
It appears to be an identical issue to a bug that existed in the control prior to its inclusion in the SDK but which is marked as fixed. http://silverlight.codeplex.com/workitem/9360
Is anyone else experiencing this and know of a fix/updated version?
I am currently using a code behind workaround
private void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
LongListSelector s = sender as LongListSelector;
var vm = DataContext as ViewModel.MainViewModel;
Debug.Assert(vm != null);
vm.SelectedLegislator = s.SelectedItem;
}