Now this hotfix fixed that issue but I now get an different error that I can not resolve.
It has nothing to do with the treeview because this error ocures on a different part of our application.
I tried debugging but he does not show me the location where it goes wrong.
This is what I get:
Value does not fall within the expected range.
bij MS.Internal.XcpImports.CheckHResult(UInt32 hr)
bij MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
bij MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
bij System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
bij System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
bij System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
bij System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
bij System.Windows.Data.BindingExpression.SendDataToTarget()
bij System.Windows.Data.BindingExpression.SourceAcquired()
bij System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
bij System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
bij System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnPropertyChanged(DependencyProperty dp)
bij System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
bij System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
bij System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
bij System.Windows.Data.BindingExpression.SendDataToTarget()
bij System.Windows.Data.BindingExpression.SourceAcquired()
bij System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
bij System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
bij System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)
bij System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)
bij MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent, Byte bCanCreateParent)
Does this say anything to you?