/// <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 ); }
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}" ); }