From d15a0503759018024f633cf41dd4b609766613b4 Mon Sep 17 00:00:00 2001 From: annmariehitchcock <106630431+annmariehitchcock@users.noreply.github.com> Date: Wed, 20 Jul 2022 11:04:20 -0700 Subject: [PATCH 1/4] Validation: Fix multiple issues Set 1 --- .../data/attribute-xelement-dynamic-property.md | 1 + .../wpf/data/data-binding-how-to-topics.md | 1 + .../framework/wpf/data/data-templating-overview.md | 14 +++++++------- .../data/descendants-xelement-dynamic-property.md | 1 + .../wpf/data/element-xelement-dynamic-property.md | 1 + .../wpf/data/elements-xelement-dynamic-property.md | 1 + .../how-to-bind-the-properties-of-two-controls.md | 1 + .../data/how-to-bind-to-an-ado-net-data-source.md | 1 + .../wpf/data/how-to-bind-to-an-enumeration.md | 1 + .../how-to-bind-to-the-results-of-a-linq-query.md | 1 + ...ument-xelement-or-linq-for-xml-query-results.md | 1 + ...a-using-an-xmldataprovider-and-xpath-queries.md | 1 + .../framework/wpf/data/how-to-clear-bindings.md | 1 + .../wpf/data/how-to-convert-bound-data.md | 1 + .../wpf/data/how-to-filter-data-in-a-view.md | 1 + .../how-to-find-datatemplate-generated-elements.md | 1 + ...-binding-object-from-a-bound-target-property.md | 1 + ...to-get-the-default-view-of-a-data-collection.md | 1 + .../data/how-to-implement-a-compositecollection.md | 1 + .../wpf/data/how-to-implement-prioritybinding.md | 1 + ...implement-validation-logic-on-custom-objects.md | 1 + ...through-the-objects-in-a-data-collectionview.md | 1 + ...oduce-a-value-based-on-a-list-of-bound-items.md | 1 + ...ow-to-set-up-notification-of-binding-updates.md | 1 + .../wpf/data/how-to-sort-data-in-a-view.md | 1 + .../how-to-specify-the-direction-of-the-binding.md | 1 + 26 files changed, 32 insertions(+), 7 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md index b32faa1bb0..95b095a31d 100644 --- a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md @@ -1,5 +1,6 @@ --- title: Attribute (XElement dynamic property) +description: Learn how the Attribute (XElement dynamic property) uses an indexer to retrieve the attribute instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/data-binding-how-to-topics.md b/dotnet-desktop-guide/framework/wpf/data/data-binding-how-to-topics.md index e59f6a2b0f..ae34cdbae6 100644 --- a/dotnet-desktop-guide/framework/wpf/data/data-binding-how-to-topics.md +++ b/dotnet-desktop-guide/framework/wpf/data/data-binding-how-to-topics.md @@ -1,5 +1,6 @@ --- title: How-to articles for data binding +description: Review a list of data binding how-to topics describing how to use data binding to bind elements to data from a variety of data sources. ms.date: "03/30/2017" f1_keywords: - "AutoGeneratedOrientationPage" diff --git a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md index cb0f5a4c10..6c0c902150 100644 --- a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md +++ b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md @@ -36,7 +36,7 @@ The WPF data templating model provides you with great flexibility to define the ### Without a DataTemplate Without a , our currently looks like this: - ![Data templating sample screenshot](./media/datatemplatingintro-fig1.png "DataTemplatingIntro_fig1") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox displaying the string representation SDKSample.Task for each source object.](./media/datatemplatingintro-fig1.png "DataTemplatingIntro_fig1") What's happening is that without any specific instructions, the by default calls `ToString` when trying to display the objects in the collection. Therefore, if the `Task` object overrides the `ToString` method, then the displays the string representation of each source object in the underlying collection. @@ -47,7 +47,7 @@ The WPF data templating model provides you with great flexibility to define the Then the looks like the following: - ![Data templating sample screenshot](./media/datatemplatingintro-fig2.png "DataTemplatingIntro_fig2") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox displaying a list of tasks.](./media/datatemplatingintro-fig2.png "DataTemplatingIntro_fig2") However, that is limiting and inflexible. Also, if you are binding to XML data, you wouldn't be able to override `ToString`. @@ -61,7 +61,7 @@ The WPF data templating model provides you with great flexibility to define the Now our looks like the following: - ![Data templating sample screenshot](./media/datatemplatingintro-fig3.png "DataTemplatingIntro_fig3") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox displaying the tasks as TextBlock elements. The task Email, Email clients, Priority 1 is highlighted in blue.](./media/datatemplatingintro-fig3.png "DataTemplatingIntro_fig3") ### Creating the DataTemplate as a Resource @@ -98,7 +98,7 @@ The WPF data templating model provides you with great flexibility to define the The following screenshot shows the with this modified : - ![Data templating sample screenshot](./media/datatemplatingintro-fig4.png "DataTemplatingIntro_fig4") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox with the modified DataTemplate.](./media/datatemplatingintro-fig4.png "DataTemplatingIntro_fig4") We can set to on the to make sure the width of the items takes up the entire space: @@ -106,7 +106,7 @@ The WPF data templating model provides you with great flexibility to define the With the property set to , the now looks like this: - ![Data templating sample screenshot](./media/datatemplatingintro-fig5.png "DataTemplatingIntro_fig5") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox stretched to fit the screen horizontally.](./media/datatemplatingintro-fig5.png "DataTemplatingIntro_fig5") ### Use DataTriggers to Apply Property Values @@ -120,7 +120,7 @@ The WPF data templating model provides you with great flexibility to define the Our application now looks like the following. Home tasks appear with a yellow border and office tasks appear with an aqua border: - ![Data templating sample screenshot](./media/datatemplatingintro-fig6.png "DataTemplatingIntro_fig6") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox with the home and office tasks borders highlighted in color.](./media/datatemplatingintro-fig6.png "DataTemplatingIntro_fig6") In this example the uses a to set a property value. The trigger classes also have the and properties that allow you to start a set of actions such as animations. In addition, there is also a class that allows you to apply changes based on multiple data-bound property values. @@ -160,7 +160,7 @@ This example uses the [DataTemplate.Resources](xref:System.Windows.FrameworkTemp With the template selector in place, the now appears as follows: - ![Data templating sample screenshot](./media/datatemplatingintro-fig7.png "DataTemplatingIntro_fig7") + ![Screenshot of Introduction to Data Templating Sample window showing the My Task List ListBox with Priority 1 tasks prominently displayed with a red border.](./media/datatemplatingintro-fig7.png "DataTemplatingIntro_fig7") This concludes our discussion of this example. For the complete sample, see [Introduction to Data Templating Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Data%20Binding/DataTemplatingIntro). diff --git a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md index a4bfc25d6c..d8f8e00383 100644 --- a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md @@ -1,5 +1,6 @@ --- title: Descendants (XElement dynamic property) +description: Learn how the Descendants (XElement dynamic property) retrieves all the descendant elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md index fe9b371b16..44f5dc40c2 100644 --- a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md @@ -1,5 +1,6 @@ --- title: Element (XElement dynamic property) +description: Learn how the Element (XElement dynamic property) uses an indexer to retrieve the child element instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: diff --git a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md index 60f7697e01..474d53eff7 100644 --- a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md @@ -1,5 +1,6 @@ --- title: Elements (XElement dynamic property) +description: Learn how the Elements (XElement dynamic property) uses an indexer to retrieve the child elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-the-properties-of-two-controls.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-the-properties-of-two-controls.md index ed1743745a..e5e67af90a 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-the-properties-of-two-controls.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-the-properties-of-two-controls.md @@ -1,5 +1,6 @@ --- title: "How to: Bind the Properties of Two Controls" +description: Learn how to use the ElementName property to bind the property of one instantiated control to that of another. ms.date: "03/30/2017" helpviewer_keywords: - "data binding [WPF], binding properties of two controls" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-ado-net-data-source.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-ado-net-data-source.md index 8765a22f96..197c521112 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-ado-net-data-source.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-ado-net-data-source.md @@ -1,5 +1,6 @@ --- title: "How to: Bind to an ADO.NET Data Source" +description: Learn how to bind a Windows Presentation Foundation (WPF) control to an ADO.NET Data Source with several provided code examples. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-enumeration.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-enumeration.md index 32a6c22d21..16e5e978c1 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-enumeration.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-an-enumeration.md @@ -1,5 +1,6 @@ --- title: "How to: Bind to an Enumeration" +description: Learn how to bind to an enumeration by binding to the enumeration's GetValues method in Windows Presentation Foundation (WPF). ms.date: "03/30/2017" helpviewer_keywords: - "binding data [WPF], enumeration" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-the-results-of-a-linq-query.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-the-results-of-a-linq-query.md index fb74ef2671..19e70db696 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-the-results-of-a-linq-query.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-the-results-of-a-linq-query.md @@ -1,5 +1,6 @@ --- title: "How to: Bind to the Results of a LINQ Query" +description: Learn how to run a LINQ query and then bind to the results in Windows Presentation Foundation (WPF). ms.date: "03/30/2017" helpviewer_keywords: - "running a LINQ query [WPF], bind to results" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xdocument-xelement-or-linq-for-xml-query-results.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xdocument-xelement-or-linq-for-xml-query-results.md index 6391ac2451..4195a634c8 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xdocument-xelement-or-linq-for-xml-query-results.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xdocument-xelement-or-linq-for-xml-query-results.md @@ -1,5 +1,6 @@ --- title: "How to: Bind to XDocument, XElement, or LINQ for XML Query Results" +description: Learn how to bind to XDocument, XElement, or LINQ for XML query results in Windows Presentation Foundation (WPF). ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xml-data-using-an-xmldataprovider-and-xpath-queries.md b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xml-data-using-an-xmldataprovider-and-xpath-queries.md index 75c79a74fc..ee05c63e05 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xml-data-using-an-xmldataprovider-and-xpath-queries.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-bind-to-xml-data-using-an-xmldataprovider-and-xpath-queries.md @@ -1,5 +1,6 @@ --- title: "How to: Bind to XML Data Using an XMLDataProvider and XPath Queries" +description: Learn how to bind to XML data using an XMLDataProvider and XPath queries in Windows Presentation Foundation (WPF). ms.date: "03/30/2017" helpviewer_keywords: - "XmlDataProvider [WPF], binding to XML data" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-clear-bindings.md b/dotnet-desktop-guide/framework/wpf/data/how-to-clear-bindings.md index 25ea638230..46c40ef50e 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-clear-bindings.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-clear-bindings.md @@ -1,5 +1,6 @@ --- title: "How to: Clear Bindings" +description: Learn how to use ClearBinding to remove a binding from an individual property on an object in Windows Presentation Foundation (WPF). ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-convert-bound-data.md b/dotnet-desktop-guide/framework/wpf/data/how-to-convert-bound-data.md index 1ee250aadb..d6a96f6faa 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-convert-bound-data.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-convert-bound-data.md @@ -1,5 +1,6 @@ --- title: "How to: Convert Bound Data" +description: Learn how to use the IValueConverter interface and the Convert and ConvertBack methods to convert bound data. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-filter-data-in-a-view.md b/dotnet-desktop-guide/framework/wpf/data/how-to-filter-data-in-a-view.md index 01dd66129f..9d618e7e77 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-filter-data-in-a-view.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-filter-data-in-a-view.md @@ -1,5 +1,6 @@ --- title: "How to: Filter Data in a View" +description: Learn how to create a filter and define a method that provides filtering logic to filter data in a view. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-find-datatemplate-generated-elements.md b/dotnet-desktop-guide/framework/wpf/data/how-to-find-datatemplate-generated-elements.md index b364e1be05..3147eff93c 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-find-datatemplate-generated-elements.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-find-datatemplate-generated-elements.md @@ -1,5 +1,6 @@ --- title: "How to: Find DataTemplate-Generated Elements" +description: Learn how to find elements that are generated by a DataTemplate with several provided code examples. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-binding-object-from-a-bound-target-property.md b/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-binding-object-from-a-bound-target-property.md index b17137a2ad..70acefbb4b 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-binding-object-from-a-bound-target-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-binding-object-from-a-bound-target-property.md @@ -1,5 +1,6 @@ --- title: "How to: Get the Binding Object from a Bound Target Property" +description: Learn how to retrieve the binding object from a data-bound target property with several provided code examples. ms.date: "03/30/2017" helpviewer_keywords: - "data binding [WPF], getting binding objects from bound target properties" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-default-view-of-a-data-collection.md b/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-default-view-of-a-data-collection.md index b2aedc1283..c80abc8dd3 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-default-view-of-a-data-collection.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-get-the-default-view-of-a-data-collection.md @@ -1,5 +1,6 @@ --- title: "How to: Get the Default View of a Data Collection" +description: Learn how to use the DataContext of a data object to retrieve the default view of a data collection. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-a-compositecollection.md b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-a-compositecollection.md index dffd3645d7..c584aa0994 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-a-compositecollection.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-a-compositecollection.md @@ -1,5 +1,6 @@ --- title: "How to: Implement a CompositeCollection" +description: Learn how to use the CompositeCollection class to display multiple collections and items as one list. ms.date: "03/30/2017" helpviewer_keywords: - "data binding [WPF], CompositeCollection class" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-prioritybinding.md b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-prioritybinding.md index a921e904cb..c5ea68da4c 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-prioritybinding.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-prioritybinding.md @@ -1,5 +1,6 @@ --- title: "How to: Implement PriorityBinding" +description: Learn how to use PriorityBinding to define a list of bindings ordered from highest to lowest priority. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-validation-logic-on-custom-objects.md b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-validation-logic-on-custom-objects.md index 55a409e2fc..c897029449 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-implement-validation-logic-on-custom-objects.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-implement-validation-logic-on-custom-objects.md @@ -1,5 +1,6 @@ --- title: "How to: Implement Validation Logic on Custom Objects" +description: Learn how to implement validation logic on a custom object before binding to it in Windows Presentation Foundation (WPF). ms.date: "08/02/2018" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-navigate-through-the-objects-in-a-data-collectionview.md b/dotnet-desktop-guide/framework/wpf/data/how-to-navigate-through-the-objects-in-a-data-collectionview.md index 9df9b089fc..721fe1137a 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-navigate-through-the-objects-in-a-data-collectionview.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-navigate-through-the-objects-in-a-data-collectionview.md @@ -1,5 +1,6 @@ --- title: "How to: Navigate Through the Objects in a Data CollectionView" +description: Learn how to use the CollectionView class to retrieve the current object as well as navigate through the objects in a data collection. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-produce-a-value-based-on-a-list-of-bound-items.md b/dotnet-desktop-guide/framework/wpf/data/how-to-produce-a-value-based-on-a-list-of-bound-items.md index c0663ad374..e2e0cf16ec 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-produce-a-value-based-on-a-list-of-bound-items.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-produce-a-value-based-on-a-list-of-bound-items.md @@ -1,5 +1,6 @@ --- title: "How to: Produce a Value Based on a List of Bound Items" +description: Learn how to use MultiBinding to apply logic and produce a value based on a list of bound items with given inputs. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-set-up-notification-of-binding-updates.md b/dotnet-desktop-guide/framework/wpf/data/how-to-set-up-notification-of-binding-updates.md index 8a14f2f176..97fb07d6da 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-set-up-notification-of-binding-updates.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-set-up-notification-of-binding-updates.md @@ -1,5 +1,6 @@ --- title: "How to: Set Up Notification of Binding Updates" +description: Learn how to use the INotifyPropertyChanged interface to set up notification when source or target binding properties have been updated. ms.date: "03/30/2017" helpviewer_keywords: - "notifications [WPF], binding updates" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md b/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md index c5db7979e7..84ccc152c3 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md @@ -1,5 +1,6 @@ --- title: "How to: Sort Data in a View" +description: Learn various techniques to sort data in a view including related tutorials and several provided code examples. ms.date: "03/30/2017" dev_langs: - "csharp" diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-specify-the-direction-of-the-binding.md b/dotnet-desktop-guide/framework/wpf/data/how-to-specify-the-direction-of-the-binding.md index a11c7a495f..8817dadd5d 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-specify-the-direction-of-the-binding.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-specify-the-direction-of-the-binding.md @@ -1,5 +1,6 @@ --- title: "How to: Specify the Direction of the Binding" +description: Learn how to use the Binding.Mode property to specify whether the binding updates only the target property, the source property or both. ms.date: "03/30/2017" helpviewer_keywords: - "direction of binding [WPF]" From bb2327c38ad9912b31d1cc96c548088560ce4cad Mon Sep 17 00:00:00 2001 From: annmariehitchcock <106630431+annmariehitchcock@users.noreply.github.com> Date: Wed, 20 Jul 2022 11:20:19 -0700 Subject: [PATCH 2/4] Validation: Fix multiple issues Set 2 --- .../framework/wpf/data/attribute-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/data-templating-overview.md | 4 ++-- .../wpf/data/descendants-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/element-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/elements-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/how-to-sort-data-in-a-view.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md index 95b095a31d..e7579c1e39 100644 --- a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Attribute (XElement dynamic property) -description: Learn how the Attribute (XElement dynamic property) uses an indexer to retrieve the attribute instance that corresponds to the specified expanded name. +description: Learn how the attribute (XElement dynamic property) uses an indexer to retrieve the attribute instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md index 6c0c902150..ba6a7625f2 100644 --- a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md +++ b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md @@ -120,7 +120,7 @@ The WPF data templating model provides you with great flexibility to define the Our application now looks like the following. Home tasks appear with a yellow border and office tasks appear with an aqua border: - ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox with the home and office tasks borders highlighted in color.](./media/datatemplatingintro-fig6.png "DataTemplatingIntro_fig6") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox with the home and office task borders highlighted in color.](./media/datatemplatingintro-fig6.png "DataTemplatingIntro_fig6") In this example the uses a to set a property value. The trigger classes also have the and properties that allow you to start a set of actions such as animations. In addition, there is also a class that allows you to apply changes based on multiple data-bound property values. @@ -160,7 +160,7 @@ This example uses the [DataTemplate.Resources](xref:System.Windows.FrameworkTemp With the template selector in place, the now appears as follows: - ![Screenshot of Introduction to Data Templating Sample window showing the My Task List ListBox with Priority 1 tasks prominently displayed with a red border.](./media/datatemplatingintro-fig7.png "DataTemplatingIntro_fig7") + ![Screenshot of Introduction to Data Templating Sample window showing the My Task List ListBox with the Priority 1 tasks prominently displayed with a red border.](./media/datatemplatingintro-fig7.png "DataTemplatingIntro_fig7") This concludes our discussion of this example. For the complete sample, see [Introduction to Data Templating Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Data%20Binding/DataTemplatingIntro). diff --git a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md index d8f8e00383..47d060d516 100644 --- a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Descendants (XElement dynamic property) -description: Learn how the Descendants (XElement dynamic property) retrieves all the descendant elements of the current element that match the specified expanded name. +description: Learn how the descendants (XElement dynamic property) retrieves all the descendant elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md index 44f5dc40c2..39e3223824 100644 --- a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Element (XElement dynamic property) -description: Learn how the Element (XElement dynamic property) uses an indexer to retrieve the child element instance that corresponds to the specified expanded name. +description: Learn how the element (XElement dynamic property) uses an indexer to retrieve the child element instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: diff --git a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md index 474d53eff7..3c8d39636b 100644 --- a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Elements (XElement dynamic property) -description: Learn how the Elements (XElement dynamic property) uses an indexer to retrieve the child elements of the current element that match the specified expanded name. +description: Learn how the element (XElement dynamic property) uses an indexer to retrieve the child elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: diff --git a/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md b/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md index 84ccc152c3..ff065a7413 100644 --- a/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md +++ b/dotnet-desktop-guide/framework/wpf/data/how-to-sort-data-in-a-view.md @@ -1,6 +1,6 @@ --- title: "How to: Sort Data in a View" -description: Learn various techniques to sort data in a view including related tutorials and several provided code examples. +description: Learn about various techniques to sort data in a view including related tutorials and several provided code examples. ms.date: "03/30/2017" dev_langs: - "csharp" From 5c4fabb8e5543fb3c9aca0d9618bedee2bdcb1dc Mon Sep 17 00:00:00 2001 From: annmariehitchcock <106630431+annmariehitchcock@users.noreply.github.com> Date: Wed, 20 Jul 2022 14:21:40 -0700 Subject: [PATCH 3/4] Validation final fix --- .../framework/wpf/data/data-templating-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md index ba6a7625f2..0f4a246238 100644 --- a/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md +++ b/dotnet-desktop-guide/framework/wpf/data/data-templating-overview.md @@ -61,7 +61,7 @@ The WPF data templating model provides you with great flexibility to define the Now our looks like the following: - ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox displaying the tasks as TextBlock elements. The task Email, Email clients, Priority 1 is highlighted in blue.](./media/datatemplatingintro-fig3.png "DataTemplatingIntro_fig3") + ![Screenshot of the Introduction to Data Templating Sample window showing the My Task List ListBox displaying the tasks as TextBlock elements.](./media/datatemplatingintro-fig3.png "DataTemplatingIntro_fig3") ### Creating the DataTemplate as a Resource From 4aaaa767bf6ddc7ffc8884b9a9e1335116587285 Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Mon, 25 Jul 2022 12:24:09 -0700 Subject: [PATCH 4/4] Apply suggestions from code review --- .../framework/wpf/data/attribute-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/descendants-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/element-xelement-dynamic-property.md | 2 +- .../framework/wpf/data/elements-xelement-dynamic-property.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md index e7579c1e39..8d45b57164 100644 --- a/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/attribute-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Attribute (XElement dynamic property) -description: Learn how the attribute (XElement dynamic property) uses an indexer to retrieve the attribute instance that corresponds to the specified expanded name. +description: Learn how the XElement.Attribute property uses an indexer to retrieve the attribute instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md index 47d060d516..40af35692e 100644 --- a/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/descendants-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Descendants (XElement dynamic property) -description: Learn how the descendants (XElement dynamic property) retrieves all the descendant elements of the current element that match the specified expanded name. +description: Learn how the XElement.Descendants property retrieves all the descendant elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference --- diff --git a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md index 39e3223824..0bc19d862a 100644 --- a/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/element-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Element (XElement dynamic property) -description: Learn how the element (XElement dynamic property) uses an indexer to retrieve the child element instance that corresponds to the specified expanded name. +description: Learn how the XElement.Element property uses an indexer to retrieve the child element instance that corresponds to the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: diff --git a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md index 3c8d39636b..ebd8b79e1d 100644 --- a/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md +++ b/dotnet-desktop-guide/framework/wpf/data/elements-xelement-dynamic-property.md @@ -1,6 +1,6 @@ --- title: Elements (XElement dynamic property) -description: Learn how the element (XElement dynamic property) uses an indexer to retrieve the child elements of the current element that match the specified expanded name. +description: Learn how the XElement.Elements property uses an indexer to retrieve the child elements of the current element that match the specified expanded name. ms.date: 10/22/2019 ms.topic: reference apiname: