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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
.NET Desktop feedback
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ