This question is locked. New answers and comments are not allowed.
Hi,
following scenario: I tap on the left side of a GroupHeader in my JumpList to open Checkbox Mode and have all items in this group automatically checked. So "GroupCheckMode" is set to "Automatic".
Then, instead of unchecking the header again to leave Checkbox mode, I just use the "Back" button of the phone. "CheckBoxDeactivatedByBackButton" is activated.
Because the Checkbox Mode is deactivated then but items remain checked in this case, I have some code that does this in the IsCheckModeActiveChanged event:
this
.MyJumpList.CheckedItems.Clear();
Setting a breakpoint, I can see that 6 items are in the CheckedItems collection. Unfortunately, when this line gets executed, the following exception happens:
System.ArgumentOutOfRangeException was unhandled
Message=
Parameter name: index
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.RemoveAt(Int32 index)
at Telerik.Windows.Controls.CheckedItemsCollection`1.Clear()
at bpk.feed7.View.MainView.HandleIsCheckModeActiveChanged(Object sender, IsCheckModeActiveChangedEventArgs e)
at Telerik.Windows.Controls.RadDataBoundListBox.FireCheckModeChanged(Object targetItem)
at Telerik.Windows.Controls.RadDataBoundListBox.OnIsCheckModeActiveChanged(DependencyPropertyChangedEventArgs args)
at Telerik.Windows.Controls.RadDataBoundListBox.OnIsCheckModeActiveChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.RadDataBoundListBox.set_IsCheckModeActive(Boolean value)
at Telerik.Windows.Controls.RadDataBoundListBox.OnBackKeyPressed(CancelEventArgs e)
at Telerik.Windows.Controls.RadJumpList.OnBackKeyPressed(CancelEventArgs e)
at Telerik.Windows.Controls.RadDataBoundListBox.OnPageBackKeyPress(Object sender, CancelEventArgs e)
at Microsoft.Phone.Controls.PhoneApplicationPage.ShellPageCallback_OnBackKeyPress(Object source, BackKeyPressEventArgs e)
at Microsoft.Phone.Shell.Interop.ShellPageCallback.FireOnBackKeyPress(IntPtr pageThis)
Can you please have a look at it?
Thanks :)
Bernhard