c# - My application crashed when snapped with items in listviews -
so, im working on project using c#/xaml windows 8 store app , i've encountred problem.
when user navigates page listview controls shows up. when user decides snap page application crashes , shows this:

in intellitrace shows , press exception.

it navigates me code.
/// <summary> /// implement partial method configure service endpoint. /// </summary> /// <param name="serviceendpoint">the endpoint configure</param> /// <param name="clientcredentials">the client credentials</param> static partial void configureendpoint(system.servicemodel.description.serviceendpoint serviceendpoint, system.servicemodel.description.clientcredentials clientcredentials); public employeeassisterclient() : base(employeeassisterclient.getdefaultbinding(), employeeassisterclient.getdefaultendpointaddress()) { this.endpoint.name = endpointconfiguration.timeloggerendpoint.tostring(); configureendpoint(this.endpoint, this.clientcredentials); } i add controls listview follows:
_timereports = _timereportdatabase.getall(); foreach (var timereport in _timereports) { _invoicedcontrols.add(new invoicedcontrol(timereport) { customer = timereport.customername, date = timereport.date, workedtime = timereport.workedtime.tostring(), invoicedtime = timereport.invoicedtime.tostring() }); } timereportslistviewfillview.itemssource = _invoicedcontrols; timereportslistviewfullview.itemssource = _invoicedcontrols; timereportslistviewportraitview.itemssource = _invoicedcontrols; timereportslistviewsnappedview.itemssource = _invoicedcontrols; edit==============================================================================
this error wich thrown

i turned off wcf debugging typing "c:\program files\microsoft visual studio 11.0\common7\ide\vsdiag_regwcf.exe -u" cmd , resolved 2/3 problems
this last error in intellitrace: 
what error mean? , any1 have idea how fix this?
based on you've shown, it's you've used generated page (from template), removed of xaml inside of it, fine.
the thing haven't done removed references controls removed storyboards of visualstatemanager, snapped state.
go page , check (generally @ bottom of) xaml "snapped" visualstate, check , see if of storyboards have targetname of control no longer have.
Comments
Post a Comment