Skip to content

Utils.FilePathToIconConverter

JaykeBird edited this page Feb 21, 2023 · 4 revisions

Back to home | Back to Reference | View raw text

FilePathToIconConverter class

Description

Converts a fully-qualified file path into a 16x16 icon for display in XAML.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi.Utils
  SolidShineUi.Utils.FilePathToIconConverter[[FilePathToIconConverter]]
  end
  subgraph System.Windows.Data
System.Windows.Data.IValueConverter[[IValueConverter]]
  end
System.Windows.Data.IValueConverter --> SolidShineUi.Utils.FilePathToIconConverter
Loading

Members

Methods

Public methods

Returns Name
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Converts a file's full path to a 16x16 BitmapSource icon.
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
This is not implemented. Throws a NotImplementedException .

Details

Summary

Converts a fully-qualified file path into a 16x16 icon for display in XAML.

Inheritance

  • IValueConverter

Constructors

FilePathToIconConverter

public FilePathToIconConverter()

Methods

Convert

public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Arguments
Type Name Description
object value
Type targetType
object parameter
CultureInfo culture
Summary

Converts a file's full path to a 16x16 BitmapSource icon.

ConvertBack

public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Arguments
Type Name Description
object value
Type targetType
object parameter
CultureInfo culture
Summary

This is not implemented. Throws a NotImplementedException .

Generated with ModularDoc

Clone this wiki locally