Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
WPF Binding One Way and Two Way
WhatsApp
Ramen Adhikary
10y
126.8
k
0
1
25
Blog
MVVMApplication.zip
One way binding
<TextBox Text=
"{Binding ElementName=listView, Path=SelectedItem.EmployeeSalary, Mode=OneWay}"
>
Two way binding
<TextBox Grid.Row=
"0"
Text=
"{Binding ElementName=listView, Path=SelectedItem.EmployeeName, Mode=TwoWay}"
>
Picture 1:
Except employee salary field remaining fields are having two way binding.
Picture 2:
Now modifying all fields (except Employee Salary field) are effecting the list view items also because we are having Two Way bindings for each. But Employee Salary filed is having One way binding.
WPF Binding One Way and Two Way
Up Next
Dynamically Render And Bind One User Control In Another User Control Using MVVM Pattern In WPF
Ebook Download
View all
WPF Simplified: Build Windows Apps Using C# and XAML
Read by 1.5k people
Download Now!
Learn
View all
Membership not found