-
Notifications
You must be signed in to change notification settings - Fork 3
Utils.FilePathToNameConverter
JaykeBird edited this page Feb 21, 2023
·
4 revisions
Back to home | Back to Reference | View raw text
Convert a fully-qualified path to a file into just displaying the filename, for use in XAML.
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
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 . |
Convert a fully-qualified path to a file into just displaying the filename, for use in XAML.
IValueConverter
public FilePathToNameConverter()
public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Type | Name | Description |
---|---|---|
object |
value | |
Type |
targetType | |
object |
parameter | |
CultureInfo |
culture |
Convert a file's full path to only display the filename.
public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Type | Name | Description |
---|---|---|
object |
value | |
Type |
targetType | |
object |
parameter | |
CultureInfo |
culture |
This is not implemented. Throws a NotImplementedException .
Generated with ModularDoc