C# Class LogViewer.ImageTypeToImageSourceConverter

Inheritance: System.Windows.Markup.MarkupExtension, IValueConverter
Mostra file Open project: Lundalogik/log4net-logviewer

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System culture ) : object
ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
ImageTypeToImageSourceConverter ( ) : System
ProvideValue ( IServiceProvider serviceProvider ) : object

Private Methods

Method Description
GetImage ( LogEntry image ) : System.Windows.Media.ImageSource
GetImageType ( System.Windows.Media.ImageSource image ) : LogEntry.ImageType

Method Details

Convert() public method

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

ImageTypeToImageSourceConverter() public method

public ImageTypeToImageSourceConverter ( ) : System
return System

ProvideValue() public method

public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
return object