CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
384 stars 89 forks source link

[Question]There is anyway to use the Windows.Graphics.Capture in WPF by xaml-islands? #322

Open Lookforworld opened 3 years ago

Lookforworld commented 3 years ago

Hi!

I need to create a WPF project to capture windows in real time. I want to use Windows.Graphics.Capture to develop it, and I find that XAML-Islands might be very helpful. I can use GraphiccapturePicker () normally through WindowsXamlHost, But when i use the Direct3D11CaptureFramePool () there's an error {System. AccessViolationException: "Attempted to read or write protected memory. This Is, an indication that other memory is corrupt. "} rised, and in the Microsoft.Windows.SDK.Contracts can not find Windows.Graphics.Capture, What should I do?

Thanks!

ghost commented 3 years ago

Hello Lookforworld, thank you for your interest in Win32!

I have automatically added a "needs triage" label to help get things started. Our team will look into the question and answer ASAP. Other community members may also answer the question and provide feedback 🙌

michael-hawker commented 3 years ago

FYI @marb2000

lrodziewicz commented 2 years ago

Any update on this? :)

michalleptuch commented 2 years ago

@lrodziewicz PM me for more info ;)