Skip to main content

Microsoft Silverlight

Answered Question Work Around for OneWayToSource Silverlight 3RSS Feed

(0)

reachjaisonjoy
reachjai...

Member

Member

0 points

3 Posts

Work Around for OneWayToSource Silverlight 3

 Is the any work around for Mode=OneWayToSource  feature as we have in WPF.

Cleon26
Cleon26

Member

Member

392 points

111 Posts

Re: Work Around for OneWayToSource Silverlight 3

Is this what you mean?

http://forums.silverlight.net/forums/t/132139.aspx

reachjaisonjoy
reachjai...

Member

Member

0 points

3 Posts

Re: Work Around for OneWayToSource Silverlight 3

 This is not what i meant.  When  Textbox1.Text Changes TextBox2 .text should change , but vice versa should not happen.

 

reachjaisonjoy
reachjai...

Member

Member

0 points

3 Posts

Answered Question

Re: Work Around for OneWayToSource Silverlight 3

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities