点击或拖拽改变大小

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

初始化的时候查找相对元素并绑定

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public void Add<S, T>(
	string propertyName,
	string sourcePropertyName,
	Func<UIElement, UIElement> find,
	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.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.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"/> 文档]

find
类型:SystemFuncUIElement, UIElement

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement,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="find"/> 文档]

bindingMode (Optional)
类型:CPFBindingMode

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Func{CPF.UIElement,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.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.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.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.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.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.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"/> 文档]

参见