Skip to content

Instantly share code, notes, and snippets.

View shawyunz's full-sized avatar
🚀
Crafting Brilliance w/ .NET

Shaw Yu shawyunz

🚀
Crafting Brilliance w/ .NET
View GitHub Profile
@shawyunz
shawyunz / OnAppearing
Last active November 25, 2019 22:24
avoid redundant calling in OnAppearing for Xamarin
protected override void OnAppearing()
{
base.OnAppearing();
if (hasInstance)
{
Device.BeginInvokeOnMainThread(() =>
{
//do something
hasInstance = false;
});