ModelPropertyEntryToOwnerActivityConverter.Convert(Object, Type, Object, CultureInfo) 方法
定义
将 ModelPropertyEntry 转换为拥有属性的 ModelItem。Converts a ModelPropertyEntry to a ModelItem that owns the property.
public:
virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
参数
- 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. 您可以传入布尔值。You can pass a Boolean value in. 默认情况下,此转换器将始终返回类型为 Activity 的父模型项。By default, this converter will always return the parent model item that is of type Activity. 如果将 false 传递到此方法,则转换器将只返回第一个父模型项,该模型项可能不是指向 Activity 的模型项。If false is passed to this method, the converter will simply return the first parent model item, which might not be a model item that points to a Activity.
- culture
- CultureInfo
要用在转换器中的区域性。The culture to use in the converter.