C#, WPF – Hit Testing Example

When we create interactive 2D drawing applications in WPF, we can deal directly with the user’s interaction with the graphics objects using mouse event handlers. However, WPF provides powerful hit- testing for graphics objects through the static VisualTreeHelper.HitTest method. In order to use this advanced hit-testing feature, we need to create a callback. The VisualTreeHelper… Continue reading C#, WPF – Hit Testing Example