c# - Binding with ElementName not working on a DataTemplate on Windows XP -
why binding elementname
on datatemplate
of datagridtemplatecolumn
not work (will fallback default value or fallbackvalue
) under windows xp .net 4.0?
<datagridtemplatecolumn header="aaa" width="62"> <datagridtemplatecolumn.celltemplate> <datatemplate> <textbox isenabled="{binding elementname=combobox, path=isenabled}"> </datatemplate> </datagridtemplatecolumn.celltemplate> </datagridtemplatecolumn>
but windows 7 , later binding works expected.
the way make work under windows xp, using x:reference.
wpf not support windows xp.
you can tell boss following source: windows presentation foundation. it's microsoft , official.
Comments
Post a Comment