ValueCommandParameter<T> Class
Provides an implementation of the IValueCommandParameter
interface.
public class ValueCommandParameter<T> : DependencyObject, IValueCommandParameter
- Type Parameters:
-
T
-The value Type.
- Inheritance:
- object object
- Derived:
- BrushValueCommandParameter DoubleValueCommandParameter FontFamilyValueCommandParameter ObjectValueCommandParameter StringValueCommandParameter
- Implements:
- IValueCommandParameter
Constructors
ValueCommandParameter()
Initializes an instance of the class.
public ValueCommandParameter()
Properties
Action
Gets or sets the ValueCommandParameterAction that specifies the action of the parameter.
public ValueCommandParameterAction Action { get; set; }
Property Value
- ValueCommandParameterAction:
The ValueCommandParameterAction that specifies the action of the parameter.
ConversionException
Gets or sets the Exception that occurred when attempting to convert from a raw text value to a type specific value.
public Exception ConversionException { get; set; }
Property Value
- Exception:
The Exception that occurred when attempting to convert from a raw text value to a type specific value.
Remarks
This property is generally only necessary for ComboBox controls.
It will have a null
value if no exception occurred.
Handled
Gets or sets whether the parameter has been handled.
public bool Handled { get; set; }
Property Value
- bool:
true
if the parameter has been handled; otherwise,false
.
PreviewValue
Gets or sets the preview value of the control.
public T PreviewValue { get; set; }
Property Value
- T:
The preview value of the control.
UpdatedValue
Gets or sets the value of the control to update to.
public T UpdatedValue { get; set; }
Property Value
- T:
The value of the control to update to.
Remarks
This property can be set in a CanExecute
implementation.
Value
Gets or sets the current value of the control.
public T Value { get; set; }
Property Value
- T:
The current value of the control.
Fields
ActionProperty
Identifies the Action dependency property. This field is read-only.
public static readonly DependencyProperty ActionProperty
ConversionExceptionProperty
Identifies the ConversionException dependency property. This field is read-only.
public static readonly DependencyProperty ConversionExceptionProperty
HandledProperty
Identifies the Handled dependency property. This field is read-only.
public static readonly DependencyProperty HandledProperty
PreviewValueProperty
Identifies the PreviewValue dependency property. This field is read-only.
public static readonly DependencyProperty PreviewValueProperty
UpdatedValueProperty
Identifies the UpdatedValue dependency property. This field is read-only.
public static readonly DependencyProperty UpdatedValueProperty
ValueProperty
Identifies the Value dependency property. This field is read-only.
public static readonly DependencyProperty ValueProperty