internal void RaiseMediaChangingEvent(MediaOptions options, MediaInfo mediaInfo) => MediaChanging?.Invoke(this, new MediaOpeningEventArgs(options, mediaInfo));
internal Task SendOnMediaOpened(MediaInfo mediaInfo) { return(Connector != null?Connector.OnMediaOpened(this, mediaInfo) : Task.CompletedTask); }
/// <summary> /// Initializes a new instance of the <see cref="MediaOpeningRoutedEventArgs" /> class. /// </summary> /// <param name="routedEvent">The routed event.</param> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <param name="info">The input information.</param> public MediaOpeningRoutedEventArgs(RoutedEvent routedEvent, object source, MediaOptions options, MediaInfo info) : base(routedEvent, source) { Options = options; Info = info; }
/// <summary> /// Initializes a new instance of the <see cref="MediaOpeningEventArgs" /> class. /// </summary> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <param name="info">The information.</param> public MediaOpeningEventArgs(MediaElementCore source, MediaOptions options, MediaInfo info) { Source = source; Options = options; Info = info; }