WinUI-Gallery
WinUI-Gallery copied to clipboard
Fix: Prevent FilePicker button double-click
Description
This PR will prevent double-clicking the button, preventing two FilePicker dialogs to appear at the same time.
Motivation and Context
Currently, if you click the buttons on FilePicker page fast enough, two FilePicker dialogs will show up. Code examples are also added to show a correct implementation.
How Has This Been Tested?
Manual.
Screenshots (if appropriate):
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
/azp run
/azp run
/azp run
I have no access to the CI build logs. Please fix it so we can contribute more easily. What are the errors?