Button.MouseLeftButtonDown is silently disabled
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
> The `OnMouseLeftButtonDown` method marks the `MouseLeftButtonDown` event as handled.
_Source: https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.button?view=netframework-4.8_
I guess many WPF programmers at one point will end up wasting time trying to figure out why the event `MouseLeftButtonDown` does not work on the `Button` control... I just wasted 30 minutes...
My suggestions is:
- Remove the event completely from `Button` control
- Mark the event as _"You can't touch this"_
- Stop making standard events unusable by not setting the event as handled in `OnMouseLeftButtonDown`
Another frustrated WPF programmer:
https://stackoverflow.com/questions/22813608/wpf-button-mouseleftbuttondown-doesnt-work-at-all
Random internet quote:
> Oh My God! They Killed Button.MouseLeftButtonDown!
> You bastards!
Contributor guide
Assessment
This issue has not been assessed yet.