The Click event handles the LeftMouseUp event, as Cyborgx37 said.
You can use the PreviewMouseLeftButtonUp event instead of MouseLeftButtonUp , on a button, as shown below:
<Button PreviewMouseLeftButtonUp="Button_PreviewMouseLeftButtonUp"> <Button.Template> <ControlTemplate> <StackPanel> <Image Source="..." /> </StackPanel> </ControlTemplate> </Button.Template> </Button>
Your Button template has only an image, I think you do not need this button, you can use it as above so that you can capture the MouseLeftUp event.
<Image MouseLeftButtonUp="Image_MouseLeftButtonUp" Source="..." />
This method is much simpler, but it depends on what you need.
By the way, sorry for my crappy English, hope this can help you.
source share