mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 07:56:06 +02:00
Merge pull request #1135 from dotnet/adegeo-links
Correct .NET Framework links that pointed to old .NET 5 URLs
This commit is contained in:
@@ -24,7 +24,7 @@ This topic discusses the different ways you can declare a binding.
|
||||
|
||||
Before reading this topic, it is important that you are familiar with the concept and usage of markup extensions. For more information about markup extensions, see [Markup Extensions and WPF XAML](../advanced/markup-extensions-and-wpf-xaml.md).
|
||||
|
||||
This topic does not cover data binding concepts. For a discussion of data binding concepts, see [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
This topic does not cover data binding concepts. For a discussion of data binding concepts, see [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
<a name="BindinginXAML"></a>
|
||||
|
||||
@@ -137,7 +137,7 @@ The default behavior is as follows if not specified in the declaration.
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
- [Data Binding](../advanced/optimizing-performance-data-binding.md)
|
||||
- [PropertyPath XAML Syntax](../advanced/propertypath-xaml-syntax.md)
|
||||
|
||||
@@ -49,7 +49,7 @@ In data binding, the binding source object refers to the object you obtain data
|
||||
## Using Entire Objects as a Binding Source
|
||||
You can use an entire object as a binding source. You can specify a binding source by using the <xref:System.Windows.Data.Binding.Source%2A> or the <xref:System.Windows.FrameworkElement.DataContext%2A> property, and then provide a blank binding declaration: `{Binding}`. Scenarios in which this is useful include binding to objects that are of type string, binding to objects with multiple properties you are interested in, or binding to collection objects. For an example of binding to an entire collection object, see [Use the Master-Detail Pattern with Hierarchical Data](how-to-use-the-master-detail-pattern-with-hierarchical-data.md).
|
||||
|
||||
Note that you may need to apply custom logic so that the data is meaningful to your bound target property. The custom logic may be in the form of a custom converter (if default type conversion does not exist) or a <xref:System.Windows.DataTemplate>. For more information about converters, see the Data Conversion section of [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview). For more information about data templates, see [Data Templating Overview](data-templating-overview.md).
|
||||
Note that you may need to apply custom logic so that the data is meaningful to your bound target property. The custom logic may be in the form of a custom converter (if default type conversion does not exist) or a <xref:System.Windows.DataTemplate>. For more information about converters, see the Data Conversion section of [Data Binding Overview](data-binding-overview.md). For more information about data templates, see [Data Templating Overview](data-templating-overview.md).
|
||||
|
||||
<a name="collections"></a>
|
||||
## Using Collection Objects as a Binding Source
|
||||
@@ -59,7 +59,7 @@ In data binding, the binding source object refers to the object you obtain data
|
||||
|
||||
The <xref:System.Collections.ObjectModel.ObservableCollection%601> class is a built-in implementation of a data collection that exposes the <xref:System.Collections.Specialized.INotifyCollectionChanged> interface. The individual data objects within the collection must satisfy the requirements described in the preceding sections. For an example, see [Create and Bind to an ObservableCollection](how-to-create-and-bind-to-an-observablecollection.md). Before implementing your own collection, consider using <xref:System.Collections.ObjectModel.ObservableCollection%601> or one of the existing collection classes, such as <xref:System.Collections.Generic.List%601>, <xref:System.Collections.ObjectModel.Collection%601>, and <xref:System.ComponentModel.BindingList%601>, among many others.
|
||||
|
||||
WPF never binds directly to a collection. If you specify a collection as a binding source, WPF actually binds to the collection's default view. For information about default views, see [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
WPF never binds directly to a collection. If you specify a collection as a binding source, WPF actually binds to the collection's default view. For information about default views, see [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
If you have an advanced scenario and you want to implement your own collection, consider using the <xref:System.Collections.IList> interface. <xref:System.Collections.IList> provides a non-generic collection of objects that can be individually accessed by index, which can improve performance.
|
||||
|
||||
@@ -92,6 +92,6 @@ In data binding, the binding source object refers to the object you obtain data
|
||||
- <xref:System.Windows.Data.ObjectDataProvider>
|
||||
- <xref:System.Windows.Data.XmlDataProvider>
|
||||
- [Specify the Binding Source](how-to-specify-the-binding-source.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [WPF Data Binding with LINQ to XML Overview](wpf-data-binding-with-linq-to-xml-overview.md)
|
||||
- [Optimize data binding performance](../advanced/optimizing-performance-data-binding.md)
|
||||
|
||||
@@ -58,5 +58,5 @@ The topics in this section describe how to use data binding to bind elements to
|
||||
|
||||
## Related sections
|
||||
|
||||
- [Data binding in WPF](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data binding in WPF](data-binding-overview.md)
|
||||
- [Data binding performance](../advanced/optimizing-performance-data-binding.md)
|
||||
|
||||
@@ -17,9 +17,9 @@ The WPF data templating model provides you with great flexibility to define the
|
||||
|
||||
<a name="Prerequisites"></a>
|
||||
## Prerequisites
|
||||
This topic focuses on data templating features and is not an introduction of data binding concepts. For information about basic data binding concepts, see the [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
This topic focuses on data templating features and is not an introduction of data binding concepts. For information about basic data binding concepts, see the [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
<xref:System.Windows.DataTemplate> is about the presentation of data and is one of the many features provided by the WPF styling and templating model. For an introduction of the WPF styling and templating model, such as how to use a <xref:System.Windows.Style> to set properties on controls, see the [Styling and Templating](/dotnet/desktop-wpf/fundamentals/styles-templates-overview) topic.
|
||||
<xref:System.Windows.DataTemplate> is about the presentation of data and is one of the many features provided by the WPF styling and templating model. For an introduction of the WPF styling and templating model, such as how to use a <xref:System.Windows.Style> to set properties on controls, see the [Styling and Templating](../controls/styles-templates-overview.md) topic.
|
||||
|
||||
In addition, it is important to understand `Resources`, which are essentially what enable objects such as <xref:System.Windows.Style> and <xref:System.Windows.DataTemplate> to be reusable. For more information on resources, see [XAML Resources](/dotnet/desktop-wpf/fundamentals/xaml-resources-define).
|
||||
|
||||
@@ -192,6 +192,6 @@ This concludes our discussion of this example. For the complete sample, see [Int
|
||||
|
||||
- [Data Binding](../advanced/optimizing-performance-data-binding.md)
|
||||
- [Find DataTemplate-Generated Elements](how-to-find-datatemplate-generated-elements.md)
|
||||
- [Styling and Templating](/dotnet/desktop-wpf/fundamentals/styles-templates-overview)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Styling and Templating](../controls/styles-templates-overview.md)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [GridView Column Header Styles and Templates Overview](../controls/gridview-column-header-styles-and-templates-overview.md)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ When this example is rendered it looks like the following:
|
||||

|
||||
|
||||
> [!NOTE]
|
||||
> The binding target property (in this example, the <xref:System.Windows.Controls.Panel.Background%2A> property) must be a dependency property. For more information, see [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
> The binding target property (in this example, the <xref:System.Windows.Controls.Panel.Background%2A> property) must be a dependency property. For more information, see [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
## See also
|
||||
|
||||
|
||||
+1
-1
@@ -44,6 +44,6 @@ In a simple master-detail scenario, you have a data-bound <xref:System.Windows.C
|
||||
|
||||
- [Use the Master-Detail Pattern with Hierarchical Data](how-to-use-the-master-detail-pattern-with-hierarchical-data.md)
|
||||
- [Use the Master-Detail Pattern with Hierarchical XML Data](how-to-use-the-master-detail-pattern-with-hierarchical-xml-data.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Data Templating Overview](data-templating-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -35,5 +35,5 @@ The `IntColorConverter` converts an `int` to a color. With the use of this conve
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Data.BindingListCollectionView>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -18,5 +18,5 @@ This example shows how to bind to an enumeration by binding to the enumeration's
|
||||
## See also
|
||||
|
||||
- [Bind to a Method](how-to-bind-to-a-method.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -29,4 +29,4 @@ The second list box binds to that collection because its <xref:System.Windows.Co
|
||||
- [Make Data Available for Binding in XAML](how-to-make-data-available-for-binding-in-xaml.md)
|
||||
- [Bind to a Collection and Display Information Based on Selection](how-to-bind-to-a-collection-and-display-information-based-on-selection.md)
|
||||
- [What's New in WPF Version 4.5](../getting-started/whats-new.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ This example shows how to bind to XML data using an <xref:System.Windows.Data.Xm
|
||||
|
||||
[!code-xaml[XMLDataSource#1](~/samples/snippets/csharp/VS_Snippets_Wpf/XmlDataSource/CS/Window1.xaml#1)]
|
||||
|
||||
As shown in this example, to create the same binding declaration in attribute syntax you must escape the special characters properly. For more information, see [XML Character Entities and XAML](/dotnet/desktop-wpf/xaml-services/xml-character-entities).
|
||||
As shown in this example, to create the same binding declaration in attribute syntax you must escape the special characters properly. For more information, see [XML Character Entities and XAML](/dotnet/desktop/xaml-services/xml-character-entities).
|
||||
|
||||
The <xref:System.Windows.Controls.ListBox> will show the following items when this example is run. These are the *Title*s of all of the elements under *Books* with either a *Stock* value of "*out*" or a *Number* value of 3 or greater than or equals to 8. Notice that no *CD* items are returned because the <xref:System.Windows.Data.XmlDataProvider.XPath%2A> value set on the <xref:System.Windows.Data.XmlDataProvider> indicates that only the *Books* elements should be exposed (essentially setting a filter).
|
||||
|
||||
@@ -58,5 +58,5 @@ This example shows how to bind to XML data using an <xref:System.Windows.Data.Xm
|
||||
- [Bind to XDocument, XElement, or LINQ for XML Query Results](how-to-bind-to-xdocument-xelement-or-linq-for-xml-query-results.md)
|
||||
- [Use the Master-Detail Pattern with Hierarchical XML Data](how-to-use-the-master-detail-pattern-with-hierarchical-xml-data.md)
|
||||
- [Binding Sources Overview](binding-sources-overview.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -26,5 +26,5 @@ This example shows how to clear bindings from an object.
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Data.BindingOperations>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -34,5 +34,5 @@ This example shows how to apply conversion to data that is used in bindings.
|
||||
## See also
|
||||
|
||||
- [Implement Binding Validation](how-to-implement-binding-validation.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -37,5 +37,5 @@ This example shows how to create and set a <xref:System.Windows.Data.Binding> in
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -22,5 +22,5 @@ This example shows you how to create a simple <xref:System.Windows.Data.Binding>
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+2
-2
@@ -133,12 +133,12 @@ End Class
|
||||
> [!NOTE]
|
||||
> The objects in your collection must satisfy the requirements described in the [Binding Sources Overview](binding-sources-overview.md). In particular, if you are using <xref:System.Windows.Data.BindingMode.OneWay> or <xref:System.Windows.Data.BindingMode.TwoWay> (for example, you want your [!INCLUDE[TLA2#tla_ui](../../../includes/tla2sharptla-ui-md.md)] to update when the source properties change dynamically), you must implement a suitable property changed notification mechanism such as the <xref:System.ComponentModel.INotifyPropertyChanged> interface.
|
||||
|
||||
For more information, see the Binding to Collections section in the [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
For more information, see the Binding to Collections section in the [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
## See also
|
||||
|
||||
- [Sort Data in a View](how-to-sort-data-in-a-view.md)
|
||||
- [Filter Data in a View](how-to-filter-data-in-a-view.md)
|
||||
- [Sort and Group Data Using a View in XAML](how-to-sort-and-group-data-using-a-view-in-xaml.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -45,6 +45,6 @@ This example shows how to filter data in a view.
|
||||
|
||||
- <xref:System.Windows.Data.CollectionView.CanFilter%2A>
|
||||
- <xref:System.Windows.Data.BindingListCollectionView.CustomFilter%2A>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Sort Data in a View](how-to-sort-data-in-a-view.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+2
-2
@@ -34,8 +34,8 @@ This example shows how to find elements that are generated by a <xref:System.Win
|
||||
## See also
|
||||
|
||||
- [How to: Find ControlTemplate-Generated Elements](../controls/how-to-find-controltemplate-generated-elements.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
- [Styling and Templating](/dotnet/desktop-wpf/fundamentals/styles-templates-overview)
|
||||
- [Styling and Templating](../controls/styles-templates-overview.md)
|
||||
- [WPF XAML Namescopes](../advanced/wpf-xaml-namescopes.md)
|
||||
- [Trees in WPF](../advanced/trees-in-wpf.md)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ Views allow the same data collection to be viewed in different ways, depending o
|
||||
|
||||
[!code-xaml[CollectionView#CollectionViewDataContext](~/samples/snippets/csharp/VS_Snippets_Wpf/CollectionView/CSharp/Page1.xaml#collectionviewdatacontext)]
|
||||
|
||||
Alternatively, you can instantiate and bind to your own collection view using the <xref:System.Windows.Data.CollectionViewSource> class. This collection view is only shared by controls that bind to it directly. For an example, see the How to Create a View section in the [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
Alternatively, you can instantiate and bind to your own collection view using the <xref:System.Windows.Data.CollectionViewSource> class. This collection view is only shared by controls that bind to it directly. For an example, see the How to Create a View section in the [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
For examples of the functionality provided by a collection view, see [Sort Data in a View](how-to-sort-data-in-a-view.md), [Filter Data in a View](how-to-filter-data-in-a-view.md), and [Navigate Through the Objects in a Data CollectionView](how-to-navigate-through-the-objects-in-a-data-collectionview.md).
|
||||
|
||||
|
||||
@@ -17,5 +17,5 @@ ms.assetid: 0d8fc84c-7920-427f-8ad7-d55ca656c170
|
||||
- <xref:System.Windows.Controls.ItemsControl.ItemsSource%2A>
|
||||
- <xref:System.Windows.Data.XmlDataProvider>
|
||||
- <xref:System.Windows.DataTemplate>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -36,9 +36,9 @@ As shown in the following example, the <xref:System.Windows.Controls.ToolTip> th
|
||||
|
||||
For the complete example, see [Bind Validation sample](https://github.com/Microsoft/WPF-Samples/tree/master/Data%20Binding/BindValidation).
|
||||
|
||||
Note that if you do not provide a custom <xref:System.Windows.Controls.Validation.ErrorTemplate%2A> the default error template appears to provide visual feedback to the user when there is a validation error. See "Data Validation" in [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview) for more information. Also, [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] provides a built-in validation rule that catches exceptions that are thrown during the update of the binding source property. For more information, see <xref:System.Windows.Controls.ExceptionValidationRule>.
|
||||
Note that if you do not provide a custom <xref:System.Windows.Controls.Validation.ErrorTemplate%2A> the default error template appears to provide visual feedback to the user when there is a validation error. See "Data Validation" in [Data Binding Overview](data-binding-overview.md) for more information. Also, [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] provides a built-in validation rule that catches exceptions that are thrown during the update of the binding source property. For more information, see <xref:System.Windows.Controls.ExceptionValidationRule>.
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -43,5 +43,5 @@ ms.assetid: d63b65ab-b3e9-4322-9aa8-1450f8d89532
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Data.Binding.IsAsync%2A?displayProperty=nameWithType>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -26,5 +26,5 @@ To support <xref:System.Windows.Data.BindingMode.OneWay> or <xref:System.Windows
|
||||
## See also
|
||||
|
||||
- [Binding Sources Overview](binding-sources-overview.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -39,5 +39,5 @@ This topic discusses various ways you can make data available for binding in [!I
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ Views allow the same data collection to be viewed in different ways, depending o
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Sort Data in a View](how-to-sort-data-in-a-view.md)
|
||||
- [Filter Data in a View](how-to-filter-data-in-a-view.md)
|
||||
- [Sort and Group Data Using a View in XAML](how-to-sort-and-group-data-using-a-view-in-xaml.md)
|
||||
|
||||
+1
-1
@@ -30,5 +30,5 @@ ms.assetid: b3d06378-b511-4181-95aa-316d60c9229b
|
||||
## See also
|
||||
|
||||
- [Convert Bound Data](how-to-convert-bound-data.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -28,5 +28,5 @@ This example shows how to set up to be notified when the binding target (target)
|
||||
|
||||
## See also
|
||||
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -37,5 +37,5 @@ This example shows how to create a view of a data collection in [!INCLUDE[TLA#tl
|
||||
|
||||
- <xref:System.Windows.Data.CollectionViewSource>
|
||||
- [Get the Default View of a Data Collection](how-to-get-the-default-view-of-a-data-collection.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -26,7 +26,7 @@ This example describes how to sort data in a view.
|
||||
[!code-csharp[ListBoxSort_snip#HowToCode](~/samples/snippets/csharp/VS_Snippets_Wpf/ListBoxSort_snip/CSharp/Window1.xaml.cs#howtocode)]
|
||||
[!code-vb[ListBoxSort_snip#HowToCode](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ListBoxSort_snip/visualbasic/window1.xaml.vb#howtocode)]
|
||||
|
||||
As long as you have a reference to the view object, you can use the same technique to sort the content of other collection views. For an example of how to obtain a view, see [Get the Default View of a Data Collection](how-to-get-the-default-view-of-a-data-collection.md). For another example, see [Sort a GridView Column When a Header Is Clicked](../controls/how-to-sort-a-gridview-column-when-a-header-is-clicked.md). For more information about views, see Binding to Collections in [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview).
|
||||
As long as you have a reference to the view object, you can use the same technique to sort the content of other collection views. For an example of how to obtain a view, see [Get the Default View of a Data Collection](how-to-get-the-default-view-of-a-data-collection.md). For another example, see [Sort a GridView Column When a Header Is Clicked](../controls/how-to-sort-a-gridview-column-when-a-header-is-clicked.md). For more information about views, see Binding to Collections in [Data Binding Overview](data-binding-overview.md).
|
||||
|
||||
For an example of how to apply sorting logic in [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)], see [Sort and Group Data Using a View in XAML](how-to-sort-and-group-data-using-a-view-in-xaml.md).
|
||||
|
||||
@@ -34,6 +34,6 @@ This example describes how to sort data in a view.
|
||||
|
||||
- <xref:System.Windows.Data.ListCollectionView.CustomSort%2A>
|
||||
- [Sort a GridView Column When a Header Is Clicked](../controls/how-to-sort-a-gridview-column-when-a-header-is-clicked.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Filter Data in a View](how-to-filter-data-in-a-view.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -43,6 +43,6 @@ In data binding, the binding source object refers to the object you obtain your
|
||||
- <xref:System.Windows.FrameworkElement.DataContext%2A?displayProperty=nameWithType>
|
||||
- <xref:System.Windows.FrameworkContentElement.DataContext%2A?displayProperty=nameWithType>
|
||||
- [Property Value Inheritance](../advanced/property-value-inheritance.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Binding Declarations Overview](binding-declarations-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -37,5 +37,5 @@ This example shows how to specify whether the binding updates only the binding t
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Data.Binding>
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -31,6 +31,6 @@ This example shows how to implement the master-detail scenario.
|
||||
|
||||
- <xref:System.Windows.HierarchicalDataTemplate>
|
||||
- [Bind to a Collection and Display Information Based on Selection](how-to-bind-to-a-collection-and-display-information-based-on-selection.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [Data Templating Overview](data-templating-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
+1
-1
@@ -26,5 +26,5 @@ ms.assetid: a47c832f-dc84-48f2-96d5-cde18fc4284b
|
||||
## See also
|
||||
|
||||
- [Bind to XML Data Using an XMLDataProvider and XPath Queries](how-to-bind-to-xml-data-using-an-xmldataprovider-and-xpath-queries.md)
|
||||
- [Data Binding Overview](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
- [Data Binding Overview](data-binding-overview.md)
|
||||
- [How-to Topics](data-binding-how-to-topics.md)
|
||||
|
||||
@@ -13,7 +13,7 @@ ms.assetid: dea454e2-abd8-4c53-ba37-d3ed53187d64
|
||||
[!INCLUDE[TLA#tla_winclient](../../../includes/tlasharptla-winclient-md.md)] data binding provides a simple and consistent way for applications to present and interact with data. Elements can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML. [!INCLUDE[TLA#tla_winclient](../../../includes/tlasharptla-winclient-md.md)] also provides a mechanism for the transfer of data through drag-and-drop operations.
|
||||
|
||||
## In This Section
|
||||
[Data Binding](/dotnet/desktop-wpf/data/data-binding-overview)
|
||||
[Data Binding](data-binding-overview.md)
|
||||
[Drag and Drop](../advanced/drag-and-drop.md)
|
||||
|
||||
## Reference
|
||||
@@ -28,7 +28,7 @@ ms.assetid: dea454e2-abd8-4c53-ba37-d3ed53187d64
|
||||
## Related Sections
|
||||
[Controls](../controls/index.md)
|
||||
|
||||
[Styling and Templating](/dotnet/desktop-wpf/fundamentals/styles-templates-overview)
|
||||
[Styling and Templating](../controls/styles-templates-overview.md)
|
||||
|
||||
[Data Binding](../advanced/optimizing-performance-data-binding.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user