Another way might be to take the approach used by the 3DTools for the WPF's Media3D api (which is horribly slow and ugly), it actually transforms the visual itself in 2D space, and overlays it transparently over the 3D version of it. Thus, all mouse tracking happens natively. This might not be so slow, since I'm still in charge of rendering.
Forget that stuff.. The trick to getting clicking to work right turned out to be crawling through the visual's logical tree, and setting every ButtonBase's ClickMode property to Press. Then, the MouseUp/MouseClick/MouseDown chain of fake events works fine.
No comments:
Post a Comment