I am using my navigation functionality on hardware, back button click it gives me error?

  • Thread starter Thread starter Windows Central Question
  • Start date Start date
W

Windows Central Question

I am using my navigation functionality on hardware back button click it gives me error ??

The error is Exception = {System.Runtime.InteropServices.COMException (0x80004005): Unspecified error The Panel you are using for the Control is not allowed as an ItemsPanel for the Control.}

_count = lstHistory.Items.Count;
if (_count > 1)
{
Navigation objNavigation = (Navigation)lstHistory.Items[_count - 1];

NavigateService.Instance.Navigate(typeof(Menu), typeof(Master), objNavigation);

lstHistory.Items.Remove(lstHistory.Items[_count - 1]);
}
else
{
lstHistory.Items.Clear();
NavigateService.Instance.Navigate(typeof(Menu), typeof(Master), null);
}
 

Members online

No members online now.

Forum statistics

Threads
335,544
Messages
2,258,548
Members
428,741
Latest member
Droco3