点击或拖拽改变大小

BindingsAddS, T 方法 (String, String, FuncUIElement, BindingMode, FuncS, T, FuncT, S, ActionBinding, Object, Exception, ActionBinding, Object, Exception)

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <summary> 文档]

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.7
语法
C#
public void Add<S, T>(
	string propertyName,
	string sourcePropertyName,
	Func<UIElement> func,
	BindingMode bindingMode = BindingMode.OneWay,
	Func<S, T> convert = null,
	Func<T, S> convertBack = null,
	Action<Binding, Object, Exception> SourceToTargetError = null,
	Action<Binding, Object, Exception> TargetToSourceError = null
)

参数

propertyName
类型:SystemString

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="propertyName"/> 文档]

sourcePropertyName
类型:SystemString

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="sourcePropertyName"/> 文档]

func
类型:SystemFuncUIElement

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="func"/> 文档]

bindingMode (Optional)
类型:CPFBindingMode

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="bindingMode"/> 文档]

convert (Optional)
类型:SystemFuncS, T

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="convert"/> 文档]

convertBack (Optional)
类型:SystemFuncT, S

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="convertBack"/> 文档]

SourceToTargetError (Optional)
类型:SystemActionBinding, Object, Exception

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="SourceToTargetError"/> 文档]

TargetToSourceError (Optional)
类型:SystemActionBinding, Object, Exception

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="TargetToSourceError"/> 文档]

类型参数

S

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <typeparam name="S"/> 文档]

T

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement},CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <typeparam name="T"/> 文档]

参见