C# Class GoogleCloudExtension.Utils.ResourceUtils

This class contains helpers to access resources in the assembly.
Mostrar archivo Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
GetResourceUri ( string path ) : Uri

Returns the resource Uri given its local path in the project.

LoadImage ( string path ) : System.Windows.Media.ImageSource

Loads an image resource given its relative path in the resources.

Private Methods

Method Description
GetAssemblyName ( ) : string

Method Details

GetResourceUri() public static method

Returns the resource Uri given its local path in the project.
public static GetResourceUri ( string path ) : Uri
path string The local path in the project.
return System.Uri

LoadImage() public static method

Loads an image resource given its relative path in the resources.
public static LoadImage ( string path ) : System.Windows.Media.ImageSource
path string The path of the resource to load.
return System.Windows.Media.ImageSource