diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-build-a-table-programmatically.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-build-a-table-programmatically.md index dae8d05..9cb2273 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-build-a-table-programmatically.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-build-a-table-programmatically.md @@ -1,6 +1,8 @@ --- title: "How to: Build a Table Programmatically" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to build a table programmatically. dev_langs: - "csharp" - "vb" @@ -11,13 +13,13 @@ ms.assetid: e3ca88f3-6e94-4b61-82fc-42104c10b761 # How to: Build a Table Programmatically The following examples show how to programmatically create a and populate it with content. The contents of the table are apportioned into five rows (represented by objects contained in a object) and six columns (represented by objects). The rows are used for different presentation purposes, including a title row intended to title the entire table, a header row to describe the columns of data in the table, and a footer row with summary information. Note that the notion of "title", "header", and "footer" rows are not inherent to the table; these are simply rows with different characteristics. Table cells contain the actual content, which can be comprised of text, images, or nearly any other [!INCLUDE[TLA#tla_ui](../../../includes/tlasharptla-ui-md.md)] element. -## Example +## Create a table First, a is created to host the , and a new is created and added to the contents of the . [!code-csharp[TableSnippets#_TableCreate](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets/CSharp/Table.cs#_tablecreate)] [!code-vb[TableSnippets#_TableCreate](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets/VisualBasic/Table.vb#_tablecreate)] -## Example +## Add columns Next, six objects are created and added to the table's collection, with some formatting applied. > [!NOTE] @@ -26,25 +28,25 @@ The following examples show how to programmatically create a property of a . -## Example +## Create button elements Two elements are created, each representing one of the possible values of . When a button is clicked, the associated property value is applied to the contents of a named `tf1`. The property value is also written to a named `txt1`. [!code-xaml[FlowDirectionSnippets#_FlowDirectionXAML](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDirectionSnippets/CSharp/Window1.xaml#_flowdirectionxaml)] -## Example +## C# code example The events associated with the button clicks defined above are handled in a C# code-behind file. [!code-csharp[FlowDirectionSnippets#_FlowDirection](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDirectionSnippets/CSharp/Window1.xaml.cs#_flowdirection)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-create-a-data-object.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-create-a-data-object.md index 14723e9..d42178c 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-create-a-data-object.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-create-a-data-object.md @@ -1,6 +1,8 @@ --- title: "How to: Create a Data Object" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to create a Data Object. dev_langs: - "csharp" - "vb" @@ -13,7 +15,7 @@ ms.assetid: 022fa142-717d-4fea-a53c-3b52e9d91aff # How to: Create a Data Object The following examples show various ways to create a data object using the constructors provided by the class. -## Example +## DataObject(Object) constructor ### Description The following example code creates a new data object and uses one of the overloaded constructors () to initialize the data object with a string. In this case, an appropriate data format is determined automatically according to the stored data's type, and auto-converting of the stored data is allowed by default. @@ -29,7 +31,7 @@ The following examples show various ways to create a data object using the const [!code-csharp[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_Simple_Condensed](~/samples/snippets/csharp/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/CSharp/Window1.xaml.cs#_dragdrop_createdataobject_simple_condensed)] [!code-vb[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_Simple_Condensed](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/visualbasic/window1.xaml.vb#_dragdrop_createdataobject_simple_condensed)] -## Example +## DataObject(String, Object) constructor ### Description The following example code creates a new data object and uses one of the overloaded constructors () to initialize the data object with a string and a specified data format. In this case the data format is specified by a string; the class provides a set of pre-defined type strings. Auto-converting of the stored data is allowed by default. @@ -45,7 +47,7 @@ The following examples show various ways to create a data object using the const [!code-csharp[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_TypeString_Condensed](~/samples/snippets/csharp/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/CSharp/Window1.xaml.cs#_dragdrop_createdataobject_typestring_condensed)] [!code-vb[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_TypeString_Condensed](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/visualbasic/window1.xaml.vb#_dragdrop_createdataobject_typestring_condensed)] -## Example +## DataObject() constructor ### Description The following example code creates a new data object and uses one of the overloaded constructors () to initialize the data object with a string and a specified data format. In this case the data format is specified by a parameter. Auto-converting of the stored data is allowed by default. @@ -61,7 +63,7 @@ The following examples show various ways to create a data object using the const [!code-csharp[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_Type_Condensed](~/samples/snippets/csharp/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/CSharp/Window1.xaml.cs#_dragdrop_createdataobject_type_condensed)] [!code-vb[DragDrop_DragDropMiscCode#_DragDrop_CreateDataObject_Type_Condensed](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/visualbasic/window1.xaml.vb#_dragdrop_createdataobject_type_condensed)] -## Example +## DataObject(String, Object, Boolean) constructor ### Description The following example code creates a new data object and uses one of the overloaded constructors () to initialize the data object with a string and a specified data format. In this case the data format is specified by a string; the class provides a set of pre-defined type strings. This particular constructor overload enables the caller to specify whether auto-converting is allowed. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-determine-if-a-data-format-is-present-in-a-data-object.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-determine-if-a-data-format-is-present-in-a-data-object.md index 30c909b..a05d15d 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-determine-if-a-data-format-is-present-in-a-data-object.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-determine-if-a-data-format-is-present-in-a-data-object.md @@ -1,6 +1,8 @@ --- title: "How to: Determine if a Data Format is Present in a Data Object" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to determine if a Data Format is present in a Data Object. dev_langs: - "csharp" - "vb" @@ -13,7 +15,7 @@ ms.assetid: e487a454-c9fc-4e53-aeaa-c458d059ad4c # How to: Determine if a Data Format is Present in a Data Object The following examples show how to use the various method overloads to query whether a particular data format is present in a data object. -## Example +## GetDataPresent(String) overload ### Description The following example code uses the overload to query for the presence of a particular data format by descriptor string. @@ -22,7 +24,7 @@ The following examples show how to use the various overload to query for the presence of a particular data format by type. @@ -31,7 +33,7 @@ The following examples show how to use the various overload to query for data by descriptor string, and specifying how to treat auto-convertible data formats. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-flip-a-uielement-horizontally-or-vertically.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-flip-a-uielement-horizontally-or-vertically.md index 25490dd..51e305a 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-flip-a-uielement-horizontally-or-vertically.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-flip-a-uielement-horizontally-or-vertically.md @@ -1,6 +1,8 @@ --- title: "How to: Flip a UIElement Horizontally or Vertically" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to flip a UIElement horizontally or vertically. helpviewer_keywords: - "flipping UIElements [WPF]" - "UIElements [WPF], flipping" @@ -9,7 +11,7 @@ ms.assetid: 02c6730f-65c0-40d5-a553-4cb663721882 # How to: Flip a UIElement Horizontally or Vertically This example shows how to use a to flip a horizontally or vertically. In this example, a control (a type of ) is flipped by applying a to its property. -## Example +## Illustration to flip a button The following illustration shows the button to flip. ![A button with no transform](./media/graphicsmm-buttonflipbeforeflip.gif "graphicsmm_buttonflipbeforeflip") @@ -19,7 +21,7 @@ The UIElement to flip [!code-xaml[Transforms_snip#GraphicsMMButtonWithoutFlip](~/samples/snippets/csharp/VS_Snippets_Wpf/Transforms_snip/CS/FlipExample.xaml#graphicsmmbuttonwithoutflip)] -## Example +## Illustration to flip a button horizontally To flip the button horizontally, create a and set its property to -1. Apply the to the button's property. [!code-xaml[Transforms_snip#GraphicsMMFlipButtonExample1](~/samples/snippets/csharp/VS_Snippets_Wpf/Transforms_snip/CS/FlipExample.xaml#graphicsmmflipbuttonexample1)] @@ -27,7 +29,7 @@ The UIElement to flip ![A button flipped horizontally about (0,0)](./media/graphicsmm-buttonfliphorizontalflip-displaced.gif "graphicsmm_buttonfliphorizontalflip_displaced") The button after applying the ScaleTransform -## Example +## Illustration to flip a button at its place As you can see from the previous illustration, the button was flipped, but it was also moved. That's because the button was flipped from its top left corner. To flip the button in place, you want to apply the to its center, not its corner. An easy way to apply the to the buttons center is to set the button's property to 0.5, 0.5. [!code-xaml[Transforms_snip#GraphicsMMFlipButtonExample2](~/samples/snippets/csharp/VS_Snippets_Wpf/Transforms_snip/CS/FlipExample.xaml#graphicsmmflipbuttonexample2)] @@ -35,7 +37,7 @@ The button after applying the ScaleTransform ![A button flipped horizontally about its center](./media/graphicsmm-buttonfliphorizontalflip-inplace.gif "graphicsmm_buttonfliphorizontalflip_inplace") The button with a RenderTransformOrigin of 0.5, 0.5 -## Example +## Illustration to flip a button vertically To flip the button vertically, set the object's property instead of its property. [!code-xaml[Transforms_snip#GraphicsMMVerticalFlipButtonExample2](~/samples/snippets/csharp/VS_Snippets_Wpf/Transforms_snip/CS/FlipExample.xaml#graphicsmmverticalflipbuttonexample2)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-list-the-data-formats-in-a-data-object.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-list-the-data-formats-in-a-data-object.md index 1777a92..1f1e8fe 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-list-the-data-formats-in-a-data-object.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-list-the-data-formats-in-a-data-object.md @@ -1,6 +1,8 @@ --- title: "How to: List the Data Formats in a Data Object" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to list the Data Formats in a Data Object. dev_langs: - "csharp" - "vb" @@ -13,7 +15,7 @@ ms.assetid: 18e7ba4b-ccef-4815-ae2d-3a32891010c0 # How to: List the Data Formats in a Data Object The following examples show how to use the method overloads get an array of strings denoting each data format that is available in a data object. -## Example +## GetFormats() overload for all Data Formats ### Description The following example code uses the overload to get an array of strings denoting all data formats available in a data object (both native and auto-convertible). @@ -22,7 +24,7 @@ The following examples show how to use the overload to get an array of strings denoting only data formats available in a data object (auto-convertible data formats are filtered). diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-localize-an-application.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-localize-an-application.md index 5b11d44..c58a73a 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-localize-an-application.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-localize-an-application.md @@ -1,6 +1,8 @@ --- title: Localize an app ms.date: 03/30/2017 +ms.custom: devdivchpfy22 +description: Learn how to localize an application. dev_langs: - "csharp" - "vb" @@ -103,8 +105,8 @@ Now that you have created the LocBaml tool, you are ready to use it to parse Hel 3. When you run LocBaml to parse files, the output consists of seven fields delimited by commas (.csv files) or tabs (.txt files). The following shows the parsed .csv file for the HelloApp.resources.dll: - | | - |-| + | Parsed .csv file | + |------------------| |HelloApp.g.en-US.resources:window1.baml,Stack1:System.Windows.Controls.StackPanel.$Content,Ignore,FALSE, FALSE,,#Text1;#Text2;| |HelloApp.g.en-US.resources:window1.baml,Text1:System.Windows.Controls.TextBlock.$Content,None,TRUE, TRUE,,Hello World| |HelloApp.g.en-US.resources:window1.baml,Text2:System.Windows.Controls.TextBlock.$Content,None,TRUE, TRUE,,Goodbye World| diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-a-flowdocument-through-the-blocks-property.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-a-flowdocument-through-the-blocks-property.md index bd4bfda..867b8ba 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-a-flowdocument-through-the-blocks-property.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-a-flowdocument-through-the-blocks-property.md @@ -1,6 +1,8 @@ --- title: "How to: Manipulate a FlowDocument through the Blocks Property" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to manipulate a FlowDocument through the Blocks property. dev_langs: - "csharp" - "vb" @@ -12,31 +14,31 @@ ms.assetid: cbb7291e-3f1b-433e-9e16-f4d93ced14e8 # How to: Manipulate a FlowDocument through the Blocks Property These examples demonstrate some of the more common operations that can be performed on a through the property. -## Example +## Create a new FlowDocument The following example creates a new and then appends a new element to the . [!code-csharp[FlowDocumentSnippets#_FlowDocumentBlocksAdd](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_flowdocumentblocksadd)] [!code-vb[FlowDocumentSnippets#_FlowDocumentBlocksAdd](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_flowdocumentblocksadd)] -## Example +## Create a new Paragraph element The following example creates a new element and inserts it at the beginning of the . [!code-csharp[FlowDocumentSnippets#_FlowDocumentBlocksInsert](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_flowdocumentblocksinsert)] [!code-vb[FlowDocumentSnippets#_FlowDocumentBlocksInsert](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_flowdocumentblocksinsert)] -## Example +## Get top-level Block elements The following example gets the number of top-level elements contained in the . [!code-csharp[FlowDocumentSnippets#_FlowDocumentBlocksCount](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_flowdocumentblockscount)] [!code-vb[FlowDocumentSnippets#_FlowDocumentBlocksCount](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_flowdocumentblockscount)] -## Example +## Delete the last Block element The following example deletes the last element in the . [!code-csharp[FlowDocumentSnippets#_FlowDocumentBlocksRemoveLast](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_flowdocumentblocksremovelast)] [!code-vb[FlowDocumentSnippets#_FlowDocumentBlocksRemoveLast](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_flowdocumentblocksremovelast)] -## Example +## Clear all the Block contents The following example clears all of the contents ( elements) from the . [!code-csharp[FlowDocumentSnippets#_FlowDocumentBlocksClear](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_flowdocumentblocksclear)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-blocks-property.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-blocks-property.md index dbd92b6..486ded3 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-blocks-property.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-blocks-property.md @@ -1,6 +1,8 @@ --- title: "How to: Manipulate Flow Content Elements through the Blocks Property" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to manipulate Flow Content Elements through the Blocks property. dev_langs: - "csharp" - "vb" @@ -26,31 +28,31 @@ These examples demonstrate some of the more common operations that can be perfor These examples happen to use as the flow content element, but these techniques are applicable to all elements that host a flow content element collection. -## Example +## Create a new Section The following example creates a new and then uses the **Add** method to add a new Paragraph to the **Section** contents. [!code-csharp[FlowDocumentSnippets#_SectionBlocksAdd](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_sectionblocksadd)] [!code-vb[FlowDocumentSnippets#_SectionBlocksAdd](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_sectionblocksadd)] -## Example +## Create a new Paragraph element The following example creates a new element and inserts it at the beginning of the . [!code-csharp[FlowDocumentSnippets#_SectionBlocksInsert](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_sectionblocksinsert)] [!code-vb[FlowDocumentSnippets#_SectionBlocksInsert](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_sectionblocksinsert)] -## Example +## Get the top-level Block elements in the Section The following example gets the number of top-level elements contained in the . [!code-csharp[FlowDocumentSnippets#_SectionBlocksCount](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_sectionblockscount)] [!code-vb[FlowDocumentSnippets#_SectionBlocksCount](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_sectionblockscount)] -## Example +## Delete the last Block element in the Section The following example deletes the last element in the . [!code-csharp[FlowDocumentSnippets#_SectionBlocksRemoveLast](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_sectionblocksremovelast)] [!code-vb[FlowDocumentSnippets#_SectionBlocksRemoveLast](~/samples/snippets/visualbasic/VS_Snippets_Wpf/FlowDocumentSnippets/visualbasic/window1.xaml.vb#_sectionblocksremovelast)] -## Example +## Clear all the Block element content from the Section The following example clears all of the contents ( elements) from the . [!code-csharp[FlowDocumentSnippets#_SectionBlocksClear](~/samples/snippets/csharp/VS_Snippets_Wpf/FlowDocumentSnippets/CSharp/Window1.xaml.cs#_sectionblocksclear)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-inlines-property.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-inlines-property.md index 5164bb6..35bcce6 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-inlines-property.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-flow-content-elements-through-the-inlines-property.md @@ -1,6 +1,8 @@ --- title: "How to: Manipulate Flow Content Elements through the Inlines Property" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to manipulate Flow Content Elements through the Inlines property. dev_langs: - "csharp" - "vb" @@ -28,31 +30,31 @@ These examples demonstrate some of the more common operations that can be perfor These examples happen to use as the flow content element, but these techniques are applicable to all elements or controls that host an collection. -## Example +## Create a new Span object The following example creates a new object, and then uses the **Add** method to add two text runs as content children of the . [!code-csharp[SpanSnippets#_SpanInlinesAdd](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_spaninlinesadd)] [!code-vb[SpanSnippets#_SpanInlinesAdd](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_spaninlinesadd)] -## Example +## Create a new Run element The following example creates a new element and inserts it at the beginning of the . [!code-csharp[SpanSnippets#_SpanInlinesInsert](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_spaninlinesinsert)] [!code-vb[SpanSnippets#_SpanInlinesInsert](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_spaninlinesinsert)] -## Example +## Get the top-level Inline elements in the Span The following example gets the number of top-level elements contained in the . [!code-csharp[SpanSnippets#_SpanInlinesCount](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_spaninlinescount)] [!code-vb[SpanSnippets#_SpanInlinesCount](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_spaninlinescount)] -## Example +## Delete the last Inline element in the Span The following example deletes the last element in the . [!code-csharp[SpanSnippets#_SpanInlinesRemoveLast](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_spaninlinesremovelast)] [!code-vb[SpanSnippets#_SpanInlinesRemoveLast](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb#_spaninlinesremovelast)] -## Example +## Clear all the Inline element content from the Span The following example clears all of the contents ( elements) from the . [!code-csharp[SpanSnippets#_SpanInlinesClear](~/samples/snippets/csharp/VS_Snippets_Wpf/SpanSnippets/CSharp/Window1.xaml.cs#_spaninlinesclear)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-columns-through-the-columns-property.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-columns-through-the-columns-property.md index ed48d12..6fc0bbb 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-columns-through-the-columns-property.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-columns-through-the-columns-property.md @@ -1,6 +1,8 @@ --- title: "How to: Manipulate a Table's Columns through the Columns Property" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to manipulate a Table's Columns through the Columns property. dev_langs: - "csharp" - "vb" @@ -14,13 +16,13 @@ ms.assetid: 3f8884f4-7e1f-456b-be06-fbd3cf469bf3 # How to: Manipulate a Table's Columns through the Columns Property This example demonstrates some of the more common operations that can be performed on a table's columns through the property. -## Example +## Create a new table The following example creates a new table and then uses the method to add columns to the table's collection. [!code-csharp[TableSnippets2#_Table_Columns_Add](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_add)] [!code-vb[TableSnippets2#_Table_Columns_Add](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_add)] -## Example +## Insert a new TableColumn The following example inserts a new . The new column is inserted at index position 0, making it the new first column in the table. > [!NOTE] @@ -29,31 +31,31 @@ This example demonstrates some of the more common operations that can be perform [!code-csharp[TableSnippets2#_Table_Columns_Insert](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_insert)] [!code-vb[TableSnippets2#_Table_Columns_Insert](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_insert)] -## Example +## Access properties in the TableColumnCollection The following example accesses some arbitrary properties on columns in the collection, referring to particular columns by index. [!code-csharp[TableSnippets2#_Table_Columns_Manip](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_manip)] [!code-vb[TableSnippets2#_Table_Columns_Manip](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_manip)] -## Example +## Get the number of columns in a table The following example gets the number of columns currently hosted by the table. [!code-csharp[TableSnippets2#_Table_Columns_Count](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_count)] [!code-vb[TableSnippets2#_Table_Columns_Count](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_count)] -## Example +## Remove a column by reference The following example removes a particular column by reference. [!code-csharp[TableSnippets2#_Table_Columns_DelRef](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_delref)] [!code-vb[TableSnippets2#_Table_Columns_DelRef](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_delref)] -## Example +## Remove a column by index The following example removes a particular column by index. [!code-csharp[TableSnippets2#_Table_Columns_DelIndex](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_delindex)] [!code-vb[TableSnippets2#_Table_Columns_DelIndex](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_columns_delindex)] -## Example +## Remove all the columns The following example removes all columns from the table's columns collection. [!code-csharp[TableSnippets2#_Table_Columns_Clear](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_columns_clear)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-row-groups-through-the-rowgroups-property.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-row-groups-through-the-rowgroups-property.md index 2f3f49f..d7f16bb 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-row-groups-through-the-rowgroups-property.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-manipulate-table-row-groups-through-the-rowgroups-property.md @@ -1,6 +1,8 @@ --- title: "How to: Manipulate a Table's Row Groups through the RowGroups Property" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to manipulate a Table's Row Groups through the RowGroups property. dev_langs: - "csharp" - "vb" @@ -14,13 +16,13 @@ ms.assetid: ea61440f-08ae-44ed-b314-5716aaaae3ed # How to: Manipulate a Table's Row Groups through the RowGroups Property This example demonstrates some of the more common operations that can be performed on a table's row groups through the property. -## Example +## Create a new table using Add method The following example creates a new table and then uses the method to add columns to the table's collection. [!code-csharp[TableSnippets2#_Table_RowGroups_Add](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_add)] [!code-vb[TableSnippets2#_Table_RowGroups_Add](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_add)] -## Example +## Inserts a new TableRowGroup The following example inserts a new . The new column is inserted at index position 0, making it the new first row group in the table. > [!NOTE] @@ -29,49 +31,49 @@ This example demonstrates some of the more common operations that can be perform [!code-csharp[TableSnippets2#_Table_RowGroups_Insert](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_insert)] [!code-vb[TableSnippets2#_Table_RowGroups_Insert](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_insert)] -## Example +## Add rows to the TableRowGroup The following example adds several rows to a particular (specified by index) in the table. [!code-csharp[TableSnippets2#_Table_RowGroups_AddRows](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_addrows)] [!code-vb[TableSnippets2#_Table_RowGroups_AddRows](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_addrows)] -## Example +## Access row properties in the first row group The following example accesses some arbitrary properties on rows in the first row group in the table. [!code-csharp[TableSnippets2#_Table_RowGroups_ManipRows](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_maniprows)] [!code-vb[TableSnippets2#_Table_RowGroups_ManipRows](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_maniprows)] -## Example +## Add cells to a TableRow The following example adds several cells to a particular (specified by index) in the table. [!code-csharp[TableSnippets2#_Table_RowGroups_AddCells](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_addcells)] [!code-vb[TableSnippets2#_Table_RowGroups_AddCells](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_addcells)] -## Example +## Access methods and properties on cells in the first row group The following example access some arbitrary methods and properties on cells in the first row in the first row group. [!code-csharp[TableSnippets2#_Table_RowGroups_ManipCells](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_manipcells)] [!code-vb[TableSnippets2#_Table_RowGroups_ManipCells](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_manipcells)] -## Example +## Get the number of TableRowGroup elements in a table The following example returns the number of elements hosted by the table. [!code-csharp[TableSnippets2#_Table_RowGroups_Count](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_count)] [!code-vb[TableSnippets2#_Table_RowGroups_Count](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_count)] -## Example +## Remove a row group by reference The following example removes a particular row group by reference. [!code-csharp[TableSnippets2#_Table_RowGroups_DelRef](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_delref)] [!code-vb[TableSnippets2#_Table_RowGroups_DelRef](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_delref)] -## Example +## Remove a row group by index The following example removes a particular row group by index. [!code-csharp[TableSnippets2#_Table_RowGroups_DelIndex](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_delindex)] [!code-vb[TableSnippets2#_Table_RowGroups_DelIndex](~/samples/snippets/visualbasic/VS_Snippets_Wpf/TableSnippets2/visualbasic/window1.xaml.vb#_table_rowgroups_delindex)] -## Example +## Remove all row groups from the table's row groups collection The following example removes all row groups from the table's row groups collection. [!code-csharp[TableSnippets2#_Table_RowGroups_Clear](~/samples/snippets/csharp/VS_Snippets_Wpf/TableSnippets2/CSharp/Window1.xaml.cs#_table_rowgroups_clear)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-retrieve-data-in-a-particular-data-format.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-retrieve-data-in-a-particular-data-format.md index d6563ec..92756f3 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-retrieve-data-in-a-particular-data-format.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-retrieve-data-in-a-particular-data-format.md @@ -1,6 +1,8 @@ --- title: "How to: Retrieve Data in a Particular Data Format" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to retrieve Data in a particular Data Format. dev_langs: - "csharp" - "vb" @@ -13,7 +15,7 @@ ms.assetid: a625acf3-1144-44cd-add7-456aefc3859f # How to: Retrieve Data in a Particular Data Format The following examples show how to retrieve data from a data object in a specified format. -## Example +## Use the GetDataPresent(String) overload to retrieve the data ### Description The following example code uses the overload to first check if a specified data format is available (natively or by auto-convert); if the specified format is available, the example retrieves the data by using the method. @@ -22,7 +24,7 @@ The following examples show how to retrieve data from a data object in a specifi [!code-csharp[DragDrop_DragDropMiscCode#_DragDrop_GetSpecificDataFormat](~/samples/snippets/csharp/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/CSharp/Window1.xaml.cs#_dragdrop_getspecificdataformat)] [!code-vb[DragDrop_DragDropMiscCode#_DragDrop_GetSpecificDataFormat](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DragDrop_DragDropMiscCode/visualbasic/window1.xaml.vb#_dragdrop_getspecificdataformat)] -## Example +## Use the GetDataPresent(String, Boolean) overload to retrieve the data ### Description The following example code uses the overload to first check if a specified data format is available natively (auto-convertible data formats are filtered); if the specified format is available, the example retrieves the data by using the method. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/how-to-rotate-ink.md b/dotnet-desktop-guide/framework/wpf/advanced/how-to-rotate-ink.md index e7b631d..54b209f 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/how-to-rotate-ink.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/how-to-rotate-ink.md @@ -1,6 +1,8 @@ --- title: "How to: Rotate Ink" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to rotate Ink. dev_langs: - "csharp" - "vb" @@ -10,14 +12,14 @@ helpviewer_keywords: ms.assetid: fac36cc9-dd01-41ca-9bde-9d33e3790bbe --- # How to: Rotate Ink -## Example +## Example to rotate Ink The following example copies the ink from an to a that contains an . When the application copies the ink, it also rotates the ink 90 degrees clockwise. [!code-xaml[HowToRotateInk#1](~/samples/snippets/csharp/VS_Snippets_Wpf/HowToRotateInk/CSharp/Window1.xaml#1)] [!code-csharp[HowToRotateInk#2](~/samples/snippets/csharp/VS_Snippets_Wpf/HowToRotateInk/CSharp/Window1.xaml.cs#2)] -## Example +## Adorner for Strokes The following example is a custom that rotates the strokes on an . [!code-csharp[AdornerForStrokes#1](~/samples/snippets/csharp/VS_Snippets_Wpf/AdornerForStrokes/CSharp/RotatingAdornerForStrokes.cs#1)] diff --git a/dotnet-desktop-guide/framework/wpf/advanced/localization-attributes-and-comments.md b/dotnet-desktop-guide/framework/wpf/advanced/localization-attributes-and-comments.md index 1e1f81c..f6991e6 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/localization-attributes-and-comments.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/localization-attributes-and-comments.md @@ -1,6 +1,8 @@ --- title: "Localization Attributes and Comments" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn how to use localization attributes and comments. helpviewer_keywords: - "localization [WPF], attributes" - "localization [WPF], comments" @@ -10,7 +12,7 @@ ms.assetid: ead2d9ac-b709-4ec1-a924-39927a29d02f [!INCLUDE[TLA#tla_winclient](../../../includes/tlasharptla-winclient-md.md)] localization comments are properties, inside XAML source code, supplied by developers to provide rules and hints for localization. [!INCLUDE[TLA#tla_winclient](../../../includes/tlasharptla-winclient-md.md)] localization comments contain two sets of information: localizability attributes and free-form localization comments. Localizability attributes are used by the [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] Localization API to indicate which resources are to be localized. Free-form comments are any information that the application author wants to include. -## Localization Comments +## Add Localization Comments If markup application authors have requirements for specific elements in XAML, such as constraints on text length, font family, or font size, they can convey this information to localizers with comments in the XAML code. The process for adding comments to source code is as follows: 1. Application developer adds localization comments to XAML source code. diff --git a/dotnet-desktop-guide/framework/wpf/advanced/mc-ignorable-attribute.md b/dotnet-desktop-guide/framework/wpf/advanced/mc-ignorable-attribute.md index 90ac579..ffd4aed 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/mc-ignorable-attribute.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/mc-ignorable-attribute.md @@ -1,6 +1,8 @@ --- title: "mc:Ignorable Attribute" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn about the mc Ignorable attribute. helpviewer_keywords: - "mc XML namespace prefix [WPF]" - "mc:Ignorable attribute" @@ -38,8 +40,8 @@ Specifies which XML namespace prefixes encountered in a markup file may be ignor ## XAML Values -||| -|-|-| +| Value | Description | +|-------|-------------| |*ignorablePrefix, ignorablePrefix1, etc.*|Any valid prefix string, per the XML 1.0 specification.| |*ignorableUri*|Any valid URI for designating a namespace, per the XML 1.0 specification.| |*ThisElementCanBeIgnored*|An element that can be ignored by [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)] processor implementations, if the underlying type cannot be resolved.| diff --git a/dotnet-desktop-guide/framework/wpf/advanced/mc-processcontent-attribute.md b/dotnet-desktop-guide/framework/wpf/advanced/mc-processcontent-attribute.md index e0aa5b5..3649c61 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/mc-processcontent-attribute.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/mc-processcontent-attribute.md @@ -1,6 +1,8 @@ --- title: "mc:ProcessContent Attribute" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn about the mc ProcessContent attribute. helpviewer_keywords: - "mc:ProcessContent attribute" - "XAML [WPF], mc:ProcessContent attribute" @@ -27,8 +29,8 @@ Specifies which [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md. ## XAML Values -||| -|-|-| +| Value | Description | +|-------|-------------| |*ignorablePrefix*|Any valid prefix string, per the XML 1.0 specification.| |*ignorableUri*|Any valid URI for designating a namespace, per the XML 1.0 specification.| |*ThisElementCanBeIgnored*|An element that can be ignored by [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)] processor implementations, if the underlying type cannot be resolved.| diff --git a/dotnet-desktop-guide/framework/wpf/advanced/presentationoptions-freeze-attribute.md b/dotnet-desktop-guide/framework/wpf/advanced/presentationoptions-freeze-attribute.md index d9175ef..0f5ebda 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/presentationoptions-freeze-attribute.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/presentationoptions-freeze-attribute.md @@ -1,6 +1,8 @@ --- title: "PresentationOptions:Freeze Attribute" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn about the Freeze attribute. helpviewer_keywords: - "Freeze attribute [WPF]" - "Freezable elements [WPF]" @@ -23,8 +25,8 @@ Sets the state to `true` on the cont ## XAML Values -||| -|-|-| +| Value| Description| +|------|------------| |`PresentationOptions`|An XML namespace prefix, which can be any valid prefix string, per the XML 1.0 specification. The prefix `PresentationOptions` is used for identification purposes in this documentation.| |`freezableElement`|An element that instantiates any derived class of .| diff --git a/dotnet-desktop-guide/framework/wpf/advanced/relativesource-markupextension.md b/dotnet-desktop-guide/framework/wpf/advanced/relativesource-markupextension.md index 68c9948..e9f8c86 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/relativesource-markupextension.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/relativesource-markupextension.md @@ -2,6 +2,7 @@ title: "RelativeSource MarkupExtension" description: Specifies properties of a RelativeSource binding source, within a Binding Markup Extension, or when setting the RelativeSource property of a Binding in XAML. ms.date: "03/30/2017" +ms.custom: devdivchpfy22 f1_keywords: - "RelativeSource" helpviewer_keywords: @@ -52,8 +53,8 @@ Specifies properties of a binding sour ## XAML Values -||| -|-|-| +| Value | Description | +|-------|-------------| |`modeEnumValue`|One of the following:

- The string token `Self`; corresponds to a as created with its property set to .
- The string token `TemplatedParent`; corresponds to a as created with its property set to .
- The string token `PreviousData`; corresponds to a as created with its property set to .
- See below for information on `FindAncestor` mode.| |`FindAncestor`|The string token `FindAncestor`. Using this token enters a mode whereby a `RelativeSource` specifies an ancestor type and optionally an ancestor level. This corresponds to a as created with its property set to .| |`typeName`|Required for `FindAncestor` mode. The name of a type, which fills the property.| diff --git a/dotnet-desktop-guide/framework/wpf/advanced/savetohistory-function-wpf-unmanaged-api-reference.md b/dotnet-desktop-guide/framework/wpf/advanced/savetohistory-function-wpf-unmanaged-api-reference.md index 4c8cbf8..694366e 100644 --- a/dotnet-desktop-guide/framework/wpf/advanced/savetohistory-function-wpf-unmanaged-api-reference.md +++ b/dotnet-desktop-guide/framework/wpf/advanced/savetohistory-function-wpf-unmanaged-api-reference.md @@ -2,6 +2,8 @@ title: "SaveToHistory Function - WPF unmanaged API reference" titleSuffix: "" ms.date: "03/30/2017" +ms.custom: devdivchpfy22 +description: Learn about the SaveToHistory function. dev_langs: - "cpp" api_name: @@ -27,8 +29,6 @@ HRESULT SaveToHistory( pHistoryStream A pointer to the history stream. -## Requirements - ## Requirements **Platforms:** See [.NET Framework System Requirements](/dotnet/framework/get-started/system-requirements).