Windows 8 Development - Data Binding XAML

Опубликовано: 11 Февраль 2026
на канале: techytube
5,096
7

Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By mzmuda@techytube, for more from this author visit:
http://www.techytube.com/author/mzmuda

Data binding is an essential concept to software development, and one that is luckily made near-trivial by Visual Studio.

In a one-way binding, data is populated in one direction, to the end UI control. In this system, changing a value in the control does not reflect in the data source.

In a two-way binding scenario, data can flow back from the control to the data source. This is useful for an 'edit' role, versus a 'label' role which would more appropriately make use of one-way binding.

Data binding was made popular in WinForms (.NET 2.0), and Visual Studio 2012 makes it intuitive. Through multiple methods, such as Binding.Source and DataContext switching, a control can be bound to a source in just a few clicks.

In this video, I will show you how to bind a TextBlock to the DisplayName property in a file chosen from a FilePicker.

References

XAML File Pickers - http://msdn.microsoft.com/en-us/libra...