Data binding how-to topics
The topics in this section describe how to use data binding to bind elements to data from a variety of data sources in the form of common language runtime (CLR) objects and XML.
In this section
- Create a Simple Binding
- Specify the Binding Source
- Make Data Available for Binding in XAML
- Control When the TextBox Text Updates the Source
- Specify the Direction of the Binding
- Bind to a Collection and Display Information Based on Selection
- Bind to an Enumeration
- Bind the Properties of Two Controls
- Implement Binding Validation
- Implement Validation Logic on Custom Objects
- Get the Binding Object from a Bound Target Property
- Implement a CompositeCollection
- Convert Bound Data
- Create a Binding in Code
- Get the Default View of a Data Collection
- Navigate Through the Objects in a Data CollectionView
- Filter Data in a View
- Sort Data in a View
- Sort and Group Data Using a View in XAML
- Use the Master-Detail Pattern with Hierarchical Data
- Use the Master-Detail Pattern with Hierarchical XML Data
- Produce a Value Based on a List of Bound Items
- Implement Property Change Notification
- Create and Bind to an ObservableCollection
- Implement PriorityBinding
- Bind to XML Data Using an XMLDataProvider and XPath Queries
- Bind to XDocument, XElement, or LINQ for XML Query Results
- Bind to the Results of a LINQ Query
- Use XML Namespaces in Data Binding
- Bind to an ADO.NET Data Source
- Bind to a Method
- Set Up Notification of Binding Updates
- Clear Bindings
- Find DataTemplate-Generated Elements
Reference
Related sections
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.
.NET Desktop feedback
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru