Επεξεργασία

SetterTriggerConditionValueConverter Class

Definition

Provides type conversion analogous behavior for Setter, Trigger and Condition types that deal with DependencyProperty values. This converter only supports ConvertFrom.

public ref class SetterTriggerConditionValueConverter sealed : System::ComponentModel::TypeConverter
public sealed class SetterTriggerConditionValueConverter : System.ComponentModel.TypeConverter
type SetterTriggerConditionValueConverter = class
    inherit TypeConverter
Public NotInheritable Class SetterTriggerConditionValueConverter
Inherits TypeConverter
Inheritance
SetterTriggerConditionValueConverter

Remarks

SetterTriggerConditionValueConverter is not intended for use by user code, it supports WPF feature areas such as processing Setter, Trigger and Condition in templates.

Constructors

Name Description
SetterTriggerConditionValueConverter()

Initializes a new instance of the SetterTriggerConditionValueConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Returns a value that indicates whether the converter can convert from a source object to a side-effect-produced Setter, Trigger or Condition .

CanConvertTo(ITypeDescriptorContext, Type)

Returns a value that indicates whether the converter can convert to the specified destination type. Always returns false.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts the converted source value if an underlying type converter can be obtained from context. Otherwise returns an unconverted source.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the specified object to the specified type. Always throws an exception.

Applies to