How to supply a string literal value as a binding in WPF -


edit:

my former question referred commands, pointed out in comment below, unnecessary , added noise.


this more xaml syntax question, trivial. know how pass string literal value binding in wpf.

if value known context in xaml, may value directly assigned binding, instead of using paths , other means? if so, syntax in case?

<multibinding.bindings>     <!-- first binding, textbox  -->     <binding  relativesource="{relativesource findancestor, ancestortype={x:type textbox}}"/>     <!-- second binding, want pass string is, instance, "description" -->     <!-- proper syntax line below after -->     <binding value="description"/> </multibinding.bindings> 

it's

<binding source="description"/> 

source can type, in attribute syntax interpreted string, if no path specified binding's value source.

also multi-binding, not talk command parameters irrelevant matter...


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -