Skip to content

Handling UnauthorizedAccessException on Capture Element / Camera Preview page - #1865

Merged
Marcel W. (marcelwgn) merged 7 commits into
microsoft:mainfrom
AndrewKeepCoding:handling-unauthorized-access-exception
May 7, 2025
Merged

Marcel W. (marcelwgn) merged 7 commits into
microsoft:mainfrom
AndrewKeepCoding:handling-unauthorized-access-exception

Conversation

@AndrewKeepCoding

Copy link
Copy Markdown
Contributor

Description

This PR handles the UnauthorizedAccessException and displays a dialog to recommend checking the camera access settings.

Motivation and Context

Fixes #1864.

How Has This Been Tested?

Ran the app and confirmed the changes.

Screenshots (if appropriate):

Types of changes

  • 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)
Comment thread WinUIGallery/Samples/ControlPages/CaptureElementPreviewPage.xaml.cs Outdated
@niels9001
Niels Laute (niels9001) self-requested a review May 5, 2025 09:11
Comment thread WinUIGallery/Samples/ControlPages/CaptureElementPreviewPage.xaml.cs Outdated

@marcelwgn Marcel W. (marcelwgn) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@marcelwgn
Marcel W. (marcelwgn) enabled auto-merge (squash) May 7, 2025 09:35
@marcelwgn

Copy link
Copy Markdown
Contributor

/azp run

@marcelwgn
Marcel W. (marcelwgn) merged commit 6997b02 into microsoft:main May 7, 2025
@AndrewKeepCoding
Andrew KeepCoding (AndrewKeepCoding) deleted the handling-unauthorized-access-exception branch May 7, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants