Provides the DefaultText value if the value given to Convert is null, UnsetValue, or an empty string.
Public Member Functions |
|
object | Convert (object value, Type targetType, object parameter, CultureInfo culture) |
Convert the given value: return the value
string if it's filled in, otherwise return the DefaultText.
|
|
object | ConvertBack (object value, Type targetType, object parameter, CultureInfo culture) |
Not implemented. |
|
Static Public Attributes |
|
static readonly DependencyProperty | DefaultTextProperty |
Default text used when the value to convert
is null or empty. |
|
Properties |
|
String |
DefaultText [get, set] |
Default text used when the value to convert
is null or empty. |
object WPFCustomControls::Converters::DefaultTextConverter::Convert | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
CultureInfo | culture | ||
) | [inline] |
Convert the given value: return the value string if it's filled in, otherwise return the DefaultText.
value | Text to check and return if it's not null or empty. |
targetType | Must be String. |
parameter | Ignored. |
culture | Ignored. |
object WPFCustomControls::Converters::DefaultTextConverter::ConvertBack | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
CultureInfo | culture | ||
) | [inline] |
Not implemented.
value | Ignored. |
targetType | Ignored. |
parameter | Ignored. |
culture | Ignored. |
readonly DependencyProperty
WPFCustomControls::Converters::DefaultTextConverter::DefaultTextProperty
[static] |
DependencyProperty.Register(
"DefaultText",
typeof(String),
typeof(DefaultTextConverter))
Default text used when the value to convert is null or empty.
String
WPFCustomControls::Converters::DefaultTextConverter::DefaultText
[get, set] |
Default text used when the value to convert is null or empty.