Skip to main content
Home Forums General Silverlight New Features in Silverlight 3 Work Around for OneWayToSource Silverlight 3
3 replies. Latest Post by reachjaisonjoy on November 6, 2009.
(0)
reachjai...
Member
0 points
3 Posts
11-05-2009 7:22 AM |
Is the any work around for Mode=OneWayToSource feature as we have in WPF.
Cleon26
392 points
111 Posts
11-05-2009 5:47 PM |
Is this what you mean?http://forums.silverlight.net/forums/t/132139.aspx
11-05-2009 11:36 PM |
This is not what i meant. When Textbox1.Text Changes TextBox2 .text should change , but vice versa should not happen.
11-06-2009 12:34 AM |
I got solution for this ,This works as OneWayToSource in WPF.
{Binding ElementName=TextBox1, Path=Text, Mode=TwoWay ,UpdateSourceTrigger=Explicit} .
When you set the UpdateSourceTrigger value to Explicit, the source value only changes when the application calls the UpdateSource method.
If UpdateSource method not called ,the source value will not change.