I'm using the RadCollectionNavigator in a WPF UserControl.
The CurrentItem Is Bound, TwoWay to a DataContext property.
Everytime I navigate using the RCN's navigation buttons the CurrentItem setter is called 3 times.
I using ReferenceEquals() to ignore additional calls to the setter with the same value but this causes other problems.
Will I need to override the built in navigation buttons to eliminate this behavior?
<telerik:RadCollectionNavigator Source="{Binding EvidenceItems}" CurrentItem="{Binding CurrentNavItem, Mode=TwoWay}"/>
private EvidenceGridData _CurrentNavItem;
public object CurrentNavItem
{
get { return _CurrentNavItem; }
set
{
if (ReferenceEquals(_CurrentNavItem, value))
return;
_CurrentNavItem = value as EvidenceGridData;
RaisePropertyChanged(nameof(CurrentNavItem));
}
}