Class MarkupValueConverterBase
public abstract class MarkupValueConverterBase : MarkupExtension, IValueConverter, INotifyPropertyChanged
- Inheritance
-
MarkupValueConverterBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
DefaultBackValue
public object DefaultBackValue { get; set; }
Property Value
DefaultValue
public object DefaultValue { get; set; }
Property Value
Methods
Convert(object, Type, object, CultureInfo)
Converts a value.
public abstract object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
objectThe value produced by the binding source.
targetType
TypeThe type of the binding target property.
parameter
objectThe converter parameter to use.
culture
CultureInfoThe culture to use in the converter.
Returns
ConvertBack(object, Type, object, CultureInfo)
Converts a value.
public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
objectThe value that is produced by the binding target.
targetType
TypeThe type to convert to.
parameter
objectThe converter parameter to use.
culture
CultureInfoThe culture to use in the converter.
Returns
ProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProviderA service provider helper that can provide services for the markup extension.
Returns
- object
The object value to set on the property where the extension is applied.
RaisePropertyChanged(string)
public void RaisePropertyChanged(string propertyName = "")
Parameters
propertyName
string
Refresh()
public virtual void Refresh()
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged