PrepAway - Latest Free Exam Questions & Answers

Which binding expression should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
<TextBox Text=”{Binding Path=StringMember}” />
You need to ensure that the StringMember property of the data-bound object is updated immediately when the user types the TextBox control.
Which binding expression should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
{ Binding Path=StringMember, Mode=TwoWay }

B.
{ Binding Path=StringMember, NotifyOnSourceUpdated=True }

C.
{ Binding Path=StringMember, NotifyOnTargetUpdated=True }

D.
{ Binding Path=StringMember, UpdateSourceTrigger=PropertyChanged }

One Comment on “Which binding expression should you use?


Leave a Reply