WPF Binding : Casting in binding path -
i've binding path set path=item.tag.caption, need cast item iedge first can access tag property. there way achieve this?
the solution problem, finally, use following syntax:
path=item.(mynamespace:iedge.tag).caption the previous code cast item type iedge in order access tag property.
in case of multiple nested casts global pattern :
path=obj1.(ns1:typeobj1.obj2).(ns2:typeobj2.obj3)...(nsn:typeobjn.bindedprop)
Comments
Post a Comment