Image File or Camera Capture: Let the User Decide

Nathan Sokalski 4,121 Reputation points
2020-07-28T21:50:59.127+00:00

I have a scenario in which I want the user to either select an existing image file or take a new picture from the camera. I have done both of these before, and it is obviously not a complicated task to create a UI to ask which one they want (radio buttons, file & camera buttons, etc.), but these are obviously more work, and require more code. Is there any built-in UI or standard way of doing this? Thanks!

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,111 Reputation points Microsoft Vendor
    2020-07-29T03:12:14.37+00:00

    Hello,

    Welcome to Microsoft Q&A!

    If you are asking a built-in UI that contains both functions like show taking a picture using the camera and selecting an image from existing files, there is no built-in API that could meet the requirement. UWP has built-in API for taking pictures using the camera. For example: [CameraStarterKit][1]. As you mentioned that you've implemented these functions before, you might need to combine these two functions in your project manually.

    Thank you.

    0 comments No comments