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

reload inside the control #60

Open
Efthymios opened this issue Apr 9, 2024 · 3 comments
Open

reload inside the control #60

Efthymios opened this issue Apr 9, 2024 · 3 comments

Comments

@Efthymios
Copy link

Hi,

can anyone knows how to implement a refresh functionality inside the control?

thank you in advance.

@HelloooJoe
Copy link

I asked 2 weeks ago and still waiting. #57

@Synthaxe42
Copy link

Hi, this is what I've done to implement refresh, note that the method is called hybridWebView.Reload not Refresh:

In MyView.xaml:

<hwv:HybridWebView x:Name="hybridWebView"
    Grid.Row="1"
    HybridAssetRoot="hybrid_root"
    MainFile="index.html" />

 <Button
    Style="{StaticResource ButtonStyle}"
    Text="Refresh"
    Clicked="OnRefreshButtonClicked" />`

In codebehind MyView.xaml.cs:

public void OnRefreshButtonClicked(object sender, EventArgs e)
{
    hybridWebView.Reload();
}

Hope that helps...

@Efthymios
Copy link
Author

Efthymios commented Apr 10, 2024 via email

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

3 participants