Table of Contents

Class MarkupValueConverterBase

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
public abstract class MarkupValueConverterBase : MarkupExtension, IValueConverter, INotifyPropertyChanged
Inheritance
MarkupValueConverterBase
Implements
Derived
Inherited Members
Extension Methods

Properties

DefaultBackValue

public object DefaultBackValue { get; set; }

Property Value

object

DefaultValue

public object DefaultValue { get; set; }

Property Value

object

Methods

Convert(object, Type, object, CultureInfo)

Converts a value.

public abstract object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value object

The value produced by the binding source.

targetType Type

The type of the binding target property.

parameter object

The converter parameter to use.

culture CultureInfo

The culture to use in the converter.

Returns

object

A converted value. If the method returns null, the valid null value is used.

ConvertBack(object, Type, object, CultureInfo)

Converts a value.

public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value object

The value that is produced by the binding target.

targetType Type

The type to convert to.

parameter object

The converter parameter to use.

culture CultureInfo

The culture to use in the converter.

Returns

object

A converted value. If the method returns null, the valid null value is used.

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 IServiceProvider

A 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

Event Type

PropertyChangedEventHandler