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);
}
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);
}