We use System.Windows.Shapes.Path to visually connect elements in our application.
Is it possible to ‘select’ the Path object and give it focus? We want to allow our users to change some style elements of any Path object.
In our LeftMouseButtonDown handler, we detect that we have clicked on a Path object, but then what? I hook up a GotFocus handler to the Path object, but it never gets called.
I suspect I need a container around the Path object….
Thanks for any insight.
You probably want to create a custom control that wraps around a Path element. The path is a very basic graphics primitive and does not have the notion of “focus” or “state” the way a Control does.