コード例 #1
0
        public TaskParameter LoadEmbeddedResource(string resourceName, Assembly resourceAssembly)
        {
            InitializeIfNeeded();
            var uri = $"resource://{resourceName}?assembly={Uri.EscapeUriString(resourceAssembly.FullName)}";

            return(TaskParameter.FromEmbeddedResource(uri));
        }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 public TaskParameter LoadEmbeddedResource(string resourceUri)
 {
     return(TaskParameter.FromEmbeddedResource(resourceUri));
 }