During the hit tests checks, the IsHitTestVisible property is ignored, only IsVisible is checked later.
This can lead to issues when a TextBox is overlayed by a TextBlock with IsHitTestVisible=false (for example in a naming control with edit and readonly states). The HitTest will detect the TextBlock in the foreground, see IsVisible = false and return. The visible
TextBox is completely ignored and the drag is executed anyway.
What changed?
During the hit tests checks, the IsHitTestVisible property is ignored, only IsVisible is checked later.
This can lead to issues when a TextBox is overlayed by a TextBlock with IsHitTestVisible=false (for example in a naming control with edit and readonly states). The HitTest will detect the TextBlock in the foreground, see IsVisible = false and return. The visible TextBox is completely ignored and the drag is executed anyway.
This PR should fix that issue.