How to get all screenshots with MAUI?

iweir man 0 Reputation points
2023-12-06T16:30:40.78+00:00

I'm trying to make a screenshot program using MAUI, but Screenshot can only get screenshots of the app.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,944 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,651 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 67,251 Reputation points
    2023-12-06T16:53:37.3233333+00:00

    this will require calling native code on the hosting O/S. On MacOs, Maui apps run in a sandbox, and will not have permission. So this is probably a windows only application. You will need to decide how to handle multiple monitors. see this thread:

    https://stackoverflow.com/questions/15847637/take-screenshot-of-multiple-desktops-of-all-visible-applications-and-forms

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.