-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
area-controls-webviewWebViewWebViewarea-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-8.0.90fixed-in-9.0.0-rc.1.24453.9good first issueGood for newcomersGood for newcomershelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsplatform/windowst/enhancement ☀️New feature or requestNew feature or request
Milestone
Description
On Windows it is not possible to take a screenshot of the WebView with the code we have currently in the Screenshot API. We might want to consider adding some specialized code for it so that the consuming developer does not see any difference in public API, but the result will be the same.
For a workaround/code that needs to be implemented see this comment below.
Original issue:
bool iscom= webView.CaptureAsync().IsCompleted;
var stream = await webView.CaptureAsync();
using (var fileStream = new FileStream("image.png", FileMode.Create))
{
await stream.CopyToAsync(fileStream, ScreenshotFormat.Png, 100);
}This code is working fine on Android Phone but on Win Desktop it is returning Blank image and
bool iscom return true in case of Android and on Win Desktop it always return false.
Metadata
Metadata
Assignees
Labels
area-controls-webviewWebViewWebViewarea-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-8.0.90fixed-in-9.0.0-rc.1.24453.9good first issueGood for newcomersGood for newcomershelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorsplatform/windowst/enhancement ☀️New feature or requestNew feature or request
Type
Projects
Status
Done