Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostingWindowsProcessDemo cannot run on Avalonia higher version #1

Open
ghost opened this issue Oct 27, 2024 · 0 comments
Open

HostingWindowsProcessDemo cannot run on Avalonia higher version #1

ghost opened this issue Oct 27, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2024

@npolyak Hello, I came here from this article Embedding Native…… , thank you very much for your amazing demo, however, when I try to upgrade HostingWindowsProcessDemo from Avalonia 11.0.0-preview4 to 11.0.6 and any version, I get the error:
CS0122 "IWindowBaseImpl.Handle" is not accessible because it has a certain protection level
WinApi.SetParent(ProcessWindowHandle, ((Window)e.Root).PlatformImpl.Handle.Handle); in EmbeddedProcessWindow.cs

I mainly saw that you mentioned in the article:
Note that both the article and the samples code have been updated to work with the latest version of Avalonia - 11.0.6

Is there something wrong with my operation or is this method unable to run in the higher version of Avalonia? If it is the latter, is there an alternative method? Sincerely thank you.
(By the way, I tried reflection and it didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants