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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -