Ejemplo n.º 1
0
 async void OnResumingAsync(object sender, object e)
 {
     try
     {
         await ImageElementManager.UpdateSource(this);
     }
     catch (Exception exception)
     {
         Application.Current?.FindMauiContext()?.CreateLogger <ImageRenderer>()?.LogWarning(exception, "ImageSource failed to update after app resume");
     }
 }
Ejemplo n.º 2
0
 async void OnResumingAsync(object sender, object e)
 {
     try
     {
         await ImageElementManager.UpdateSource(this);
     }
     catch (Exception exception)
     {
         Log.Warning("Update image source after app resume",
                     $"ImageSource failed to update after app resume: {exception.Message}");
     }
 }
Ejemplo n.º 3
0
 protected async Task UpdateSource()
 {
     await ImageElementManager.UpdateSource(this).ConfigureAwait(false);
 }