C# Class GoogleCloudExtension.Extensions.ImageResource

This class is a simple markup extension that returns an image given its path.
Inheritance: System.Windows.Markup.MarkupExtension
显示文件 Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
ImageResource ( ) : GoogleCloudExtension.Utils
ImageResource ( string path ) : GoogleCloudExtension.Utils
ProvideValue ( IServiceProvider serviceProvider ) : object

Loads the image given the Path property. Caching is performed so an image is only going to be loaded once.

Method Details

ImageResource() public method

public ImageResource ( ) : GoogleCloudExtension.Utils
return GoogleCloudExtension.Utils

ImageResource() public method

public ImageResource ( string path ) : GoogleCloudExtension.Utils
path string
return GoogleCloudExtension.Utils

ProvideValue() public method

Loads the image given the Path property. Caching is performed so an image is only going to be loaded once.
public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
return object