public TaskParameter LoadEmbeddedResource(string resourceName, Assembly resourceAssembly) { InitializeIfNeeded(); var uri = $"resource://{resourceName}?assembly={Uri.EscapeUriString(resourceAssembly.FullName)}"; return(TaskParameter.FromEmbeddedResource(uri)); }
/// <summary> /// Constructs a new TaskParameter to load an image from a compiled drawable resource. /// eg. resource://YourProject.Resource.Resource.png /// eg. resource://YourProject.Resource.Resource.png?assembly=[FULL_ASSEMBLY_NAME] /// </summary> /// <returns>The new TaskParameter.</returns> /// <param name="resourceUri">Uri of the resource</param> public TaskParameter LoadEmbeddedResource(string resourceUri) { InitializeIfNeeded(); return(TaskParameter.FromEmbeddedResource(resourceUri)); }
public TaskParameter LoadEmbeddedResource(string resourceUri) { return(TaskParameter.FromEmbeddedResource(resourceUri)); }