A specialized converter which takes a String in Uri format and returns the cleaner Absolute or filename Path version.
Note that this converter does NOT work with Uri objects - only strings that are formatted in Uri format (such as a string "file:\\\d:/example.txt")
Public Member Functions |
|
StripUriInfoConverter () | |
Standard constructor. |
|
object | Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
Converts the Uri formatted string into a
simple Absolute or filename path. |
|
object | ConvertBack (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
Not implemented. |
|
Properties |
|
bool |
ConvertToAbsolute [get, set] |
Set this to false if the user wants only the
filename and extension, not the full path. |
WPFCustomControls::Customization::StripUriInfoConverter::StripUriInfoConverter | ( | ) | [inline] |
Standard constructor.
object WPFCustomControls::Customization::StripUriInfoConverter::Convert | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
System.Globalization.CultureInfo | culture | ||
) | [inline] |
Converts the Uri formatted string into a simple Absolute or filename path.
value | standard |
targetType | standard |
parameter | standard |
culture | standard |
object WPFCustomControls::Customization::StripUriInfoConverter::ConvertBack | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
System.Globalization.CultureInfo | culture | ||
) | [inline] |
Not implemented.
value | standard |
targetType | standard |
parameter | standard |
culture | standard |
bool
WPFCustomControls::Customization::StripUriInfoConverter::ConvertToAbsolute
[get, set] |
Set this to false if the user wants only the filename and extension, not the full path.
The default value is true.