点击或拖拽改变大小

CpfObjectRegisterAttachedValue 方法

注册附加属性

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public static Attached<Value> RegisterAttached<Value>(
	Value defaultValue,
	Type ownerType,
	AttachedPropertyChanged propertyChanged = null,
	string propertyName = null
)

参数

defaultValue
类型:Value
默认值
ownerType
类型:SystemType
所注册在的类型
propertyChanged (Optional)
类型:CPFAttachedPropertyChanged
属性变化回调
propertyName (Optional)
类型:SystemString
属性名一般不用设置,VS自动设置

类型参数

Value

[缺少 "M:CPF.CpfObject.RegisterAttached``1(``0,System.Type,CPF.AttachedPropertyChanged,System.String)" 的 <typeparam name="Value"/> 文档]

返回值

类型:AttachedValue

[缺少 "M:CPF.CpfObject.RegisterAttached``1(``0,System.Type,CPF.AttachedPropertyChanged,System.String)" 的 <returns> 文档]

参见