13 references to Source
Microsoft.AspNetCore.Components.Web (13)
Media\FileDownload.cs (3)
101if (Source is null || !IsInteractive || string.IsNullOrWhiteSpace(FileName)) 109_currentSource = Source; 112var source = Source;
Media\Image.cs (2)
33var showInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError; 55var defaultShowInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError;
Media\MediaComponentBase.cs (6)
82/// and whenever the <see cref="Source"/> changes. Override and return <c>false</c> for components 108var previousSource = Source; 112if (Source is null) 114throw new InvalidOperationException($"{nameof(MediaComponentBase)}.{nameof(Source)} is required."); 124if (!HasSameKey(previousSource, Source)) 134var source = Source;
Media\Video.cs (2)
33var showInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError; 55var defaultShowInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError;