Skip to content

Utils.FilePathToNameConverter

JaykeBird edited this page Feb 21, 2023 · 4 revisions

Back to home | Back to Reference | View raw text

FilePathToNameConverter class

Description

Convert a fully-qualified path to a file into just displaying the filename, for use in XAML.

Diagram

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

Members

Methods

Public methods

Returns Name
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Convert a file's full path to only display the filename.
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
This is not implemented. Throws a NotImplementedException .

Details

Summary

Convert a fully-qualified path to a file into just displaying the filename, for use in XAML.

Inheritance

  • IValueConverter

Constructors

FilePathToNameConverter

public FilePathToNameConverter()

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

Convert a file's full path to only display the filename.

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