Skip to content

Avalonia application with Webview can be deploy to Browser version? #15519

Answered by thevortexcloud
ecojust asked this question in Q&A
Discussion options

You must be logged in to vote

There is a sample here for creating an iframe, no idea how well it works as I have not tried it.

https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog.Browser/EmbedSample.Browser.cs

You will also need this code:

public class EmbedSample : NativeControlHost
{
public static INativeDemoControl? Implementation { get; set; }
static EmbedSample()
{
}
public bool IsSecond { get; set; }
protected override IPlatformHandle CreateNativeControlCore(IPlatformHandle parent)
{
return Implementation?.CreateControl(IsSecond,

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@dbriard
Comment options

@thevortexcloud
Comment options

Answer selected by ecojust
@ecojust
Comment options

@thevortexcloud
Comment options

@ecojust
Comment options

@ecojust
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants