I am getting this exception while switching among the tabs. The reason for this issue is not checking the current document and transforming the new tab according to the last document. This exception is coming from helperfunc.cs .
public static Point PointToScreenWithoutFlowDirection(FrameworkElement element, Point point)
{
var source = PresentationSource.FromVisual(element);
if (source == null || source.CompositionTarget == null) {
return;
}
var transform = source.CompositionTarget.TransformFromDevice;
if (FrameworkElement.GetFlowDirection(element) == FlowDirection.RightToLeft)
{
Point leftToRightPoint = new Point(
element.ActualWidth - point.X,
point.Y);
return transform.Transform(element.PointToScreen(leftToRightPoint));
}
return transform.Transform(element.PointToScreen(point));
}
Please ping me if you agreed on this solution, it will be great if you can push this from your side and update the nuget package as well.