Version

BuildEmbeddedResourceUri Method

Creates a Uri for a resource embedded in an assembly
Syntax
public static Uri BuildEmbeddedResourceUri( 
   Assembly assembly,
   string resourcePath
)

Parameters

assembly
The assembly that contains the resource
resourcePath
The relative path to the resource (e.g. "Looks/Onyx.xaml")

Return Value

A Uri to the resource.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also