This question is locked. New answers and comments are not allowed.
I have SlideView and PaginationControl.
But when I'm deleting item from binded list which is ObservableCollection, I'm getting an exception
<
telerikPrimitives:RadSlideView
Grid.Row
=
"1"
Name
=
"slideView"
ItemsSource
=
"{Binding TransactionImages}"
Margin
=
"{StaticResource PhoneMargin}"
>
<
telerikPrimitives:RadSlideView.ItemTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Image
Source
=
"{Binding Image, Converter={StaticResource imageConverter}}"
Stretch
=
"Uniform"
Tap
=
"Image_Tap"
/>
<
TextBlock
Grid.Row
=
"1"
Text
=
"{Binding Note}"
TextWrapping
=
"Wrap"
/>
</
Grid
>
</
DataTemplate
>
</
telerikPrimitives:RadSlideView.ItemTemplate
>
</
telerikPrimitives:RadSlideView
>
<
telerikPrimitives:RadPaginationControl
Grid.Row
=
"2"
PageProvider
=
"{Binding ElementName=slideView}"
DisplayMode
=
"Thumbnails"
NavigationMode
=
"Direct"
>
<
telerikPrimitives:RadPaginationControl.ItemTemplate
>
<
DataTemplate
>
<
Image
Source
=
"{Binding Image, Converter={StaticResource imageConverter}, ConverterParameter=90}"
Width
=
"90"
Height
=
"90"
Opacity
=
"0.6"
/>
</
DataTemplate
>
</
telerikPrimitives:RadPaginationControl.ItemTemplate
>
<
telerikPrimitives:RadPaginationControl.CurrentItemTemplate
>
<
DataTemplate
>
<
Border
BorderThickness
=
"3"
BorderBrush
=
"{StaticResource PhoneAccentBrush}"
>
<
Image
Source
=
"{Binding Image, Converter={StaticResource imageConverter}, ConverterParameter=90}"
Width
=
"90"
Height
=
"90"
/>
</
Border
>
</
DataTemplate
>
</
telerikPrimitives:RadPaginationControl.CurrentItemTemplate
>
<
telerikPrimitives:RadPaginationControl.ThumbnailListStyle
>
<
Style
TargetType
=
"telerikPagination:PaginationThumbnailListControl"
>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Bottom"
/>
<
Setter
Property
=
"Margin"
Value
=
"12,24"
/>
</
Style
>
</
telerikPrimitives:RadPaginationControl.ThumbnailListStyle
>
</
telerikPrimitives:RadPaginationControl
>
But when I'm deleting item from binded list which is ObservableCollection, I'm getting an exception
{System.NullReferenceException: Object reference not
set
to an instance of an
object
.
at Telerik.Windows.Controls.RadDataBoundListBox.SynchCheckedItemsOnItemsChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Controls.RadDataBoundListBox.OnItemsChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Controls.Pagination.PaginationThumbnailListControl.OnOwnerSourceCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Controls.RadPaginationControl.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
at System.Collections.ObjectModel.Collection`1.Remove(T item)
at MoneyWallet.View.TransactionImagesEditPage.<DeleteImage_Click>d__2.MoveNext()}