Silverlight Control property as a data binding Source and View-Model property as target -


i have property on silverlight control viewmodel wants bind to. viewmodel need told of changes property not other way around

syntax

<mycontrol viewport="{binding vmproperty}"/> 

declares viewport target, in instance viewport source of data. know make twoway binding seems wrong when want 1 way in other direction.

besides not want make property on control dependencyproperty because not want property settable , not beleive silverlight supports read dependency properties.

is there different way of setting binding?

tia

pat long

maybe works? http://forums.silverlight.net/forums/p/141042/315359.aspx#315359

{binding elementname=textbox1, path=text, mode=twoway ,updatesourcetrigger=explicit}


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -