I've created a basic WPF form with buttons on it and so forth.
I've taken out all of the chrome and created close button, minimise etc. and also added a DoubleClick handler to the form so that the form maximises/minimises with each double click.
However, whenever I double-click any of the controls on the form (or click twice fast enough so a double-click is registered) the form handles the double-click.
Is there a way I can disable this behaviour so the form itself only handles the double click when the mouse is not over a control? i.e. just the title bar?