So to keep this brief, my heirarchy is: Window ->Canvas ->Listbox -> Grid (part of template for listbox) -> etc.
I wanted a draggable selection box so I did the fairly standard thing of rendering a square to the screen by using a drawing visual within a host class and then adding that drawing visual to the tree with the main helper methods. The PreviewMouseRightButtonUp
event handler however, of my grid, was never being fired unless I just clicked without dragging. In other words, if I dragged on my grid to create my selection square, the PreviewMouseRightButtonUp event handler of the grid is never being fired. So, instead
I associated this eventhandler with the PreviewMouseRightButtonUp event of my Visual host (which contains my square drawing visual) and the event fires.
Pretty much, the PreviewMouseRightButtonUp event never bubbles down the grid for some reason after I my drawing is rendered to the screen. Can anyone answer why or do you need to see source code?
View Complete Post