예제 #1
0
 /// <summary>
 /// Calls the <see cref="MediaFailedToLoad"/> event.
 /// </summary>
 /// <param name="args">The event args.</param>
 protected virtual void OnMediaFailedToLoad( OnMediaFailedToLoadEventArgs args )
 {
     Media = null;
     MediaFailedToLoad?.Invoke( this, args );
 }
예제 #2
0
 private async void MediaComponentOnOnMediaFailedToLoad( object Sender, OnMediaFailedToLoadEventArgs MediaFailedToLoadEventArgs )
 {
     await this.ShowMessageAsync( "Failed to load media", $"Unable to load {MediaFailedToLoadEventArgs.MediaFile.Name}. Reason: {MediaFailedToLoadEventArgs.Exception.Message}" );
 }