Replies: 4 comments 7 replies
-
oh wow, typically happens ..you ask a question - they you realize how stupid you are ... works now - was passing hParent (avalonia) - but i was never assigning or showing it!! look at attached zip - goto TestDLL ... and pass in the parent Avalonia window ... they show it ...
now show it
works! though next step is to figure out the lag when you resize ...anyone has an idea on that ? it's the typical childwindow issue i think ... |
Beta Was this translation helpful? Give feedback.
-
Just for example, you also can do it with existing .NET wrapper - Microsoft.Web.WebView2. It will make embed control quite simple to use. |
Beta Was this translation helpful? Give feedback.
-
Hi , there are 2 ways to consume webview2 . The easier way via c# wrapper , which unfortunately makes it a big install but MUCH easier to consume or via c++ interop.
I am unfortunately out of country right now , but will give you examples of both when I get back in a couple of days.
Kerrigan
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Bianca Longhi ***@***.***>
Sent: Tuesday, September 10, 2024 12:46:17 PM
To: AvaloniaUI/Avalonia ***@***.***>
Cc: Kerrigan Burgess ***@***.***>; Mention ***@***.***>
Subject: Re: [AvaloniaUI/Avalonia] Avalonia and Webview2 - got it partially working ... (Discussion #8001)
Hi @kerriganb<https://github.com/kerriganb> . To use webview2 with avalonia, did you follow similar steps to webview2 for wpf (https://learn.microsoft.com/pt-br/microsoft-edge/webview2/get-started/wpf)? I'm trying to test webview2 with avalonia, but I didn't found any documentation to help me
—
Reply to this email directly, view it on GitHub<#8001 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABNDZQV4YKT2KT7U4NA7HX3ZV5EATAVCNFSM6AAAAABN7O2PY2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRQGY3DQNQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Bianca , I have some some code , but did you look at the attached sample from maxkatz6 higher in thread? That used to work. I also have my own c++ version of you like , though I would have to pair it down a bit for you . It has a lot of other code in it.
I just tried this other example and it still worked . Give it a shot and if you still want my c++ version I can send to you .
Try this link :
https://github.com/BeyondDimension/Avalonia.WebView2
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Bianca Longhi ***@***.***>
Sent: Thursday, September 12, 2024 6:49:16 AM
To: AvaloniaUI/Avalonia ***@***.***>
Cc: Kerrigan Burgess ***@***.***>; Mention ***@***.***>
Subject: Re: [AvaloniaUI/Avalonia] Avalonia and Webview2 - got it partially working ... (Discussion #8001)
Hi, thanks! I'll wait for you to get back to me.
—
Reply to this email directly, view it on GitHub<#8001 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABNDZQXY3OA5K7G74UAXCZDZWFWSZAVCNFSM6AAAAABN7O2PY2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRSGQ4DINQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hey all, ... I have Webview2 partially working in Avalonia ...Weirdly, if there is no XAML other than webview2 control - it renders perfectly, however if you add some xaml above or below it, it fails to render
this works perfectly
but weirdly ...this fails
.. it's almost like xaml content is drawing over the webview2 content - but looking at devtools - it seems like it's not ...
i'm attaching a sample project - ...
please - any help appreciated
thank you,
Kerrigan.
AvaloniaApplicationEmbed.zip
Beta Was this translation helpful? Give feedback.
All reactions