/// <summary> /// Constructs a new TaskParameter to load an image from a URL. /// </summary> /// <returns>The new TaskParameter.</returns> /// <param name="url">URL to the file</param> /// <param name="cacheDuration">How long the file will be cached on disk</param> public TaskParameter LoadUrl(string url, TimeSpan?cacheDuration = null) { InitializeIfNeeded(); return(TaskParameter.FromUrl(url, cacheDuration)); }
public TaskParameter LoadUrl(string url, TimeSpan?cacheDuration = null) { return(TaskParameter.FromUrl(url, cacheDuration)); }