C# Class Open.Core.Common.IconExtensions

Extensions for accessing icon images.
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
IsSilk ( this icon ) : bool

Determines whether the given icon flag is from the Silk icon set.

ToImage ( this icon ) : System.Image

Converts the icon to an Image.

ToImageSource ( this icon ) : BitmapImage

Converts the icon to an a value that can be used as the 'Source' of an Image.

ToUri ( this icon ) : Uri

Retrieves the path to the corresponding image file.

Method Details

IsSilk() public static method

Determines whether the given icon flag is from the Silk icon set.
public static IsSilk ( this icon ) : bool
icon this The flag of the icon to examine.
return bool

ToImage() public static method

Converts the icon to an Image.
public static ToImage ( this icon ) : System.Image
icon this The flag of the icon to convert.
return System.Image

ToImageSource() public static method

Converts the icon to an a value that can be used as the 'Source' of an Image.
public static ToImageSource ( this icon ) : BitmapImage
icon this The flag of the icon to convert.
return BitmapImage

ToUri() public static method

Retrieves the path to the corresponding image file.
public static ToUri ( this icon ) : Uri
icon this The flag of the icon to convert.
return System.Uri