나는 날짜별로 정렬 된 데이터를 표시하는 긴 목록 선택기가 있습니다. 나는 ' System.NullReferenceException was unhandled Message=NullReferenceException StackTrace: at Microsoft.Phone.Controls.LongListSelector.Balance() at Microsoft.Phone.Controls.LongListSelector.LongListSelector_LayoutUpdated(Object sender, EventArgs e) at System.Windows.FrameworkElement.OnLayoutUpdated(Object sender, EventArgs e) at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
LongListSelector를로드 할 때 충돌이 발생했습니다.
: 내가 직면하고있어 문제는 처음으로 성공적으로 목록로드하지만, 세부 사항 페이지에서 longlistselctor을 containg 페이지로 돌아 오는 후, 앱이 다음과 같은 예외와 충돌된다는 것이다 이런 일이 일어나기 때문에 심지어 추적 할 수도 없습니다. 목록은 다음과 같이 채워집니다
currentAudioList = DiaryDBController.DBController.GetDiaryRecordsWithAudio();
var DiaryAudioRecordsByDate = from rec in currentAudioList
group rec by rec.CreationDate into r
orderby r.Key
select new Group<DatabaseClasses.DiaryRecord>(r.Key, r);
try
{
this.AudioGroupListSelector.ItemsSource = DiaryAudioRecordsByDate;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex);
}
어떤 도움을 이해할 수있을 것이다. 감사합니다. .