c# - Use converter without path -
how can use converter without binding path? i've got radio buttons , have converter passed string , returns whether or not checkbox checked:
<radiobutton ischecked="{binding converter={staticresource languagetoboolconverter}, converterparameter='de_de'}" command="{binding changelanguagecommand, elementname=langselector}" commandparameter="de-de">
however, error message two-way binding requires path or xpath.
in such case need specify path current datacontext
ischecked="{binding path=., converter={staticresource languagetoboolconverter}, ..."
from msdn:
optionally, period (.) path can used bind current source. example, text="{binding}" equivalent text="{binding path=.}".
Comments
Post a Comment