diff --git a/_zip/missingapi.yml b/_zip/missingapi.yml
index 0472af27e42..fbd4a409388 100644
--- a/_zip/missingapi.yml
+++ b/_zip/missingapi.yml
@@ -35,6 +35,10 @@ references:
name: AssistantClient
fullname: OpenAI.Assistants.AssistantClient
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
+- uid: OpenAI.Audio.AudioClient
+ name: AudioClient
+ fullname: OpenAI.Audio.AudioClient
+ href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
- uid: OpenAI.Chat.ChatClient
name: ChatClient
fullname: OpenAI.Chat.ChatClient
@@ -63,6 +67,10 @@ references:
name: RealtimeConversationSession
fullname: OpenAI.RealtimeConversation.RealtimeConversationSession
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
+- uid: OpenAI.Responses.OpenAIResponseClient
+ name: OpenAIResponseClient
+ fullname: OpenAI.Responses.OpenAIResponseClient
+ href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
- uid: Polly.CircuitBreaker.CircuitBreakerStrategyOptions`1
name: CircuitBreakerStrategyOptions`1
fullname: Polly.CircuitBreaker.CircuitBreakerStrategyOptions`1
diff --git a/xml/System.Security.Cryptography/Rfc2898DeriveBytes.xml b/xml/System.Security.Cryptography/Rfc2898DeriveBytes.xml
index 3e89eeceacf..60486010b50 100644
--- a/xml/System.Security.Cryptography/Rfc2898DeriveBytes.xml
+++ b/xml/System.Security.Cryptography/Rfc2898DeriveBytes.xml
@@ -1039,7 +1039,7 @@ For more information about PBKDF2, see [RFC 2898](https://www.rfc-editor.org/inf
The key salt used to derive the key.
The number of iterations for the operation.
The hash algorithm to use to derive the key.
- The size of key to derive.
+ The size of the key to derive, in bytes.
Creates a PBKDF2 derived key from password bytes.A byte array containing the created PBKDF2 derived key.To be added.
@@ -1100,7 +1100,7 @@ For more information about PBKDF2, see [RFC 2898](https://www.rfc-editor.org/inf
The key salt used to derive the key.
The number of iterations for the operation.
The hash algorithm to use to derive the key.
- The size of key to derive.
+ The size of the key to derive, in bytes.
Creates a PBKDF2 derived key from password bytes.A byte array containing the created PBKDF2 derived key.To be added.
@@ -1207,7 +1207,7 @@ For more information about PBKDF2, see [RFC 2898](https://www.rfc-editor.org/inf
The key salt used to derive the key.
The number of iterations for the operation.
The hash algorithm to use to derive the key.
- The size of key to derive.
+ The size of the key to derive, in bytes.
Creates a PBKDF2 derived key from a password.A byte array of length that is filled with pseudo-random key bytes.
@@ -1215,9 +1215,7 @@ For more information about PBKDF2, see [RFC 2898](https://www.rfc-editor.org/inf
## Remarks
-The `password` will be converted to bytes using the UTF8 encoding. For
- other encodings, convert the password string to bytes using the appropriate
- and use .
+The `password` is converted to bytes using the UTF8 encoding. For other encodings, convert the password string to bytes using the appropriate and use .
]]>
@@ -1332,7 +1330,7 @@ The `password` will be converted to bytes using the UTF8 encoding. For
The key salt used to derive the key.
The number of iterations for the operation.
The hash algorithm to use to derive the key.
- The size of key to derive.
+ The size of the key to derive, in bytes.
Creates a PBKDF2 derived key from a password.A byte array of length that is filled with pseudo-random key bytes.
@@ -1340,9 +1338,7 @@ The `password` will be converted to bytes using the UTF8 encoding. For
## Remarks
-The `password` will be converted to bytes using the UTF8 encoding. For
- other encodings, convert the password string to bytes using the appropriate
- and use .
+The `password` is converted to bytes using the UTF8 encoding. For other encodings, convert the password string to bytes using the appropriate and use .
]]>
diff --git a/xml/System.Windows.Controls.Primitives/BulletDecorator.xml b/xml/System.Windows.Controls.Primitives/BulletDecorator.xml
index 7c65a810ac1..5ea77e6e949 100644
--- a/xml/System.Windows.Controls.Primitives/BulletDecorator.xml
+++ b/xml/System.Windows.Controls.Primitives/BulletDecorator.xml
@@ -238,7 +238,7 @@
## XAML Property Element Usage
-```
+```xaml
```
-
-
## Examples
The following examples show how to set the property.
diff --git a/xml/System.Windows.Controls.Primitives/ButtonBase.xml b/xml/System.Windows.Controls.Primitives/ButtonBase.xml
index abd8b966a15..9ae79e54e31 100644
--- a/xml/System.Windows.Controls.Primitives/ButtonBase.xml
+++ b/xml/System.Windows.Controls.Primitives/ButtonBase.xml
@@ -313,8 +313,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -382,8 +382,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -502,8 +502,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls.Primitives/GridViewRowPresenterBase.xml b/xml/System.Windows.Controls.Primitives/GridViewRowPresenterBase.xml
index 18a1fdb7ca3..c0a960f1cf8 100644
--- a/xml/System.Windows.Controls.Primitives/GridViewRowPresenterBase.xml
+++ b/xml/System.Windows.Controls.Primitives/GridViewRowPresenterBase.xml
@@ -95,8 +95,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls.Primitives/Popup.xml b/xml/System.Windows.Controls.Primitives/Popup.xml
index 8c2bd8f4e30..f1079dfa918 100644
--- a/xml/System.Windows.Controls.Primitives/Popup.xml
+++ b/xml/System.Windows.Controls.Primitives/Popup.xml
@@ -669,10 +669,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -1743,10 +1743,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls.Primitives/RangeBase.xml b/xml/System.Windows.Controls.Primitives/RangeBase.xml
index 71888a6db4e..c423aaf6508 100644
--- a/xml/System.Windows.Controls.Primitives/RangeBase.xml
+++ b/xml/System.Windows.Controls.Primitives/RangeBase.xml
@@ -685,8 +685,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
]]>
diff --git a/xml/System.Windows.Controls.Primitives/StatusBar.xml b/xml/System.Windows.Controls.Primitives/StatusBar.xml
index b3bac5af40a..6636de5a8b3 100644
--- a/xml/System.Windows.Controls.Primitives/StatusBar.xml
+++ b/xml/System.Windows.Controls.Primitives/StatusBar.xml
@@ -332,8 +332,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
]]>
diff --git a/xml/System.Windows.Controls.Ribbon/Ribbon.xml b/xml/System.Windows.Controls.Ribbon/Ribbon.xml
index 01810934933..186652d8858 100644
--- a/xml/System.Windows.Controls.Ribbon/Ribbon.xml
+++ b/xml/System.Windows.Controls.Ribbon/Ribbon.xml
@@ -178,19 +178,18 @@
```xaml
xmlns:ribbon="clr-namespace:System.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
...
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
```
]]>
@@ -519,14 +518,13 @@ xmlns:ribbon="clr-namespace:System.Windows.Controls.Ribbon;assembly=RibbonContro
```xaml
-
+
-
-
-
-
+
+
+
+
-
```
]]>
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonContextualTabGroup.xml b/xml/System.Windows.Controls.Ribbon/RibbonContextualTabGroup.xml
index edef1b689b5..26094943f07 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonContextualTabGroup.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonContextualTabGroup.xml
@@ -34,21 +34,18 @@
## Remarks
You use a *contextual tab* to display groups of commands that are relevant only in a particular context. Contextual tab groups are shown or hidden based on specified criteria. For example, an Ink Tools tab group might be shown when tablet input is detected, or a Picture Tools tab group might be shown when an Image object is selected.
-
-
## Examples
The following example shows a named **Pens** that is in the **Ink Tools** contextual tab group.
```xaml
-
+
-
-
-
-
+
+
+
+
-
```
]]>
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonGroup.xml b/xml/System.Windows.Controls.Ribbon/RibbonGroup.xml
index 1e56397bbc3..df49adbc3c1 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonGroup.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonGroup.xml
@@ -264,17 +264,17 @@
```xaml
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
```
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinition.xml b/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinition.xml
index 353b782df16..f27e3fae099 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinition.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinition.xml
@@ -33,19 +33,19 @@
## Examples
The following example shows a collection that specifies three different group sizes.
-```
+```xaml
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
```
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinitionBaseCollection.xml b/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinitionBaseCollection.xml
index cf3b38bfe63..a42f7b3d35c 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinitionBaseCollection.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonGroupSizeDefinitionBaseCollection.xml
@@ -25,57 +25,56 @@
Provides a friendly name for XAML usage of a collection.
- type to define a collection of objects as a resource.
-
-
-
-## Examples
- The following example shows how to define a as a resource with the x:Key `3ControlSizeDef` and reference it from the property of a .
-
-```
-xmlns:ribbon="clr-namespace:System.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
-
+ type to define a collection of objects as a resource.
+
+
+
+## Examples
+ The following example shows how to define a as a resource with the x:Key `3ControlSizeDef` and reference it from the property of a .
+
+```xaml
+xmlns:ribbon="clr-namespace:System.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
]]>Ribbon Layout and Resizing
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml b/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml
index d6c74173567..fd41593ab84 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonQuickAccessToolBar.xml
@@ -46,31 +46,28 @@
## Remarks
You add a to a control by specifying it as the content of the property using XAML [Property Element Syntax](/dotnet/framework/wpf/advanced/xaml-syntax-in-detail).
-```
+```xaml
...
-
```
The following list shows the typical placement of the in the hierarchy of ribbon elements.
--
-
- - property
-
- -
+-
- - , , , ,
+ - property
- - , ,
+ -
- -
+ - , , , ,
+ - , ,
+ -
## Examples
The following example shows a simple ribbon that is created by the Visual Studio 2010 template, with help pane and Quick Access Toolbar elements added.
diff --git a/xml/System.Windows.Controls.Ribbon/RibbonTab.xml b/xml/System.Windows.Controls.Ribbon/RibbonTab.xml
index 985e4024dc5..d05c42baed2 100644
--- a/xml/System.Windows.Controls.Ribbon/RibbonTab.xml
+++ b/xml/System.Windows.Controls.Ribbon/RibbonTab.xml
@@ -166,14 +166,13 @@
```xaml
-
+
-
-
-
-
+
+
+
+
-
```
]]>
@@ -344,31 +343,28 @@
|Identifier field||
|Metadata properties set to `true`|None|
-
-
## Examples
The following example shows how to specify the .
```xaml
-
-
- ...
-
-
- ...
-
-
- ...
-
-
- ...
-
-
- ...
-
+
+
+ ...
+
+
+ ...
+
+
+ ...
+
+
+ ...
+
+
+ ...
+
-
```
]]>
diff --git a/xml/System.Windows.Controls/AccessText.xml b/xml/System.Windows.Controls/AccessText.xml
index f85326593da..640611a29be 100644
--- a/xml/System.Windows.Controls/AccessText.xml
+++ b/xml/System.Windows.Controls/AccessText.xml
@@ -36,9 +36,9 @@
; the other underscores appear as normal text. If the underscore that you want converted to the access key is not the first underscore, use two consecutive underscores for any underscores that precede the one that you want to convert. For example, the following code contains an access key and displays as _Hello**W**orld:
+ If your content has multiple underscore characters, only the first one is converted into an . The other underscores appear as normal text. If the underscore that you want converted to the access key is not the first underscore, use two consecutive underscores for any underscores that precede the one that you want to convert. For example, the following code contains an access key and displays as _Hello**W**orld:
-```
+```xaml
__Hello_World
```
@@ -46,7 +46,7 @@
To use as a content host in a control style, set in the , as this example shows:
-```
+```xaml
```
@@ -442,10 +442,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -889,12 +889,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -1211,19 +1211,19 @@
## XAML Object Element Usage
-```
+```xaml
- or -
-
```
## XAML Values
- *_accessText*
+
+ *_accessText*\
A string that contains the underscore character. This value becomes an that handles access keys for the *object*. The access key is the character that immediately follows the underscore.
- *accessTextObject*
+ *accessTextObject*\
The .
@@ -1234,8 +1234,6 @@
|Identifier field||
|Metadata properties set to `true`|, |
-
-
## Examples
The following example creates an access key that customizes the first letter of the access key, which contains the mnemonic, and then sets the rest of the text by using the property.
@@ -1354,7 +1352,7 @@
## XAML Property Element Usage
-```
+```xaml
diff --git a/xml/System.Windows.Controls/CalendarDateRange.xml b/xml/System.Windows.Controls/CalendarDateRange.xml
index fc1e9ecbe56..ff046e11624 100644
--- a/xml/System.Windows.Controls/CalendarDateRange.xml
+++ b/xml/System.Windows.Controls/CalendarDateRange.xml
@@ -26,20 +26,20 @@
Represents a range of dates in a .
- objects are primarily used by the to specify a range of dates that are not selectable in a .
-
-
-
-## Examples
- The following example creates objects to specify which dates in a cannot be selected.
-
+ objects are primarily used by the to specify a range of dates that are not selectable in a .
+
+
+
+## Examples
+ The following example creates objects to specify which dates in a cannot be selected.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/Calendar/Overview/window1.xaml.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/calendarsnippets/visualbasic/window1.xaml.vb" id="Snippet3":::
- :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
-
+ :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
+
]]>
@@ -169,31 +169,31 @@
Gets the last date in the represented range.The last date in the represented range.
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *dateTimeString*
- A date that is in one of the formats that are listed in the [DateTime XAML Syntax](/dotnet/framework/wpf/advanced/datetime-xaml-syntax) topic.
-
-
-
-## Examples
- The following example creates objects to specify which dates in a cannot be selected.
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *dateTimeString*
+ A date that is in one of the formats that are listed in the [DateTime XAML Syntax](/dotnet/framework/wpf/advanced/datetime-xaml-syntax) topic.
+
+
+
+## Examples
+ The following example creates objects to specify which dates in a cannot be selected.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/Calendar/Overview/window1.xaml.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/calendarsnippets/visualbasic/window1.xaml.vb" id="Snippet3":::
- :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
-
+ :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
+
]]>
@@ -259,31 +259,31 @@
Gets the first date in the represented range.The first date in the represented range.
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *dateTimeString*
- A date that is in one of the formats that are listed in the [DateTime XAML Syntax](/dotnet/framework/wpf/advanced/datetime-xaml-syntax) topic.
-
-
-
-## Examples
- The following example creates objects to specify which dates in a cannot be selected.
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *dateTimeString*
+ A date that is in one of the formats that are listed in the [DateTime XAML Syntax](/dotnet/framework/wpf/advanced/datetime-xaml-syntax) topic.
+
+
+
+## Examples
+ The following example creates objects to specify which dates in a cannot be selected.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/Calendar/Overview/window1.xaml.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/calendarsnippets/visualbasic/window1.xaml.vb" id="Snippet3":::
- :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
-
+ :::code language="xaml" source="~/snippets/xaml/VS_Snippets_Wpf/calendarsnippets/xaml/window1.xaml" id="Snippet3":::
+
]]>
diff --git a/xml/System.Windows.Controls/ColumnDefinition.xml b/xml/System.Windows.Controls/ColumnDefinition.xml
index 034470c3f01..e6c735136c8 100644
--- a/xml/System.Windows.Controls/ColumnDefinition.xml
+++ b/xml/System.Windows.Controls/ColumnDefinition.xml
@@ -136,10 +136,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -251,10 +251,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/ComboBox.xml b/xml/System.Windows.Controls/ComboBox.xml
index f9e585b7d29..c99ec9f583e 100644
--- a/xml/System.Windows.Controls/ComboBox.xml
+++ b/xml/System.Windows.Controls/ComboBox.xml
@@ -685,12 +685,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -1137,8 +1137,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1277,8 +1277,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/ContentControl.xml b/xml/System.Windows.Controls/ContentControl.xml
index 45432f13eb3..728ca6e4630 100644
--- a/xml/System.Windows.Controls/ContentControl.xml
+++ b/xml/System.Windows.Controls/ContentControl.xml
@@ -232,15 +232,15 @@ Four buttons with different types of content
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
- content
+```xaml
+ content
```
@@ -419,8 +419,8 @@ Four buttons with different types of content
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -534,8 +534,8 @@ Four buttons with different types of content
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/ContextMenu.xml b/xml/System.Windows.Controls/ContextMenu.xml
index 58c87a0263a..81ac26afc9e 100644
--- a/xml/System.Windows.Controls/ContextMenu.xml
+++ b/xml/System.Windows.Controls/ContextMenu.xml
@@ -434,10 +434,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -1359,10 +1359,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/ContextMenuService.xml b/xml/System.Windows.Controls/ContextMenuService.xml
index 6e7812aa378..3e2b4735d68 100644
--- a/xml/System.Windows.Controls/ContextMenuService.xml
+++ b/xml/System.Windows.Controls/ContextMenuService.xml
@@ -746,10 +746,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -1564,10 +1564,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/Control.xml b/xml/System.Windows.Controls/Control.xml
index 893c05d824c..7e9adcae026 100644
--- a/xml/System.Windows.Controls/Control.xml
+++ b/xml/System.Windows.Controls/Control.xml
@@ -557,10 +557,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/ControlTemplate.xml b/xml/System.Windows.Controls/ControlTemplate.xml
index fd3b502a4a6..cee8da2125c 100644
--- a/xml/System.Windows.Controls/ControlTemplate.xml
+++ b/xml/System.Windows.Controls/ControlTemplate.xml
@@ -210,7 +210,7 @@
## XAML Attribute Usage
-```
+```xaml
```
@@ -289,7 +289,7 @@
## XAML Property Element Usage
-```
+```xaml
oneOrMoreTriggers
diff --git a/xml/System.Windows.Controls/DatePicker.xml b/xml/System.Windows.Controls/DatePicker.xml
index 626dcc4d360..68864986f13 100644
--- a/xml/System.Windows.Controls/DatePicker.xml
+++ b/xml/System.Windows.Controls/DatePicker.xml
@@ -63,7 +63,7 @@
## XAML Object Element Usage
-```
+```xaml
```
@@ -151,7 +151,7 @@ DatePicker Control
## XAML Property Element Usage
-```
+```xaml
oneOrMoreCalendarDateRanges
@@ -219,8 +219,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -269,8 +269,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -328,8 +328,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -415,8 +415,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -480,8 +480,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -543,8 +543,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -659,8 +659,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -860,8 +860,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -943,8 +943,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1234,8 +1234,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1287,8 +1287,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
]]>
@@ -1471,8 +1471,8 @@ DatePicker with dates that are not selectable
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/FlowDocumentReader.xml b/xml/System.Windows.Controls/FlowDocumentReader.xml
index 0cd37b25e5e..759e7f51c7d 100644
--- a/xml/System.Windows.Controls/FlowDocumentReader.xml
+++ b/xml/System.Windows.Controls/FlowDocumentReader.xml
@@ -2390,8 +2390,8 @@
## XAML Text Usage
-```
-
+```xaml
+
```
]]>
diff --git a/xml/System.Windows.Controls/Grid.xml b/xml/System.Windows.Controls/Grid.xml
index a1ee87f4957..240029f15ad 100644
--- a/xml/System.Windows.Controls/Grid.xml
+++ b/xml/System.Windows.Controls/Grid.xml
@@ -204,18 +204,18 @@
## XAML Property Element Usage
-```
+```xaml
OneOrMoreColumnDefinitions
-
```
## XAML Values
- *OneOrMoreColumnDefinitions*
+
+ *OneOrMoreColumnDefinitions*\
One or more elements. Each such becomes a placeholder representing a column in the final grid layout.
]]>
@@ -804,7 +804,7 @@
## XAML Property Element Usage
-```
+```xaml
OneOrMoreRowDefinitions
diff --git a/xml/System.Windows.Controls/GridSplitter.xml b/xml/System.Windows.Controls/GridSplitter.xml
index 43b9cd24db0..152fc88337c 100644
--- a/xml/System.Windows.Controls/GridSplitter.xml
+++ b/xml/System.Windows.Controls/GridSplitter.xml
@@ -422,8 +422,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/GridView.xml b/xml/System.Windows.Controls/GridView.xml
index a6e651d8e46..86e26ac5dbf 100644
--- a/xml/System.Windows.Controls/GridView.xml
+++ b/xml/System.Windows.Controls/GridView.xml
@@ -420,8 +420,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -684,8 +684,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -803,14 +803,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -910,14 +910,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -1043,7 +1043,7 @@
## XAML Property Element Usage
-```
+```xaml
OneOrMoreGridViewColumns
diff --git a/xml/System.Windows.Controls/GridViewColumn.xml b/xml/System.Windows.Controls/GridViewColumn.xml
index 852aef2c7ef..bb052713ec3 100644
--- a/xml/System.Windows.Controls/GridViewColumn.xml
+++ b/xml/System.Windows.Controls/GridViewColumn.xml
@@ -48,11 +48,11 @@
You can use the to define the data to display in a column. You can also define the data as part of a that is specified by the property. If different cells have different objects, the property can specify a . The following list shows the properties mentioned here, in their order of precedence from highest to lowest:
--
+-
--
+-
--
+-
The class also contains properties that you can use to define and customize the column header for the column. The property can define the content of the column header. Other properties such as and can also specify content and style for the column header. Some of these properties are also found on other classes such as the class. For more information about the properties that are used to define styles and templates for column headers, and for information about the order of precedence for these properties, see [GridView Column Header Styles and Templates Overview](/dotnet/framework/wpf/controls/gridview-column-header-styles-and-templates-overview).
@@ -171,17 +171,15 @@
## Remarks
The following properties all bind to and display the content of a column cell, and are listed here in their order of precedence, from highest to lowest:
--
-
--
-
--
+-
+-
+-
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -296,23 +294,23 @@
## Remarks
The following properties all bind to and display the content of a column cell, and are listed here in their order of precedence, from highest to lowest:
--
+-
--
+-
--
+-
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -423,11 +421,11 @@
The following properties are all used to define the content and style of a column cell, and are listed here in their order of precedence, from highest to lowest:
-- `DisplayMemberBinding` (this property)
+- `DisplayMemberBinding` (this property)
--
+-
--
+-
@@ -486,14 +484,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -556,8 +554,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -704,11 +702,11 @@
You can use several properties to specify the format of the column headers. If more than one property is set, the column header is formatted with the value of the property that has the highest priority. The format for a column can be set on several types. The following list shows the properties that can be used to format the column headers, ordered from lowest to highest priority:
--
+-
--
+-
--
+-
## Dependency Property Information
@@ -789,8 +787,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -911,14 +909,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -1144,12 +1142,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/GridViewHeaderRowPresenter.xml b/xml/System.Windows.Controls/GridViewHeaderRowPresenter.xml
index 561a61ef4c8..74c39d1b6ac 100644
--- a/xml/System.Windows.Controls/GridViewHeaderRowPresenter.xml
+++ b/xml/System.Windows.Controls/GridViewHeaderRowPresenter.xml
@@ -224,8 +224,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -493,8 +493,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -598,14 +598,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -699,14 +699,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
diff --git a/xml/System.Windows.Controls/GroupStyle.xml b/xml/System.Windows.Controls/GroupStyle.xml
index 9204522f5f5..a89ae00180e 100644
--- a/xml/System.Windows.Controls/GroupStyle.xml
+++ b/xml/System.Windows.Controls/GroupStyle.xml
@@ -34,18 +34,18 @@
Defines how you want the group to look at each level.
- that is bound to an and the code-behind content that contains the logic to add and remove grouping. When the check box is checked, the content of the is grouped by the `Type` attribute.
-
- Each group is of type . The is specified so that it appears as a that displays the of each the group. In this case, the is either `Work` or `Home`.
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml" id="Snippetxaml":::
-
+ that is bound to an and the code-behind content that contains the logic to add and remove grouping. When the check box is checked, the content of the is grouped by the `Type` attribute.
+
+ Each group is of type . The is specified so that it appears as a that displays the of each the group. In this case, the is either `Work` or `Home`.
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml" id="Snippetxaml":::
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml.cs" id="Snippetcode":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/GroupingSample/visualbasic/window1.xaml.vb" id="Snippetcode":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/GroupingSample/visualbasic/window1.xaml.vb" id="Snippetcode":::
+
]]>
@@ -111,40 +111,40 @@
Gets or sets the number of alternating objects.The number of alternating objects.
- property and the attached property enable you to specify the appearance for two or more alternating objects. For example, you can specify alternating background colors for every third in an . The is assigned to each in the . begins at 0, increments until it is minus 1, and then restarts at 0. For example, if is 3 and there are seven objects in the , the following table lists the for each item.
-
-|Position of in the ||
-|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-|1|0|
-|2|1|
-|3|2|
-|4|0|
-|5|1|
-|6|2|
-|7|0|
-
- There are several methods you can use to specify different appearances for the alternating objects. One method is to bind properties in the or of the to the . You can then use an to specify which value should be applied to the that has a certain value. You can also use triggers to change the value of a property depending on the value of its .
-
-
-
-## Examples
- The following example creates a that is bound to a that groups the items in the collection. The example alternates the background for the header of each between two colors by doing the following:
-
-- Sets to 2.
-
-- Creates an that returns a , depending on the value of .
-
-- Binds the of the in the to the property and provides the . Note that the attached property is set on the , and the binding uses to get its value.
-
- The example also alternates the background of the items in the between three colors by setting the on the and binding the of each to the . In this case, the background alternates between three colors.
-
- The that groups the items is not shown. For information on how to group item, see [How to: Sort and Group Data Using a View in XAML](/dotnet/framework/wpf/data/how-to-sort-and-group-data-using-a-view-in-xaml).
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows/HierarchicalDataTemplate/AlternationCount/Window1.xaml" id="Snippet3":::
-
+ property and the attached property enable you to specify the appearance for two or more alternating objects. For example, you can specify alternating background colors for every third in an . The is assigned to each in the . begins at 0, increments until it is minus 1, and then restarts at 0. For example, if is 3 and there are seven objects in the , the following table lists the for each item.
+
+|Position of in the ||
+|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+|1|0|
+|2|1|
+|3|2|
+|4|0|
+|5|1|
+|6|2|
+|7|0|
+
+ There are several methods you can use to specify different appearances for the alternating objects. One method is to bind properties in the or of the to the . You can then use an to specify which value should be applied to the that has a certain value. You can also use triggers to change the value of a property depending on the value of its .
+
+
+
+## Examples
+ The following example creates a that is bound to a that groups the items in the collection. The example alternates the background for the header of each between two colors by doing the following:
+
+- Sets to 2.
+
+- Creates an that returns a , depending on the value of .
+
+- Binds the of the in the to the property and provides the . Note that the attached property is set on the , and the binding uses to get its value.
+
+ The example also alternates the background of the items in the between three colors by setting the on the and binding the of each to the . In this case, the background alternates between three colors.
+
+ The that groups the items is not shown. For information on how to group item, see [How to: Sort and Group Data Using a View in XAML](/dotnet/framework/wpf/data/how-to-sort-and-group-data-using-a-view-in-xaml).
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows/HierarchicalDataTemplate/AlternationCount/Window1.xaml" id="Snippet3":::
+
]]>
@@ -185,26 +185,26 @@
Gets or sets the style that is applied to the generated for each item.The style that is applied to the generated for each item. The default is .
- inline in property element syntax, rather than creating the style as a resource, is a reasonable alternative methodology.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *ResourceExtension*
- One of the following: `StaticResource`, or `DynamicResource`. See [XAML Resources](/dotnet/framework/wpf/advanced/xaml-resources).
-
- *StyleResourceKey*
- The key that identifies the style being requested. The key refers to an existing resource in a .
-
+ inline in property element syntax, rather than creating the style as a resource, is a reasonable alternative methodology.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *ResourceExtension*
+ One of the following: `StaticResource`, or `DynamicResource`. See [XAML Resources](/dotnet/framework/wpf/advanced/xaml-resources).
+
+ *StyleResourceKey*
+ The key that identifies the style being requested. The key refers to an existing resource in a .
+
]]>
@@ -282,21 +282,21 @@
Gets the default style of the group.The default style of the group.
-
-## XAML Property Element Usage
-
-```
-
-
-
-
-
-```
-
+
+## XAML Property Element Usage
+
+```xaml
+
+
+
+
+
+```
+
]]>
@@ -326,11 +326,11 @@
Identifies the default that creates the panel used to layout the items.
-
@@ -371,23 +371,23 @@
Gets or sets a composite string that specifies how to format the header if it is displayed as a string.A composite string that specifies how to format the header if it is displayed as a string.
- can be a predefined, composite, or custom string format. For more information about string formats, see [Formatting Types](/dotnet/standard/base-types/formatting-types). If you set the or property of a , the property is ignored.
-
-
-
-## Examples
- The following example creates a that groups a collection of items by price range. The converter, `GroupByPrice`, returns an integer value that is above each item's price. For example, if an item's price is between 0 and 100, the converter returns 100. The example uses the to create a string that includes the upper limit for each price range. For example, in the United States, items that are under 100 dollars are grouped under a heading that says "Items under $100".
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/ContentControl/ContentStringFormat/Window1.xaml" id="Snippetgroupstyleheaderstringformat":::
-
- The following example shows the `GroupByPrice` class, the `PurchaseItem` class, and the collection that the is bound to.
-
+ can be a predefined, composite, or custom string format. For more information about string formats, see [Formatting Types](/dotnet/standard/base-types/formatting-types). If you set the or property of a , the property is ignored.
+
+
+
+## Examples
+ The following example creates a that groups a collection of items by price range. The converter, `GroupByPrice`, returns an integer value that is above each item's price. For example, if an item's price is between 0 and 100, the converter returns 100. The example uses the to create a string that includes the upper limit for each price range. For example, in the United States, items that are under 100 dollars are grouped under a heading that says "Items under $100".
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/ContentControl/ContentStringFormat/Window1.xaml" id="Snippetgroupstyleheaderstringformat":::
+
+ The following example shows the `GroupByPrice` class, the `PurchaseItem` class, and the collection that the is bound to.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/ContentControl/ContentStringFormat/Window1.xaml.cs" id="Snippetgroupstyledata":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/ContentStringSnippets/visualbasic/window1.xaml.vb" id="Snippetgroupstyledata":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/ContentStringSnippets/visualbasic/window1.xaml.vb" id="Snippetgroupstyledata":::
+
]]>
@@ -428,28 +428,28 @@
Gets or sets the template that is used to display the group header.A object that is used to display the group header. The default is .
- that is bound to an and the code-behind content that contains the logic to add and remove grouping. When the check box is checked, the content of the is grouped by the `Type` attribute.
-
- Each group is of type . The is specified so that it appears as a that displays the of each the group. In this case, the is either `Work` or `Home`.
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml" id="Snippetxaml":::
-
+ that is bound to an and the code-behind content that contains the logic to add and remove grouping. When the check box is checked, the content of the is grouped by the `Type` attribute.
+
+ Each group is of type . The is specified so that it appears as a that displays the of each the group. In this case, the is either `Work` or `Home`.
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml" id="Snippetxaml":::
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/GroupStyle/Overview/Window1.xaml.cs" id="Snippetcode":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/GroupingSample/visualbasic/window1.xaml.vb" id="Snippetcode":::
-
- The following example shows how to use the property:
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows/DataTemplate/Triggers/MainWindow.xaml" id="Snippetgroupstyle":::
-
- The following is the definition of the `groupingHeaderTemplate` :
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows/DataTemplate/Triggers/MainWindow.xaml" id="Snippetheadertemplate":::
-
- For the complete sample, see [Data Binding Demo](https://go.microsoft.com/fwlink/?LinkID=163703).
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/GroupingSample/visualbasic/window1.xaml.vb" id="Snippetcode":::
+
+ The following example shows how to use the property:
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows/DataTemplate/Triggers/MainWindow.xaml" id="Snippetgroupstyle":::
+
+ The following is the definition of the `groupingHeaderTemplate` :
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows/DataTemplate/Triggers/MainWindow.xaml" id="Snippetheadertemplate":::
+
+ For the complete sample, see [Data Binding Demo](https://go.microsoft.com/fwlink/?LinkID=163703).
+
]]>
diff --git a/xml/System.Windows.Controls/HeaderedContentControl.xml b/xml/System.Windows.Controls/HeaderedContentControl.xml
index cd643a135ba..d0f9d6a40ad 100644
--- a/xml/System.Windows.Controls/HeaderedContentControl.xml
+++ b/xml/System.Windows.Controls/HeaderedContentControl.xml
@@ -411,8 +411,8 @@ TabControl with different types in the Header property
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -520,14 +520,14 @@ TabControl with different types in the Header property
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
diff --git a/xml/System.Windows.Controls/HeaderedItemsControl.xml b/xml/System.Windows.Controls/HeaderedItemsControl.xml
index 9056d52e44e..e46e0ebb176 100644
--- a/xml/System.Windows.Controls/HeaderedItemsControl.xml
+++ b/xml/System.Windows.Controls/HeaderedItemsControl.xml
@@ -236,25 +236,25 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
-
```
## XAML Values
- *headerString*
+
+ *headerString*\
The string to use as a heading.
@@ -406,8 +406,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -517,14 +517,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
diff --git a/xml/System.Windows.Controls/Image.xml b/xml/System.Windows.Controls/Image.xml
index 9fe2a89c3c7..c5d1e6809a2 100644
--- a/xml/System.Windows.Controls/Image.xml
+++ b/xml/System.Windows.Controls/Image.xml
@@ -450,8 +450,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/InkCanvas.xml b/xml/System.Windows.Controls/InkCanvas.xml
index cb204a1424f..7f13d6f7b95 100644
--- a/xml/System.Windows.Controls/InkCanvas.xml
+++ b/xml/System.Windows.Controls/InkCanvas.xml
@@ -400,10 +400,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -550,7 +550,7 @@
## XAML Property Element Usage
-```
+```xaml
OneOrMoreUIElements
@@ -1988,10 +1988,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2905,7 +2905,7 @@
## XAML Property Element Usage
-```
+```xaml
InkCanvasClipboardFormats
@@ -3016,10 +3016,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -4207,10 +4207,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/ItemsControl.xml b/xml/System.Windows.Controls/ItemsControl.xml
index f5bfc3c9732..f3c26902ebc 100644
--- a/xml/System.Windows.Controls/ItemsControl.xml
+++ b/xml/System.Windows.Controls/ItemsControl.xml
@@ -826,21 +826,19 @@ ListBox that contains multiple types of objects
## XAML Property Element Usage
-```
+```xaml
OneOrMoreGroupStyleObjects
-
```
## XAML Values
- *OneOrMoreGroupStyleObjects*
- One or more objects.
-
+ *OneOrMoreGroupStyleObjects*\
+ One or more objects.
## Examples
The following examples show an that is bound to an and the code-behind content that contains the logic to add and remove grouping. When the check box is checked, the content of the is grouped by the `Type` attribute.
@@ -1495,8 +1493,8 @@ ListBox that contains multiple types of objects
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1723,7 +1721,7 @@ ListBox that contains multiple types of objects
## XAML Property Element Usage
-```
+```xaml
OneOrMoreElements
@@ -1981,8 +1979,8 @@ ListBox that contains multiple types of objects
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -2160,8 +2158,8 @@ ListBox that contains multiple types of objects
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -2284,8 +2282,8 @@ ListBox that contains multiple types of objects
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/Label.xml b/xml/System.Windows.Controls/Label.xml
index 0ab9d0ed1ef..6e2ba8fca4f 100644
--- a/xml/System.Windows.Controls/Label.xml
+++ b/xml/System.Windows.Controls/Label.xml
@@ -37,7 +37,7 @@
To set the access key, add an underscore before the character that should be the access key. If your content has multiple underscore characters, only the first one is converted into an access key; the other underscores appear as normal text. If the underscore that you want converted to the access key is not the first underscore, use two consecutive underscores for any underscores that precede the one that you want to convert. For example, the following code contains an access key and displays as _Hello**W**orld:
-```
+```xaml
```
@@ -177,9 +177,8 @@
## XAML Attribute Usage
-```
-
-
+```xaml
+
```
@@ -187,10 +186,9 @@
## XAML Values
- `nameOfExistingElement`
- The name of that receives focus when the access key is pressed.
-
+ `nameOfExistingElement`\
+ The name of that receives focus when the access key is pressed.
## Examples
The following example shows how to set the property of a .
diff --git a/xml/System.Windows.Controls/Page.xml b/xml/System.Windows.Controls/Page.xml
index 2b5018b7c83..49e748a0052 100644
--- a/xml/System.Windows.Controls/Page.xml
+++ b/xml/System.Windows.Controls/Page.xml
@@ -1277,8 +1277,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/RowDefinition.xml b/xml/System.Windows.Controls/RowDefinition.xml
index 4bdaef11312..9026ac35b8b 100644
--- a/xml/System.Windows.Controls/RowDefinition.xml
+++ b/xml/System.Windows.Controls/RowDefinition.xml
@@ -214,10 +214,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -329,10 +329,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/SpellCheck.xml b/xml/System.Windows.Controls/SpellCheck.xml
index 0af4d4eca28..b2ca8c8ac59 100644
--- a/xml/System.Windows.Controls/SpellCheck.xml
+++ b/xml/System.Windows.Controls/SpellCheck.xml
@@ -66,7 +66,7 @@
## Remarks
Custom dictionaries use lexicon files, which are text files that have a .lex extension. Each line of a lexicon file contains a single word that is accepted as a legitimate spelling. The first line of the file can specify a locale identifier (LCID) that the dictionary applies to. If the locale is not specified, the dictionary applies to all languages. For more information, see [Locale IDs](https://go.microsoft.com/fwlink/?LinkId=165561). The following example shows the first few lines of a lexicon file for the English language.
-```
+```txt
#LID 1033
TextBlock
TextBox
@@ -164,7 +164,7 @@ ListBox
## Remarks
Custom dictionaries use lexicon files, which are simple text files that have a .lex extension. Each line of a lexicon file contains a single word that is accepted as a legitimate spelling. The first line of the file can specify a locale identifier (LCID) that the dictionary applies to. If the locale is not specified, the dictionary applies to all languages. For more information, see [Locale IDs](https://go.microsoft.com/fwlink/?LinkId=165561). The following example shows the first few lines of a lexicon file for the English language.
-```
+```txt
#LID 1033
TextBlock
TextBox
diff --git a/xml/System.Windows.Controls/TabControl.xml b/xml/System.Windows.Controls/TabControl.xml
index 522fb6dbbd4..626290d1fdc 100644
--- a/xml/System.Windows.Controls/TabControl.xml
+++ b/xml/System.Windows.Controls/TabControl.xml
@@ -195,8 +195,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -298,14 +298,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
## XAML Property Element Usage
-```
+```xaml
@@ -702,7 +702,7 @@
## XAML Attribute Usage
-```
+```xaml
```
@@ -860,8 +860,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -960,8 +960,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Controls/TextBlock.xml b/xml/System.Windows.Controls/TextBlock.xml
index d06ea409a51..9c4b6951676 100644
--- a/xml/System.Windows.Controls/TextBlock.xml
+++ b/xml/System.Windows.Controls/TextBlock.xml
@@ -537,14 +537,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -658,10 +658,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -1824,12 +1824,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -2239,14 +2239,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/TextBox.xml b/xml/System.Windows.Controls/TextBox.xml
index 9dddc65b416..f02ccb28343 100644
--- a/xml/System.Windows.Controls/TextBox.xml
+++ b/xml/System.Windows.Controls/TextBox.xml
@@ -1669,7 +1669,7 @@ tbSettingText.Text = "Initial text contents of the TextBox."
## XAML Property Element Usage
-```
+```xaml
String
diff --git a/xml/System.Windows.Controls/ToolBarTray.xml b/xml/System.Windows.Controls/ToolBarTray.xml
index ae1d7407d82..b0d547dec6e 100644
--- a/xml/System.Windows.Controls/ToolBarTray.xml
+++ b/xml/System.Windows.Controls/ToolBarTray.xml
@@ -288,10 +288,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -658,7 +658,7 @@
## XAML Property Element Usage
-```
+```xaml
OneOrMoreToolBarElements
diff --git a/xml/System.Windows.Controls/ToolTipService.xml b/xml/System.Windows.Controls/ToolTipService.xml
index 3904e97ef42..867639580fd 100644
--- a/xml/System.Windows.Controls/ToolTipService.xml
+++ b/xml/System.Windows.Controls/ToolTipService.xml
@@ -991,10 +991,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2371,7 +2371,7 @@ This is an attached property. For information about how to get the value of this
The XAML syntax shown here is appropriate if the object that fills the tooltip is a primitive with native type conversion, such as a string. If the object does not support native type conversion or support its own type converter, you might need to specify a verbose form of attached property syntax as follows:
-```
+```xaml
@@ -2615,10 +2615,10 @@ This is an attached property. For information about how to get the value of this
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Controls/TreeView.xml b/xml/System.Windows.Controls/TreeView.xml
index 19eb1782c7e..335cbb902af 100644
--- a/xml/System.Windows.Controls/TreeView.xml
+++ b/xml/System.Windows.Controls/TreeView.xml
@@ -577,11 +577,9 @@
## XAML Attribute Usage
+```xaml
+
```
-
-```
-
-
## Examples
The following example shows how to specify an event handler for the event.
diff --git a/xml/System.Windows.Controls/VirtualizingStackPanel.xml b/xml/System.Windows.Controls/VirtualizingStackPanel.xml
index c13bd3dd642..da64e20af34 100644
--- a/xml/System.Windows.Controls/VirtualizingStackPanel.xml
+++ b/xml/System.Windows.Controls/VirtualizingStackPanel.xml
@@ -456,7 +456,7 @@
The object from which the attached property value is read.
- Gets the value of the attached property.
+ Gets the value of the attached property. if the is virtualizing its content; otherwise, .
@@ -1738,7 +1738,7 @@ Notice that the IsVirtualizing attached property is explicitly set to `true`.
The object to which the attached property value is set.
if the is virtualizing; otherwise, .
- Sets the value of the attached property.
+ Sets the value of the attached property.
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -270,12 +270,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Data/Binding.xml b/xml/System.Windows.Data/Binding.xml
index 859c142f54e..785d3a76124 100644
--- a/xml/System.Windows.Data/Binding.xml
+++ b/xml/System.Windows.Data/Binding.xml
@@ -45,8 +45,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -336,8 +336,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1243,8 +1243,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1717,18 +1717,18 @@
## XAML Property Element Usage
-```
+```xaml
oneOrMoreValidationRules
-
```
## XAML Values
- *oneOrMoreValidationRules*
+
+ *oneOrMoreValidationRules*\
One or more objects. You can use the class or create custom rules by subclassing the class.
]]>
diff --git a/xml/System.Windows.Data/BindingOperations.xml b/xml/System.Windows.Data/BindingOperations.xml
index 82993f6a14c..749d487d87e 100644
--- a/xml/System.Windows.Data/BindingOperations.xml
+++ b/xml/System.Windows.Data/BindingOperations.xml
@@ -23,11 +23,11 @@
Provides static methods to manipulate bindings, including , , and objects.
-
@@ -96,11 +96,11 @@
The object from which to remove bindings.
Removes all bindings, including bindings of type , , and , from the specified .
- If is .
@@ -137,13 +137,13 @@
The dependency property from which to remove the binding.
Removes the binding from a property if there is one.
- , , or , this method removes the corresponding binding expression and restores the value of the property to what it was before any local value was set through the binding.
-
- If the given property is not data-bound, this method has no effect.
-
+ , , or , this method removes the corresponding binding expression and restores the value of the property to what it was before any local value was set through the binding.
+
+ If the given property is not data-bound, this method has no effect.
+
]]>The and parameters cannot be .
@@ -258,11 +258,11 @@
Gets an object that replaces the when an item container is removed from the visual tree.An object that replaces the when an item container is removed from the visual tree.
- of an item container. An item container is the UI element that displays an item in an . When an is data bound to a collection, an item container is generated for each item. In some cases, item containers are removed from the visual tree. Two typical cases where an item container is removed are when an item is removed from the underlying collection and when virtualization is enabled on the . In these cases, the property of the item container will be set to the property You should check whether the is equal to the before accessing the in the event for item containers. For more information about item containers and virtualization, see the remarks in the class.
-
+ of an item container. An item container is the UI element that displays an item in an . When an is data bound to a collection, an item container is generated for each item. In some cases, item containers are removed from the visual tree. Two typical cases where an item container is removed are when an item is removed from the underlying collection and when virtualization is enabled on the . In these cases, the property of the item container will be set to the property You should check whether the is equal to the before accessing the in the event for item containers. For more information about item containers and virtualization, see the remarks in the class.
+
]]>
@@ -275,16 +275,16 @@
Enables a object to participate in synchronized access to a collection that is used on multiple threads.
- or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
-
-You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection. This is typically done using either a simple lock mechanism or a more elaborate synchronization mechanism such as semaphores, reset events, etc.
-
-While you must synchronize your application's access to the collection, you must also guarantee that access from WPF (specifically from ) participates in the same synchronization mechanism. You do this by calling the method.
-
+ or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
+
+You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection. This is typically done using either a simple lock mechanism or a more elaborate synchronization mechanism such as semaphores, reset events, etc.
+
+While you must synchronize your application's access to the collection, you must also guarantee that access from WPF (specifically from ) participates in the same synchronization mechanism. You do this by calling the method.
+
To use a collection on multiple threads, one of which is the UI thread that owns the , an application has the following responsibilities:
1. Choose a synchronization mechanism.
@@ -295,17 +295,17 @@ To use a collection on multiple threads, one of which is the UI thread that owns
- The call must occur on the UI thread.
- - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
+ - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
- Call the overload if using a simple lock mechanism; call the overload if using a more elaborate mechanism.
-1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
+1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
-1. If you call , that call must also occur on the UI thread.
+1. If you call , that call must also occur on the UI thread.
1. If you want to use the same collection on multiple UI threads, you must call (and , if needed) separately on each UI thread.
-1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization, as discussed in the following paragraph.
+1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization, as discussed in the following paragraph.
In return, WPF provides the following behavior:
@@ -315,11 +315,11 @@ In return, WPF provides the following behavior:
- events are queued up as they arrive (on any thread).
-- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
+- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
-- The won't directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
+- The won't directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
-The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
+The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
]]>
@@ -355,14 +355,14 @@ The net effect is that you can change the collection on any thread, and those c
The object to lock when accessing the collection.
Enables a object to participate in synchronized access to a collection used on multiple threads by using a simple locking mechanism.
- or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
-
-You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection and for guaranteeing that access from WPF (specifically from ) participates in the same synchronization mechanism. By calling the method, you can do this by using a simple lock mechanism.
-
+A WPF application can display a collection of data using an or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
+
+You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection and for guaranteeing that access from WPF (specifically from ) participates in the same synchronization mechanism. By calling the method, you can do this by using a simple lock mechanism.
+
To use a collection on multiple threads, one of which is the UI thread that owns the , you must do the following:
1. Instantiate an object to lock when accessing the collection.
@@ -373,15 +373,15 @@ To use a collection on multiple threads, one of which is the UI thread that owns
- The call must occur on the UI thread.
- - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
+ - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
-1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
+1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
-1. If you call , that call must also occur on the UI thread.
+1. If you call , that call must also occur on the UI thread.
1. If you want to use the same collection on multiple UI threads, you must call (and , if needed) separately on each UI thread.
-1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization. (See more, below.)
+1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization. (See more, below.)
In return, WPF provides the following behavior:
@@ -391,12 +391,12 @@ In return, WPF provides the following behavior:
- events are queued up as they arrive (on any thread).
-- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
+- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
+
+- The will not directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
-- The will not directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
+The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
-The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
-
]]>
@@ -433,14 +433,14 @@ The net effect is that you can change the collection on any thread, and those c
The callback that is invoked whenever access to the collection is required. You can use it to ensure that the collection is accessed by one thread at a time.
Enables a object to participate in synchronized access to a collection used on multiple threads by using a mechanism other than a simple lock.
- or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
-
-You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection and for guaranteeing that access from WPF (specifically from ) participates in the same synchronization mechanism. By calling the method, you can do this by using a synchronization mechanism such as a semaphores, a reset event, etc.
-
+ or one of its subclasses (, , , , etc.). WPF channels all its access to the collection through a subclass of . Both the and the have affinity to the thread on which the was created, meaning that using them on a different thread is forbidden and throws an exception. In effect, this restriction applies to the collection as well.
+
+You may want to use the collection on multiple threads. For example, you want to update the collection (add or remove items) on a "data-gathering" thread, while displaying the results on a "user interface" thread, so that the UI remains responsive while data-gathering is happening. In such a situation, you are responsible for ensuring synchronized ("thread-safe") access to the collection and for guaranteeing that access from WPF (specifically from ) participates in the same synchronization mechanism. By calling the method, you can do this by using a synchronization mechanism such as a semaphores, a reset event, etc.
+
To use a collection on multiple threads, one of which is the UI thread that owns the , you must do the following:
1. Choose a synchronization mechanism.
@@ -451,15 +451,15 @@ To use a collection on multiple threads, one of which is the UI thread that owns
- The call must occur on the UI thread.
- - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
+ - The call must occur before using the collection on a different thread or before attaching the collection to the , whichever is later.
-1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
+1. Ensure that a change to the collection and the notification of that change (through ) are atomic; no access from other threads can intervene. (This is usually free. For instance, guarantees this, provided that all changes are protected by synchronization.)
-1. If you call , that call must also occur on the UI thread.
+1. If you call , that call must also occur on the UI thread.
1. If you want to use the same collection on multiple UI threads, you must call (and , if needed) separately on each UI thread.
-1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization. (See more, below.)
+1. Avoid deadlock. This is already the application's responsibility once it chooses to use synchronization, but it must also take into account WPF's participation in the synchronization. (See more, below.)
In return, WPF provides the following behavior:
@@ -476,14 +476,14 @@ In return, WPF provides the following behavior:
- events are queued up as they arrive (on any thread).
-- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
+- Pending events are applied to the shadow copy asynchronously on the UI thread when it has the opportunity to do so.
+
+- The will not directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
-- The will not directly use any other synchronization mechanism visible to the application. This is WPF's way of helping to avoid deadlock (see the previous item 7).
+The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
-The net effect is that you can change the collection on any thread, and those changes eventually appear in the when the UI thread has time to "catch up". The implementation has been tuned to throttle the rate that changes flow into the UI thread to keep background threads from saturating the UI thread and starving the response to normal user input.
+ The `context` parameter is an arbitrary object that is passed to the `callback`. You can use it to determine the synchronization mechanism used to control access to `collection`. `Context` can be `null`.
- The `context` parameter is an arbitrary object that is passed to the `callback`. You can use it to determine the synchronization mechanism used to control access to `collection`. `Context` can be `null`.
-
]]>
@@ -559,11 +559,11 @@ The net effect is that you can change the collection on any thread, and those c
Retrieves the object that is set on the specified property.The object that is set on the given property or if no binding object has been set.
- class is the common base class for the , , and classes. You can use the , , and methods if you know in advance the type of binding that is set on the property.
-
+ class is the common base class for the , , and classes. You can use the , , and methods if you know in advance the type of binding that is set on the property.
+
]]>The and parameters cannot be .
@@ -602,21 +602,21 @@ The net effect is that you can change the collection on any thread, and those c
Returns the object associated with the specified binding target property on the specified object.The object associated with the given property or if none exists. If a object is set on the property, the is returned.
- object maintains the connection between the binding source and the binding target. You can obtain the object by calling this static method or by calling the method on a data-bound or object.
-
-
-
-## Examples
- The following example shows the implementation of a event handler that uses the method to obtain the and then calls the property to access the binding source object.
-
- The `SavingsText` is the binding target object and is the binding target property.
-
+ object maintains the connection between the binding source and the binding target. You can obtain the object by calling this static method or by calling the method on a data-bound or object.
+
+
+
+## Examples
+ The following example shows the implementation of a event handler that uses the method to obtain the and then calls the property to access the binding source object.
+
+ The `SavingsText` is the binding target object and is the binding target property.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Data/BindingExpression/DataItem/Page1.xaml.cs" id="Snippetonrentraise":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DirectionalBinding/VisualBasic/DirectionalBinding.vb" id="Snippetonrentraise":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DirectionalBinding/VisualBasic/DirectionalBinding.vb" id="Snippetonrentraise":::
+
]]>The and parameters cannot be .
@@ -657,11 +657,11 @@ The net effect is that you can change the collection on any thread, and those c
Retrieves the object that is set on the specified property.The object that is set on the given property or if no binding object has been set.
- class is the common base class for the , , and classes. You can use the , , and methods if you know in advance type of binding that is set on the property.
-
+ class is the common base class for the , , and classes. You can use the , , and methods if you know in advance type of binding that is set on the property.
+
]]>The and parameters cannot be null.
@@ -737,11 +737,11 @@ The net effect is that you can change the collection on any thread, and those c
Returns the object associated with the specified binding target property on the specified object.The object associated with the given property or if none exists.
- object associated with the given property or `null` if none exists.
-
+ object associated with the given property or `null` if none exists.
+
]]>The and parameters cannot be .
@@ -854,11 +854,11 @@ The net effect is that you can change the collection on any thread, and those c
Gets all objects that have invalid values or target values have not been updated the source.A collection of objects that are associated with the specified element and have invalid values or target values have not been updated the source.
- returns all objects that are invalid or have not been updated.
-
+ returns all objects that are invalid or have not been updated.
+
]]>
@@ -892,11 +892,11 @@ The net effect is that you can change the collection on any thread, and those c
Gets all objects that have invalid values or target values have not been updated the source.A collection of objects that are associated with the specified element and have invalid values or target values have not been updated the source.
- returns all objects that are invalid or have not been updated.
-
+ returns all objects that are invalid or have not been updated.
+
]]>
@@ -971,19 +971,19 @@ The net effect is that you can change the collection on any thread, and those c
Creates and associates a new instance of with the specified binding target property.The instance of created for and associated with the specified property. The class is the base class of , , and .
- and associates the instance with the given dependency property of the given object. This method is the way to attach a binding to an arbitrary that may not expose its own SetBinding method.
-
-
-
-## Examples
- The following example shows how to use this method to set a binding. In this example, `myNewBindDef` is a object that describes the binding. The binding target is `myDateText`, an instance of the class.
-
+ and associates the instance with the given dependency property of the given object. This method is the way to attach a binding to an arbitrary that may not expose its own SetBinding method.
+
+
+
+## Examples
+ The following example shows how to use this method to set a binding. In this example, `myNewBindDef` is a object that describes the binding. The binding target is `myDateText`, an instance of the class.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Data/BindingOperations/SetBinding/Window1.xaml.cs" id="Snippetbosetbinding":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/BindConversion/visualbasic/window1.xaml.vb" id="Snippetbosetbinding":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/BindConversion/visualbasic/window1.xaml.vb" id="Snippetbosetbinding":::
+
]]>The parameter cannot be .
diff --git a/xml/System.Windows.Data/CollectionViewSource.xml b/xml/System.Windows.Data/CollectionViewSource.xml
index 899c9a8ff51..97e207546af 100644
--- a/xml/System.Windows.Data/CollectionViewSource.xml
+++ b/xml/System.Windows.Data/CollectionViewSource.xml
@@ -335,8 +335,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -419,8 +419,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -600,7 +600,7 @@
## XAML Property Element Usage
-```
+```xaml
oneOrMorePropertyDescriptions
@@ -1308,7 +1308,7 @@
## XAML Property Element Usage
-```
+```xaml
oneOrMoreSortDescriptions
@@ -1366,8 +1366,8 @@
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Data/MultiBinding.xml b/xml/System.Windows.Data/MultiBinding.xml
index eab69c1eabd..638a7a2723c 100644
--- a/xml/System.Windows.Data/MultiBinding.xml
+++ b/xml/System.Windows.Data/MultiBinding.xml
@@ -33,15 +33,15 @@
Describes a collection of objects attached to a single binding target property.
- object. When you use the object with a converter, it produces a final value for the binding target based on the values of those bindings. For example, color might be computed from red, blue, and green values, which can be values from the same or different binding source objects. When a value moves from the target to the sources, the target property value is translated to a set of values that are fed back into the bindings.
-
- The values of the and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
-
- currently supports only objects of type and not or .
-
+ object. When you use the object with a converter, it produces a final value for the binding target based on the values of those bindings. For example, color might be computed from red, blue, and green values, which can be values from the same or different binding source objects. When a value moves from the target to the sources, the target property value is translated to a set of values that are fed back into the bindings.
+
+ The values of the and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
+
+ currently supports only objects of type and not or .
+
]]>
@@ -111,28 +111,27 @@
Gets the collection of objects within this instance.A collection of objects. currently supports only objects of type and not or . Adding a child to a object implicitly adds the child to the collection for the object.
- [!NOTE]
-> This property can be set in Extensible Application Markup Language (XAML) only by using the syntax that is shown, or by accessing the collection object and using its various methods, such as `Add`. The property used to access the collection object is read-only, whereas the collection itself is read/write.
-
-
-## XAML Property Element Usage
-
-```
-
- oneOrMoreBindings
-
-
-```
-
-
-## XAML Values
- *oneOrMoreBindings*
- One or more objects.
-
+> This property can be set in Extensible Application Markup Language (XAML) only by using the syntax that is shown, or by accessing the collection object and using its various methods, such as `Add`. The property used to access the collection object is read-only, whereas the collection itself is read/write.
+
+
+## XAML Property Element Usage
+
+```xaml
+
+ oneOrMoreBindings
+
+```
+
+
+## XAML Values
+ *oneOrMoreBindings*
+ One or more objects.
+
]]>
@@ -173,23 +172,23 @@
Gets or sets the converter to use to convert the source values to or from the target value.A value of type that indicates the converter to use. The default value is .
- . For more information, see .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *myConverter*
- A resource reference to a class that implements the interface, which includes implementations of the and methods. To refer to a value converter, use the [Markup Extensions and WPF XAML](/dotnet/framework/wpf/advanced/markup-extensions-and-wpf-xaml).
-
+ . For more information, see .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *myConverter*
+ A resource reference to a class that implements the interface, which includes implementations of the and methods. To refer to a value converter, use the [Markup Extensions and WPF XAML](/dotnet/framework/wpf/advanced/markup-extensions-and-wpf-xaml).
+
]]>
@@ -234,22 +233,22 @@
Gets or sets the object that applies to any converter assigned to bindings wrapped by the or on the itself.A valid .
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *ietfLanguageTag*
- A string used to set the . This string is used to internally call. . For details on the string format, see .
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *ietfLanguageTag*
+ A string used to set the . This string is used to internally call. . For details on the string format, see .
+
]]>
@@ -290,33 +289,33 @@
Gets or sets an optional parameter to pass to a converter as additional information.A parameter to pass to a converter. The default value is .
-
-## XAML Property Element Usage
-
-```
-
-
- converterParameter
-
-
-```
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *converterParameter*
- A value of the type expected by the converter, which might be an object element or a string depending on the definition and XAML capabilities both of the property type being used and of the implementation of the converter. The converter takes in that type through the `parameter` parameter as defined by its and implementations.
-
+
+## XAML Property Element Usage
+
+```xaml
+
+
+ converterParameter
+
+
+```
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *converterParameter*
+ A value of the type expected by the converter, which might be an object element or a string depending on the definition and XAML capabilities both of the property type being used and of the implementation of the converter. The converter takes in that type through the `parameter` parameter as defined by its and implementations.
+
]]>
@@ -352,15 +351,15 @@
Gets or sets a value that indicates the direction of the data flow of this binding.
- One of the values. The default value is , which returns the default binding mode value of the target dependency property. However, the default value varies for each dependency property. In general, user-editable control properties, such as , default to two-way bindings, whereas most other properties default to one-way bindings.
-
+ One of the values. The default value is , which returns the default binding mode value of the target dependency property. However, the default value varies for each dependency property. In general, user-editable control properties, such as , default to two-way bindings, whereas most other properties default to one-way bindings.
+
A programmatic way to determine whether a dependency property binds one-way or two-way by default is to get the property metadata of the property using and then check the Boolean value of the property.
- and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
-
+ and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
+
]]>
@@ -508,11 +507,11 @@
if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -551,11 +550,11 @@
if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -672,15 +671,15 @@
Gets or sets a handler you can use to provide custom logic for handling exceptions that the binding engine encounters during the update of the binding source value. This is only applicable if you have associated the with your object.A method that provides custom logic for handling exceptions that the binding engine encounters during the update of the binding source value.
- class represents a built-in validation rule that checks for exceptions that are thrown during the update of the binding source properties. If you have associated the object with your object, you can use this property to set a handler to provide custom logic for handling these exceptions.
-
- For an example, see .
-
- For more information about the validation process for objects, see the property.
-
+ class represents a built-in validation rule that checks for exceptions that are thrown during the update of the binding source properties. If you have associated the object with your object, you can use this property to set a handler to provide custom logic for handling these exceptions.
+
+ For an example, see .
+
+ For more information about the validation process for objects, see the property.
+
]]>
@@ -715,15 +714,15 @@
Gets or sets a value that determines the timing of binding source updates.
- One of the values. The default value is , which returns the default value of the target dependency property. However, the default value for most dependency properties is , while the property has a default value of .
-
+ One of the values. The default value is , which returns the default value of the target dependency property. However, the default value for most dependency properties is , while the property has a default value of .
+
A programmatic way to determine the default value of a dependency property is to get the property metadata of the property using and then check the value of the property.
- and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
-
+ and properties determine the functionality of the and are used as the default values for all the bindings in the collection unless an individual binding overrides these properties. For example, if the property on the object is set to , then all the bindings in the collection are considered unless you set a different value on one of the bindings explicitly. For more information, see the and properties.
+
]]>
@@ -761,15 +760,15 @@
to include the ; otherwise, .
- element explicitly. The is a built-in validation rule that checks for errors that are raised by the implementation of the source object. If an error is raised, the binding engine creates a with the error and adds it to the collection of the bound element. The lack of an error clears this validation feedback, unless another rule raises a validation issue.
-
- For more information about the validation process for objects, see the property.
-
- is introduced in the .NET Framework version 3.5. For more information, see [Versions and Dependencies](/dotnet/framework/migration-guide/versions-and-dependencies).
-
+ element explicitly. The is a built-in validation rule that checks for errors that are raised by the implementation of the source object. If an error is raised, the binding engine creates a with the error and adds it to the collection of the bound element. The lack of an error clears this validation feedback, unless another rule raises a validation issue.
+
+ For more information about the validation process for objects, see the property.
+
+ is introduced in the .NET Framework version 3.5. For more information, see [Versions and Dependencies](/dotnet/framework/migration-guide/versions-and-dependencies).
+
]]>
@@ -808,15 +807,15 @@
to include the ; otherwise, .
- element explicitly. The is a built-in validation rule that checks for exceptions that are thrown during the update of the source property. If an exception is thrown, the binding engine creates a with the exception and adds it to the collection of the bound element. The lack of an error clears this validation feedback, unless another rule raises a validation issue.
-
- For more information about the validation process for objects, see the property.
-
- is introduced in the .NET Framework version 3.5. For more information, see [Versions and Dependencies](/dotnet/framework/migration-guide/versions-and-dependencies).
-
+ element explicitly. The is a built-in validation rule that checks for exceptions that are thrown during the update of the source property. If an exception is thrown, the binding engine creates a with the exception and adds it to the collection of the bound element. The lack of an error clears this validation feedback, unless another rule raises a validation issue.
+
+ For more information about the validation process for objects, see the property.
+
+ is introduced in the .NET Framework version 3.5. For more information, see [Versions and Dependencies](/dotnet/framework/migration-guide/versions-and-dependencies).
+
]]>
@@ -854,11 +853,11 @@
to include the ; otherwise, . The default is .
- is `true`, the binding checks for and reports errors that are raised by a data source that implements .
-
+ is `true`, the binding checks for and reports errors that are raised by a data source that implements .
+
]]>
@@ -889,32 +888,32 @@
Gets the collection of objects for this instance of .The collection of objects for this instance of .
- object and the individual objects in the object. The binding engine evaluates the on the object when a value moves from the binding target property to the object. After that, when a value moves from the converter to the binding source property of an individual binding, the binding engine evaluates the on that object.
-
- For more information about the validation process and how to provide visual feedback upon invalidation, see "Data Validation" in [Data Binding Overview](/dotnet/framework/wpf/data/data-binding-overview).
-
+ object and the individual objects in the object. The binding engine evaluates the on the object when a value moves from the binding target property to the object. After that, when a value moves from the converter to the binding source property of an individual binding, the binding engine evaluates the on that object.
+
+ For more information about the validation process and how to provide visual feedback upon invalidation, see "Data Validation" in [Data Binding Overview](/dotnet/framework/wpf/data/data-binding-overview).
+
> [!NOTE]
-> This property can be set in Extensible Application Markup Language (XAML) only by using the syntax shown, or by accessing the collection object and using its various methods, such as `Add`. The property used to access the collection object is read-only, whereas the collection itself is read-write.
-
-
-## XAML Property Element Usage
-
-```
-
-
- oneOrMoreValidationRules
-
-
-```
-
-
-## XAML Values
- *oneOrMoreValidationRules*
- One or more objects. You can use the class or create your custom rules by subclassing the class.
-
+> This property can be set in Extensible Application Markup Language (XAML) only by using the syntax shown, or by accessing the collection object and using its various methods, such as `Add`. The property used to access the collection object is read-only, whereas the collection itself is read-write.
+
+
+## XAML Property Element Usage
+
+```xaml
+
+
+ oneOrMoreValidationRules
+
+
+```
+
+
+## XAML Values
+ *oneOrMoreValidationRules*
+ One or more objects. You can use the class or create your custom rules by subclassing the class.
+
]]>Binding Validation Sample
diff --git a/xml/System.Windows.Data/ObjectDataProvider.xml b/xml/System.Windows.Data/ObjectDataProvider.xml
index 5a4363ef111..ffb65b0ca85 100644
--- a/xml/System.Windows.Data/ObjectDataProvider.xml
+++ b/xml/System.Windows.Data/ObjectDataProvider.xml
@@ -29,29 +29,29 @@
Wraps and creates an object that you can use as a binding source.
- [!IMPORTANT]
-> fails when it does not have permissions to perform reflection on the given type or member. For more information, see Permissions Requirements in [Binding Sources Overview](/dotnet/framework/wpf/data/binding-sources-overview).
-
- There are many ways to create an object to use as a binding source. For example, you can create your object in the resources section of your Extensible Application Markup Language (XAML) page, or you can create your object in code and set it as the `DataContext` of your window.
-
- enables you to create your object in XAML and make it available as a binding source. It provides the following properties that enable you to execute a query on your object and bind to the results.
-
-- Use the property to pass parameters to the constructor of your object.
-
-- Use the property to call a method and use the property to pass parameters to the method. You can then bind to the results of the method.
-
- You can also use the property to specify whether to perform object creation in a worker thread or in the active context.
-
- This class is also useful when you want to replace your current binding source object with another object and have all the associated bindings updated.
-
- provides a convenient way to create and use objects as binding source objects in XAML, but it does not replace existing data models.
-
- If you are implementing your own objects for data binding, see [Binding Sources Overview](/dotnet/framework/wpf/data/binding-sources-overview) for information and recommendations.
-
+> fails when it does not have permissions to perform reflection on the given type or member. For more information, see Permissions Requirements in [Binding Sources Overview](/dotnet/framework/wpf/data/binding-sources-overview).
+
+ There are many ways to create an object to use as a binding source. For example, you can create your object in the resources section of your Extensible Application Markup Language (XAML) page, or you can create your object in code and set it as the `DataContext` of your window.
+
+ enables you to create your object in XAML and make it available as a binding source. It provides the following properties that enable you to execute a query on your object and bind to the results.
+
+- Use the property to pass parameters to the constructor of your object.
+
+- Use the property to call a method and use the property to pass parameters to the method. You can then bind to the results of the method.
+
+ You can also use the property to specify whether to perform object creation in a worker thread or in the active context.
+
+ This class is also useful when you want to replace your current binding source object with another object and have all the associated bindings updated.
+
+ provides a convenient way to create and use objects as binding source objects in XAML, but it does not replace existing data models.
+
+ If you are implementing your own objects for data binding, see [Binding Sources Overview](/dotnet/framework/wpf/data/binding-sources-overview) for information and recommendations.
+
]]>
@@ -107,11 +107,11 @@
Starts to create the requested object, either immediately or on a background thread, based on the value of the property.
- and methods of the base class.
-
+ and methods of the base class.
+
]]>
@@ -148,27 +148,27 @@
Gets the list of parameters to pass to the constructor.The list of parameters to pass to the constructor. The default value is .
- to refresh. When changing multiple refresh-causing properties, the use of is recommended.
-
-
-## XAML Property Element Usage
-
-```xaml
-
-
- parameterValues
-
-
-```
-
-## Examples
-The highlighted lines in the following example use an as a wrapper for a `Person` object. The `` element shows how to pass a argument to its constructor.
-
- :::code language="xaml" source="~/snippets/visualbasic/VS_Snippets_Wpf/SimpleBinding/VisualBasic/Page1.xaml?highlight=10-14":::
-
+ to refresh. When changing multiple refresh-causing properties, the use of is recommended.
+
+
+## XAML Property Element Usage
+
+```xaml
+
+
+ parameterValues
+
+
+```
+
+## Examples
+The highlighted lines in the following example use an as a wrapper for a `Person` object. The `` element shows how to pass a argument to its constructor.
+
+ :::code language="xaml" source="~/snippets/visualbasic/VS_Snippets_Wpf/SimpleBinding/VisualBasic/Page1.xaml?highlight=10-14":::
+
]]>
@@ -210,11 +210,11 @@ The highlighted lines in the following example use an to perform object creation in a worker thread; otherwise, . The default is .
-
@@ -258,11 +258,11 @@ The highlighted lines in the following example use an Gets or sets the name of the method to call.
The name of the method to call. The default value is .
- property to pass parameters to the method. You can then bind to the results of the method.
-
+ property to pass parameters to the method. You can then bind to the results of the method.
+
]]>
@@ -299,24 +299,24 @@ The highlighted lines in the following example use an Gets the list of parameters to pass to the method.
The list of parameters to pass to the method. The default is an empty list.
- property to call a method on your object and use the property to pass parameters to the method. You can then bind to the results of the method.
-
- Changing this collection implicitly causes the object to refresh. When changing multiple refresh-causing properties, the use of is recommended.
-
-
-## XAML Property Element Usage
-
-```
-
-
- parameterValues
-
-
-```
-
+ property to call a method on your object and use the property to pass parameters to the method. You can then bind to the results of the method.
+
+ Changing this collection implicitly causes the object to refresh. When changing multiple refresh-causing properties, the use of is recommended.
+
+
+## XAML Property Element Usage
+
+```xaml
+
+
+ parameterValues
+
+
+```
+
]]>
@@ -347,13 +347,13 @@ The highlighted lines in the following example use an Gets or sets the object used as the binding source.
The instance of the object constructed from and , or the of which the is used as the .
- is set to a non-null value, the property holds the object of the type specified by . If is assigned by the user, the property returns the type of the assigned object. If is set to a , the uses the of the assigned source provider as the effective .
-
- If is used, and will not update until is called.
-
+ is set to a non-null value, the property holds the object of the type specified by . If is assigned by the user, the property returns the type of the assigned object. If is set to a , the uses the of the assigned source provider as the effective .
+
+ If is used, and will not update until is called.
+
]]>
@@ -392,23 +392,23 @@ The highlighted lines in the following example use an Gets or sets the type of object to create an instance of.
This property is when the is uninitialized or explicitly set to null. If is assigned, returns the type of the object or null if the object is null. The default value is .
- is used, and do not update until is called.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *myDataType*
- The data type to create an instance of. Use the [x:Type Markup Extension](/dotnet/framework/xaml-services/x-type-markup-extension) to set a type.
-
+ is used, and do not update until is called.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *myDataType*
+ The data type to create an instance of. Use the [x:Type Markup Extension](/dotnet/framework/xaml-services/x-type-markup-extension) to set a type.
+
]]>
@@ -449,11 +449,11 @@ The highlighted lines in the following example use an if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -492,11 +492,11 @@ The highlighted lines in the following example use an if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -535,11 +535,11 @@ The highlighted lines in the following example use an if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -578,11 +578,11 @@ The highlighted lines in the following example use an if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
diff --git a/xml/System.Windows.Data/XmlDataProvider.xml b/xml/System.Windows.Data/XmlDataProvider.xml
index 8291e5e0052..677de8f2558 100644
--- a/xml/System.Windows.Data/XmlDataProvider.xml
+++ b/xml/System.Windows.Data/XmlDataProvider.xml
@@ -37,25 +37,25 @@
Enables declarative access to XML data for data binding.
- [!IMPORTANT]
-> In a partial-trust sandbox, fails when it does not have permissions to access the given data. For more information about partial trust security, see [WPF Partial Trust Security](/dotnet/framework/wpf/wpf-partial-trust-security).
-
- exposes the following ways to access XML data.
-
-- You can embed inline XML data using the class.
-
-- You can set the property to the of an XML data file.
-
-- You can set the property to an .
-
- performs a full refresh of all bindings when a event occurs. There are no optimizations for specific nodes.
-
- The property is set to `true` by default, which means that the retrieves data and produces the collection of XML nodes asynchronously by default.
-
+> In a partial-trust sandbox, fails when it does not have permissions to access the given data. For more information about partial trust security, see [WPF Partial Trust Security](/dotnet/framework/wpf/wpf-partial-trust-security).
+
+ exposes the following ways to access XML data.
+
+- You can embed inline XML data using the class.
+
+- You can set the property to the of an XML data file.
+
+- You can set the property to an .
+
+ performs a full refresh of all bindings when a event occurs. There are no optimizations for specific nodes.
+
+ The property is set to `true` by default, which means that the retrieves data and produces the collection of XML nodes asynchronously by default.
+
]]>
@@ -150,13 +150,13 @@
Prepares the loading of either the inline XML or the external XML file to produce a collection of XML nodes.
- property.
-
- This method is called by the and methods of the base class.
-
+ property.
+
+ This method is called by the and methods of the base class.
+
]]>
@@ -201,23 +201,23 @@
Gets or sets the to use as the binding source.The to use as the binding source. The default value is .
- exposes the following ways to access XML data.
-
-- You can embed inline XML data using the class.
-
-- You can set the property to the of an XML data file.
-
-- You can set this property to an .
-
- performs a full refresh of all bindings on when a event occurs. There are no optimizations for specific nodes.
-
- If the property is set, then any inline XML data is discarded. If the property is set, then the property is cleared and any inline XML data is discarded.
-
- Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
-
+ exposes the following ways to access XML data.
+
+- You can embed inline XML data using the class.
+
+- You can set the property to the of an XML data file.
+
+- You can set this property to an .
+
+ performs a full refresh of all bindings on when a event occurs. There are no optimizations for specific nodes.
+
+ If the property is set, then any inline XML data is discarded. If the property is set, then the property is cleared and any inline XML data is discarded.
+
+ Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
+
]]>
@@ -329,11 +329,11 @@
if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -372,11 +372,11 @@
if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -415,11 +415,11 @@
if the property value has changed from its default; otherwise, .
- property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
-
+ property does not have a simple default value. This method indicates whether the property has changed from its default value. You typically invoke this method if you are either developing a designer for the or developing your own control incorporating the .
+
]]>
@@ -456,34 +456,34 @@
Gets or sets the of the XML data file to use as the binding source.The of the XML data file to use as the binding source. The default value is .
- exposes the following ways to access XML data.
-
-- You can embed inline XML data using the class.
-
-- You can set this property to the of an XML data file.
-
-- You can set the property to an .
-
- If the property is set, then any inline XML data is discarded. If the property is set, then the property is cleared and any inline XML data is discarded.
-
- Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
-
-
-
-## Examples
- In some applications, embedding the XML inline within the XAML page can be inconvenient because the exact content of the data must be known at compile time. Therefore, you can obtain the data from an external XML file, as in the following example.
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows.Data/XmlDataProvider/Source/Window1.xaml" id="Snippetxmlfileexample":::
-
- If the XML data resides in a remote XML file, you define access to the data by assigning an appropriate URL to the attribute as follows:
-
-```
-
-```
-
+ exposes the following ways to access XML data.
+
+- You can embed inline XML data using the class.
+
+- You can set this property to the of an XML data file.
+
+- You can set the property to an .
+
+ If the property is set, then any inline XML data is discarded. If the property is set, then the property is cleared and any inline XML data is discarded.
+
+ Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
+
+
+
+## Examples
+ In some applications, embedding the XML inline within the XAML page can be inconvenient because the exact content of the data must be known at compile time. Therefore, you can obtain the data from an external XML file, as in the following example.
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows.Data/XmlDataProvider/Source/Window1.xaml" id="Snippetxmlfileexample":::
+
+ If the XML data resides in a remote XML file, you define access to the data by assigning an appropriate URL to the attribute as follows:
+
+```xaml
+
+```
+
]]>
@@ -565,30 +565,30 @@
Gets or sets the used to run queries.The used to run queries. The default value is .
- object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Values
- *mappingCollection*
- An . To refer to a , use the [Markup Extensions and WPF XAML](/dotnet/framework/wpf/advanced/markup-extensions-and-wpf-xaml).
-
-
-
-## Examples
- The following example demonstrates how to use this property.
-
- :::code language="xaml" source="~/snippets/csharp/System.Windows.Data/XmlDataProvider/XmlNamespaceManager/Window1.xaml" id="Snippetxmlnamespacemapping":::
-
+ object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Values
+ *mappingCollection*
+ An . To refer to a , use the [Markup Extensions and WPF XAML](/dotnet/framework/wpf/advanced/markup-extensions-and-wpf-xaml).
+
+
+
+## Examples
+ The following example demonstrates how to use this property.
+
+ :::code language="xaml" source="~/snippets/csharp/System.Windows.Data/XmlDataProvider/XmlNamespaceManager/Window1.xaml" id="Snippetxmlnamespacemapping":::
+
]]>
@@ -635,42 +635,42 @@
Gets the inline XML content.The inline XML content.
-
-## XAML Property Element Usage
-
-```
-
-
-
-
-
-
-
-
-
---or--
-
-
-
-
-
-
-
-```
-
-
-## XAML Values
- *elementDataRoot*
- Required. The single root element of the enclosed data island. Without a single root, the `x:XData` is invalid as a data source.
-
- *elementData*
- Optional. XML that represents your data. Any number of elements can be contained as element data, nested elements can be contained in other elements, and so on, subject to the general rules of XML.
-
+
+## XAML Property Element Usage
+
+```xaml
+
+
+
+
+
+
+
+
+
+--or--
+
+
+
+
+
+
+
+```
+
+
+## XAML Values
+ *elementDataRoot*
+ Required. The single root element of the enclosed data island. Without a single root, the `x:XData` is invalid as a data source.
+
+ *elementData*
+ Optional. XML that represents your data. Any number of elements can be contained as element data, nested elements can be contained in other elements, and so on, subject to the general rules of XML.
+
]]>
@@ -711,13 +711,13 @@
Gets or sets the query used to generate the data collection.The query used to generate the data collection. The default is an empty string.
- method handles the `XPath` expressions from the property. `XPath` functions are not supported. For `XPath` expression information, see the documentation and some examples provided in the Example section.
-
- Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
-
+ method handles the `XPath` expressions from the property. `XPath` functions are not supported. For `XPath` expression information, see the documentation and some examples provided in the Example section.
+
+ Setting the following properties will implicitly cause this object to refresh: , , , and . When changing multiple refresh-causing properties, the use of is recommended.
+
]]>
diff --git a/xml/System.Windows.Documents/AnchoredBlock.xml b/xml/System.Windows.Documents/AnchoredBlock.xml
index 7d649a5cb46..9a14853e2f1 100644
--- a/xml/System.Windows.Documents/AnchoredBlock.xml
+++ b/xml/System.Windows.Documents/AnchoredBlock.xml
@@ -223,14 +223,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -361,12 +361,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -564,14 +564,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -691,14 +691,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/Block.xml b/xml/System.Windows.Documents/Block.xml
index b610afdbbd4..8de83dd2de6 100644
--- a/xml/System.Windows.Documents/Block.xml
+++ b/xml/System.Windows.Documents/Block.xml
@@ -189,14 +189,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -861,12 +861,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -1066,14 +1066,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -1222,14 +1222,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/EditingCommands.xml b/xml/System.Windows.Documents/EditingCommands.xml
index 79af93875fc..f3b87d8747c 100644
--- a/xml/System.Windows.Documents/EditingCommands.xml
+++ b/xml/System.Windows.Documents/EditingCommands.xml
@@ -23,88 +23,88 @@
Provides a standard set of editing related commands.
- and enumerations).
-
-|Editing command|Default key gesture|
-|---------------------|-------------------------|
-||`Ctrl`+`E`|
-||`Ctrl`+`J`|
-||`Ctrl`+`L`|
-||`Ctrl`+`R`|
-||`Backspace`|
-||no default key gesture|
-||`Ctrl`+`OemOpenBrackets`|
-||`Ctrl`+`Shift`+`T`|
-||`Delete`|
-||`Ctrl`+`Delete`|
-||`Ctrl`+`Backspace`|
-||`Shift`+`Enter`|
-||`Enter`|
-||no default key gesture|
-||`Ctrl`+`OemCloseBrackets`|
-||`Ctrl`+`T`|
-||`Down`|
-||`PageDown`|
-||`Ctrl`+`Down`|
-||`Left`|
-||`Ctrl`+`Left`|
-||`Right`|
-||`Ctrl`+`Right`|
-||`Ctrl`+`End`|
-||`Ctrl`+`Home`|
-||`End`|
-||`Home`|
-||`Up`|
-||`PageUp`|
-||`Ctrl`+`Up`|
-||`Shift`+`Down`|
-||`Shift`+`PageDown`|
-||`Ctrl`+`Shift`+`Down`|
-||`Shift`+`Left`|
-||`Ctrl`+`Shift`+`Left`|
-||`Shift`+`Right`|
-||`Ctrl`+`Shift`+`Right`|
-||`Ctrl`+`Shift`+`End`|
-||`Ctrl`+`Shift`+`Home`|
-||`Shift`+`End`|
-||`Shift`+`Home`|
-||`Shift`+`Up`|
-||`Shift`+`PageUp`|
-||`Ctrl`+`Shift`+`Up`|
-||`Shift`+`Tab`|
-||`Tab`|
-||`Ctrl`+`B`|
-||`Ctrl`+`Shift`+`L`|
-||`Insert`|
-||`Ctrl`+`I`|
-||`Ctrl`+`Shift`+`N`|
-||`Ctrl`+`OemPlus`|
-||`Ctrl`+`Shift+OemPlus`|
-||`Ctrl`+`U`|
-
- Caret movement commands and selection expanding commands share a common set of default key gestures, the general difference being the addition of the key to differentiate selection commands from caret movement commands. For example, the command has a default key gesture of , and the corresponding command has a default key gesture of +.
-
- In general, the command definitions provided by the class do not make use of command parameters (the `parameter` parameter expected by the method).
-
- For more information on commands and commanding, see [Input Overview](/dotnet/framework/wpf/advanced/input-overview).
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and enumerations).
+
+|Editing command|Default key gesture|
+|---------------------|-------------------------|
+||`Ctrl`+`E`|
+||`Ctrl`+`J`|
+||`Ctrl`+`L`|
+||`Ctrl`+`R`|
+||`Backspace`|
+||no default key gesture|
+||`Ctrl`+`OemOpenBrackets`|
+||`Ctrl`+`Shift`+`T`|
+||`Delete`|
+||`Ctrl`+`Delete`|
+||`Ctrl`+`Backspace`|
+||`Shift`+`Enter`|
+||`Enter`|
+||no default key gesture|
+||`Ctrl`+`OemCloseBrackets`|
+||`Ctrl`+`T`|
+||`Down`|
+||`PageDown`|
+||`Ctrl`+`Down`|
+||`Left`|
+||`Ctrl`+`Left`|
+||`Right`|
+||`Ctrl`+`Right`|
+||`Ctrl`+`End`|
+||`Ctrl`+`Home`|
+||`End`|
+||`Home`|
+||`Up`|
+||`PageUp`|
+||`Ctrl`+`Up`|
+||`Shift`+`Down`|
+||`Shift`+`PageDown`|
+||`Ctrl`+`Shift`+`Down`|
+||`Shift`+`Left`|
+||`Ctrl`+`Shift`+`Left`|
+||`Shift`+`Right`|
+||`Ctrl`+`Shift`+`Right`|
+||`Ctrl`+`Shift`+`End`|
+||`Ctrl`+`Shift`+`Home`|
+||`Shift`+`End`|
+||`Shift`+`Home`|
+||`Shift`+`Up`|
+||`Shift`+`PageUp`|
+||`Ctrl`+`Shift`+`Up`|
+||`Shift`+`Tab`|
+||`Tab`|
+||`Ctrl`+`B`|
+||`Ctrl`+`Shift`+`L`|
+||`Insert`|
+||`Ctrl`+`I`|
+||`Ctrl`+`Shift`+`N`|
+||`Ctrl`+`OemPlus`|
+||`Ctrl`+`Shift+OemPlus`|
+||`Ctrl`+`U`|
+
+ Caret movement commands and selection expanding commands share a common set of default key gestures, the general difference being the addition of the key to differentiate selection commands from caret movement commands. For example, the command has a default key gesture of , and the corresponding command has a default key gesture of +.
+
+ In general, the command definitions provided by the class do not make use of command parameters (the `parameter` parameter expected by the method).
+
+ For more information on commands and commanding, see [Input Overview](/dotnet/framework/wpf/advanced/input-overview).
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -143,38 +143,38 @@
Represents the command, which requests that the current paragraph or a selection of paragraphs be centered.The requested command. The default key gesture for this command is +.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
-
- The following figure shows an example of centered content.
-
- 
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
+
+ The following figure shows an example of centered content.
+
+ 
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -208,48 +208,48 @@
Represents the command, which requests that the current paragraph or a selection of paragraphs be justified.The requested command. The default key gesture for this command is +.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to all the paragraphs in the selection.
-
- When content is justified, the horizontal spacing within each line of content is adjusted so that the justified lines are of equal or near-equal width. Content is typically justified to create smooth edges on the sides of the content.
-
- Because it is often shorter than the rest, the last line in a paragraph may remain unjustified after this command is invoked.
-
- The following figure shows unjustified (left-aligned) content.
-
- 
-
- The following figure shows the same content after it has been justified.
-
- 
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to all the paragraphs in the selection.
+
+ When content is justified, the horizontal spacing within each line of content is adjusted so that the justified lines are of equal or near-equal width. Content is typically justified to create smooth edges on the sides of the content.
+
+ Because it is often shorter than the rest, the last line in a paragraph may remain unjustified after this command is invoked.
+
+ The following figure shows unjustified (left-aligned) content.
+
+ 
+
+ The following figure shows the same content after it has been justified.
+
+ 
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -283,40 +283,40 @@
Represents the command, which requests that a selection of content be aligned left.The requested command. The default key gesture for this command is +.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
-
- The following figure shows an example of left-aligned content.
-
- 
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
+
+ The following figure shows an example of left-aligned content.
+
+ 
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -350,40 +350,40 @@
Represents the command, which requests that a selection of content be aligned right.The requested command. The default key gesture for this command is +.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
-
- The following figure shows an example of right-aligned content.
-
- 
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
+
+ The following figure shows an example of right-aligned content.
+
+ 
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -417,38 +417,38 @@
Represents the command, which requests that a backspace be entered at the current position or over the current selection.The requested command. The default key gesture for this command is .
- command, which does not retain previous formatting.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ command, which does not retain previous formatting.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -479,18 +479,18 @@
Represents the command, which requests that any misspelled word at the current position be corrected.The requested command. This command has no default key gesture.
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -522,36 +522,36 @@
Represents the command, which requests that the font size for the current selection be decreased by 1 point.The requested command. The default key gesture for this command is +.
- .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -583,37 +583,37 @@
Represents the command, which requests that indentation for the current paragraph be decreased by one tab stop.The requested command. The default key gesture for this command is ++.
- .
-
+ .
+
> [!IMPORTANT]
-> This command has no effect on a text element unless the property of the text element is set to `true`.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+> This command has no effect on a text element unless the property of the text element is set to `true`.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -645,36 +645,36 @@
Represents the command, which requests that the current selection be deleted.The requested command. The default key gesture for this command is .
- command, which retains any formatting from the deleted selection for content immediately inserted at the same location after this command is invoked.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ command, which retains any formatting from the deleted selection for content immediately inserted at the same location after this command is invoked.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -705,36 +705,36 @@
Represents the command, which requests that the next word (relative to a current position) be deleted.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -770,36 +770,36 @@
Represents the command, which requests that the previous word (relative to a current position) be deleted.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -835,36 +835,36 @@
Represents the command, which requests that a line break be inserted at the current position or over the current selection.The requested command. The default key gesture for this command is +.
- , this command causes a element to be inserted at the current position.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , this command causes a element to be inserted at the current position.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -896,39 +896,39 @@
Represents the command, which requests that a paragraph break be inserted at the current position or over the current selection.The requested command. The default key gesture for this command is .
- and (when the property is `true`).
-
+ and (when the property is `true`).
+
> [!IMPORTANT]
-> This command has no effect on a text element unless the property of the text element is set to `true`.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+> This command has no effect on a text element unless the property of the text element is set to `true`.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -960,18 +960,18 @@
Represents the command, which requests that any instances of misspelled words at the current position or in the current selection be ignored.The requested command. This command has no default key gesture.
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1003,36 +1003,36 @@
Represents the command, which requests that the font size for the current selection be increased by 1 point.The requested command. The default key gesture for this command is +.
- .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1064,37 +1064,37 @@
Represents the command, which requests that indentation for the current paragraph be increased by one tab stop.The requested command. The default key gesture for this command is +.
- .
-
+ .
+
> [!IMPORTANT]
-> This command has no effect on a text element unless the property of the text element is set to `true`.
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+> This command has no effect on a text element unless the property of the text element is set to `true`.
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1126,34 +1126,34 @@
Represents the command, which requests that the caret move down by one line.The requested command. The default key gesture for this command is .
- and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1188,34 +1188,34 @@
Represents the command, which requests that the caret move down by one page.The requested command. The default key gesture for this command is .
- and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1250,38 +1250,38 @@
Represents the command, which requests that the caret move down by one paragraph.The requested command. The default key gesture for this command is +.
- when invoked on a .
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ when invoked on a .
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1316,34 +1316,34 @@
Represents the command, which requests that the caret move one character left.The requested command. The default key gesture for this command is .
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1377,36 +1377,36 @@
Represents the command, which requests that the caret move one word left.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1440,34 +1440,34 @@
Represents the command, which requests that the caret move one character right.The requested command. The default key gesture for this command is .
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1501,36 +1501,36 @@
Represents the command, which requests that the caret move right by one word.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1564,36 +1564,36 @@
Represents the command, which requests that the caret move to the very end of content.The requested command. The default key gesture for this command is +.
- and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1626,36 +1626,36 @@
Represents the command, which requests that the caret move to the very beginning of content.The requested command. The default key gesture for this command is +.
- and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1688,34 +1688,34 @@
Represents the command, which requests that the caret move to the end of the current line.The requested command. The default key gesture for this command is .
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1748,34 +1748,34 @@
Represents the command, which requests that the caret move to the beginning of the current line.The requested command. The default key gesture for this command is .
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1808,34 +1808,34 @@
Represents the command, which requests that the caret move up by one line.The requested command. The default key gesture for this command is .
- and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1870,34 +1870,34 @@
Represents the command, which requests that the caret move up by one page.The requested command. The default key gesture for this command is .
- and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1932,38 +1932,38 @@
Represents the command, which requests that the caret move up by one paragraph.The requested command. The default key gesture for this command is +.
- when invoked on a .
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ when invoked on a .
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -1998,34 +1998,34 @@
Represents the command, which requests that the current selection be expanded down by one line.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2060,34 +2060,34 @@
Represents the command, which requests that the current selection be expanded down by one page.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2122,36 +2122,36 @@
Represents the command, which requests that the current selection be expanded down by one paragraph.The requested command. The default key gesture for this command is ++.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2186,34 +2186,34 @@
Represents the command, which requests that the current selection be expanded left by one character.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2247,38 +2247,38 @@
Represents the command, which requests that the current selection be expanded left by one word.The requested command. The default key gesture for this command is ++.
- , which does include the word delimiter in the expanded selection.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , which does include the word delimiter in the expanded selection.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2312,34 +2312,34 @@
Represents the command, which requests that the current selection be expanded right by one character.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2373,38 +2373,38 @@
Represents the command, which requests that the current selection be expanded right by one word.The requested command. The default key gesture for this command is ++.
- which does not include the word delimiter in the expanded selection.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ which does not include the word delimiter in the expanded selection.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2438,36 +2438,36 @@
Represents the command, which requests that the current selection be expanded to the very end of content.The requested command. The default key gesture for this command is ++.
- and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2500,36 +2500,36 @@
Represents the command, which requests that the current selection be expanded to the very beginning of content.The requested command. The default key gesture for this command is ++.
- and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ and are examples of text containers. The content collectively contained within a text container is referred to as a *document*.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2562,34 +2562,34 @@
Represents the command, which requests that the current selection be expanded to the end of the current line.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2622,34 +2622,34 @@
Represents the command, which requests that the current selection be expanded to the beginning of the current line.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2682,34 +2682,34 @@
Represents the command, which requests that the current selection be expanded up by one line.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2744,34 +2744,34 @@
Represents the command, which requests that the current selection be expanded up by one page.The requested command. The default key gesture for this command is +.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2806,36 +2806,36 @@
Represents the command, which requests that the current selection be expanded up by one paragraph.The requested command. The default key gesture for this command is ++.
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -2870,46 +2870,45 @@
Represents the command.The requested command. The default key gesture for this command is +.
- . If the caret is in a table cell (represented by the element), this command moves the caret to the previous cell. Otherwise, a tab character is inserted in current position.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by and (when the property is `true`).
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
-```csharp
-RichTextBox rTB = new RichTextBox();
-
-EditingCommands.ToggleInsert.Execute(null, rTB);
-
-```
-
-```vb
- Dim rTB As New RichTextBox()
-
- EditingCommands.ToggleInsert.Execute(Nothing, rTB)
-```
-
+ . If the caret is in a table cell (represented by the element), this command moves the caret to the previous cell. Otherwise, a tab character is inserted in current position.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by and (when the property is `true`).
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
+```csharp
+RichTextBox rTB = new RichTextBox();
+
+EditingCommands.ToggleInsert.Execute(null, rTB);
+```
+
+```vb
+Dim rTB As New RichTextBox()
+
+EditingCommands.ToggleInsert.Execute(Nothing, rTB)
+```
+
]]>
@@ -2941,46 +2940,45 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command.The requested command. The default key gesture for this command is .
- . If the caret is in a table cell (represented by the element), this command moves the caret to the next cell. If the caret is in the last cell of a table, this command causes a new row to be appended to the table, with the caret positioned in the first cell of the new row. Otherwise, a tab character is inserted in current position.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by and (when the property is `true`).
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
-```csharp
-RichTextBox rTB = new RichTextBox();
-
-EditingCommands.ToggleInsert.Execute(null, rTB);
-
-```
-
-```vb
- Dim rTB As New RichTextBox()
-
- EditingCommands.ToggleInsert.Execute(Nothing, rTB)
-```
-
+ . If the caret is in a table cell (represented by the element), this command moves the caret to the next cell. If the caret is in the last cell of a table, this command causes a new row to be appended to the table, with the caret positioned in the first cell of the new row. Otherwise, a tab character is inserted in current position.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by and (when the property is `true`).
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
+```csharp
+RichTextBox rTB = new RichTextBox();
+
+EditingCommands.ToggleInsert.Execute(null, rTB);
+```
+
+```vb
+Dim rTB As New RichTextBox()
+
+EditingCommands.ToggleInsert.Execute(Nothing, rTB)
+```
+
]]>
@@ -3012,38 +3010,38 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that formatting be toggled on the current selection.The requested command. The default key gesture for this command is +.
- for the current selection is in the range from to , is applied to the current selection. Otherwise, is applied. For a comparative list of values, see .
-
- When the selection is empty and the caret is within a word, the selection is expanded to include the entire word.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ for the current selection is in the range from to , is applied to the current selection. Otherwise, is applied. For a comparative list of values, see .
+
+ When the selection is empty and the caret is within a word, the selection is expanded to include the entire word.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3076,36 +3074,36 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that unordered list (also referred to as bulleted list) formatting be toggled on the current selection.The requested command. The default key gesture for this command is ++.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3137,34 +3135,34 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which toggles the typing mode between Insert and Overtype.The requested command. The default key gesture for this command is .
- , , and .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ , , and .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3195,38 +3193,38 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that formatting be toggled on the current selection.The requested command. The default key gesture for this command is +.
- for the current selection is , is applied to the current selection. Otherwise, is applied.
-
- When the selection is empty and the caret is within a word, the selection is expanded to include the entire word.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ for the current selection is , is applied to the current selection. Otherwise, is applied.
+
+ When the selection is empty and the caret is within a word, the selection is expanded to include the entire word.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3259,36 +3257,36 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that ordered list (also referred to as numbered list) formatting be toggled on the current selection.The requested command. The default key gesture for this command is ++.
- level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
-
- There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
-
- This command is natively supported by .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ level. If this command is invoked on a partial selection of content within a paragraph (including an empty selection where the caret is within a paragraph), the requested effect is applied to the entire paragraph. If this command is invoked on a selection that spans multiple paragraphs, the effect is applied to the entire contents of each paragraph that participates in the selection.
+
+ There is not necessarily an actual implementation that responds to this command on any given object; in many cases the implementation that responds to a command is the responsibility of the application writer.
+
+ This command is natively supported by .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3320,32 +3318,32 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that subscript formatting be toggled on the current selection.The requested command. The default key gesture for this command is +.
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3377,32 +3375,32 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that superscript formatting be toggled on the current selection.The requested command. The default key gesture for this command is ++.
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
@@ -3434,36 +3432,36 @@ EditingCommands.ToggleInsert.Execute(null, rTB);
Represents the command, which requests that formatting be toggled on the current selection.The requested command. The default key gesture for this command is +.
- .
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-
-## Examples
- The following example demonstrates how to invoke an editing command on an object that supports the command.
-
- For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
-
- The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
-
- The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
-
+ .
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+
+## Examples
+ The following example demonstrates how to invoke an editing command on an object that supports the command.
+
+ For this example, a serves as the command target. Note that implements the interface (inherited from ), and that it includes native support for many editing commands.
+
+ The first argument for the method is a command parameter. Most editing commands ignore the command parameter; in general, this parameter should be `null` for editing commands.
+
+ The second argument specifies the object to which the command will be routed. This object must implement the interface, and should include a handler for the specified command. Generally, a command is ignored when invoked on an object that does not handle the command.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/RichTextBox/Overview/Window1.xaml.cs" id="Snippet_editingcommands_invoke":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/RichTextBoxSnippets/visualbasic/window1.xaml.vb" id="Snippet_editingcommands_invoke":::
+
]]>
diff --git a/xml/System.Windows.Documents/Figure.xml b/xml/System.Windows.Documents/Figure.xml
index 8563af1d3b9..a5293b50e7e 100644
--- a/xml/System.Windows.Documents/Figure.xml
+++ b/xml/System.Windows.Documents/Figure.xml
@@ -472,10 +472,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -671,10 +671,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/Floater.xml b/xml/System.Windows.Documents/Floater.xml
index 5c54beff3cf..a4cd9ad49d5 100644
--- a/xml/System.Windows.Documents/Floater.xml
+++ b/xml/System.Windows.Documents/Floater.xml
@@ -312,12 +312,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/FlowDocument.xml b/xml/System.Windows.Documents/FlowDocument.xml
index 344b05ba091..4f8204cbd0c 100644
--- a/xml/System.Windows.Documents/FlowDocument.xml
+++ b/xml/System.Windows.Documents/FlowDocument.xml
@@ -336,12 +336,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -548,10 +548,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -667,12 +667,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -970,14 +970,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -1089,10 +1089,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -1833,12 +1833,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -2073,10 +2073,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2190,10 +2190,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2307,10 +2307,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2424,10 +2424,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
@@ -2614,12 +2614,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -2730,14 +2730,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -2857,12 +2857,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/List.xml b/xml/System.Windows.Documents/List.xml
index d5a38f9ac81..71b005d37dc 100644
--- a/xml/System.Windows.Documents/List.xml
+++ b/xml/System.Windows.Documents/List.xml
@@ -243,12 +243,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/ListItem.xml b/xml/System.Windows.Documents/ListItem.xml
index c958dcf8750..ac6f0fbccec 100644
--- a/xml/System.Windows.Documents/ListItem.xml
+++ b/xml/System.Windows.Documents/ListItem.xml
@@ -306,14 +306,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -527,12 +527,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -755,14 +755,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -911,14 +911,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/Paragraph.xml b/xml/System.Windows.Documents/Paragraph.xml
index a663093e51f..ec4fc06684e 100644
--- a/xml/System.Windows.Documents/Paragraph.xml
+++ b/xml/System.Windows.Documents/Paragraph.xml
@@ -660,10 +660,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/Table.xml b/xml/System.Windows.Documents/Table.xml
index 0ed5922196f..dd50027cc5d 100644
--- a/xml/System.Windows.Documents/Table.xml
+++ b/xml/System.Windows.Documents/Table.xml
@@ -154,10 +154,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/TableCell.xml b/xml/System.Windows.Documents/TableCell.xml
index 86fed569b83..3fbcd414a1d 100644
--- a/xml/System.Windows.Documents/TableCell.xml
+++ b/xml/System.Windows.Documents/TableCell.xml
@@ -297,14 +297,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -594,12 +594,12 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
```
@@ -834,14 +834,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
diff --git a/xml/System.Windows.Documents/TextElement.xml b/xml/System.Windows.Documents/TextElement.xml
index 3a29fd51246..cd98d96fede 100644
--- a/xml/System.Windows.Documents/TextElement.xml
+++ b/xml/System.Windows.Documents/TextElement.xml
@@ -315,14 +315,14 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
- or -
-
+
- or -
-
+
```
@@ -436,10 +436,10 @@
## XAML Attribute Usage
-```
-
+```xaml
+
- or -
-
+
```
diff --git a/xml/System.Windows.Forms.Integration/WindowsFormsHost.xml b/xml/System.Windows.Forms.Integration/WindowsFormsHost.xml
index 28e43eec2af..e88fb817fdc 100644
--- a/xml/System.Windows.Forms.Integration/WindowsFormsHost.xml
+++ b/xml/System.Windows.Forms.Integration/WindowsFormsHost.xml
@@ -59,7 +59,7 @@
## XAML Object Element Usage
-```
+```xaml
```
@@ -168,8 +168,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -350,8 +350,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
]]>
@@ -503,8 +503,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -589,8 +589,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -673,8 +673,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -758,8 +758,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -843,8 +843,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -936,8 +936,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
]]>
@@ -1096,8 +1096,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
@@ -1282,8 +1282,8 @@ The following code example demonstrates how to use a
## XAML Attribute Usage
-```
-
+```xaml
+
```
diff --git a/xml/System.Windows.Forms/BindingContext.xml b/xml/System.Windows.Forms/BindingContext.xml
index 9e07c94cb00..f341090e010 100644
--- a/xml/System.Windows.Forms/BindingContext.xml
+++ b/xml/System.Windows.Forms/BindingContext.xml
@@ -41,108 +41,98 @@
Manages the collection of objects for any object that inherits from the class.
- object that manages the objects for the form. Because the class is abstract, the return type of the property is either a or a . If the data source is an object that can return only a single property (instead of a list of objects), the is a . For example, if you specify a as the data source, a is returned. On the other hand, if the data source is an object that implements or , a is returned.
-
- For each data source on a Windows Form, there is a single or . Because there may be multiple data sources associated with a Windows Form, the enables you to retrieve any particular associated with a data source.
-
+ object that manages the objects for the form. Because the class is abstract, the return type of the property is either a or a . If the data source is an object that can return only a single property (instead of a list of objects), the is a . For example, if you specify a as the data source, a is returned. On the other hand, if the data source is an object that implements or , a is returned.
+
+ For each data source on a Windows Form, there is a single or . Because there may be multiple data sources associated with a Windows Form, the enables you to retrieve any particular associated with a data source.
+
> [!NOTE]
-> When using the property, the creates a new if one does not already exist. This can lead to some confusion, as the returned object may not manage the list (or any list) that you intend. To prevent returning an invalid , use the method to determine if the intended already exists.
-
- If you use a container control, such as a , , or , to contain data-bound controls, you can create a for just that container control and its controls. Then, each part of your form can be managed by its own . See the constructor for more information about creating multiple objects for the same data source.
-
- If you add a control to a form and bind it to a column of a table in a dataset, the control communicates with the of that form. The , in turn, talks to the specific for that data association. If you queried the `Position` property of the , it would report the current record for the binding of that control. In the following code example, a control is bound to the `FirstName` column of a `Customers` table on the `dataSet1` dataset through the for the form it is on.
-
-```vb
-TextBox1.DataBindings.Add("Text", dataSet1, "Customers.FirstName")
-
-```
-
-```csharp
-textBox1.DataBindings.Add("Text", dataSet1, "Customers.FirstName");
-
-```
-
-```cpp
-textBox1->DataBindings->Add("Text", dataSet1, "Customers.FirstName");
-```
-
- You can add a second control (`TextBox2`) to the form and bind it to the `LastName` column of the `Customers` table in the same dataset. The is aware of the first binding (`TextBox1` to `Customers.FirstName`), so it would use the same , as both text boxes are bound to the same dataset (`DataSet1`).
-
-```vb
-TextBox2.DataBindings.Add("Text", dataSet1, "Customers.LastName")
-
-```
-
-```csharp
-textBox2.DataBindings.Add("Text", dataSet1, "Customers.LastName");
-
-```
-
-```cpp
-textBox2->DataBindings->Add("Text", dataSet1, "Customers.LastName");
-```
-
- If you bind `TextBox2` to a different dataset, the creates and manages a second .
-
- It is important to be consistent about how you set the and properties; otherwise, the creates multiple currency managers for the same dataset, which results in errors. The following code example shows a few ways to set the properties and their associated objects. You can set the properties using either of the following methods, as long as you are consistent throughout your code.
-
-```vb
-ComboBox1.DataSource = DataSet1
-ComboBox1.DisplayMember = "Customers.FirstName"
-Me.BindingContext(dataSet1, "Customers").Position = 1
-
-```
-
-```csharp
-comboBox1.DataSource = DataSet1;
-comboBox1.DisplayMember = "Customers.FirstName";
-this.BindingContext[dataSet1, "Customers"].Position = 1;
-
-```
-
-```cpp
-comboBox1->DataSource = dataSet1;
-comboBox1->DisplayMember = "Customers.FirstName";
-this->BindingContext->get_Item(dataSet1, "Customers")->Position = 1;
-
-```
-
-```vb
-ComboBox1.DataSource = DataSet1.Customers
-ComboBox1.DisplayMember = "FirstName"
-Me.BindingContext(dataSet1.Customers).Position = 1
-
-```
-
-```csharp
-comboBox1.DataSource = DataSet1.Customers;
-comboBox1.DisplayMember = "FirstName";
-this.BindingContext[dataSet1.Customers].Position = 1;
-
-```
-
-```cpp
-comboBox1->DataSource = dataSet1->Customers;
-comboBox1->DisplayMember = "FirstName";
-this->BindingContext->get_Item(dataSet1->Customers)->Position = 1;
-
-```
-
+> When using the property, the creates a new if one does not already exist. This can lead to some confusion, as the returned object may not manage the list (or any list) that you intend. To prevent returning an invalid , use the method to determine if the intended already exists.
+
+ If you use a container control, such as a , , or , to contain data-bound controls, you can create a for just that container control and its controls. Then, each part of your form can be managed by its own . See the constructor for more information about creating multiple objects for the same data source.
+
+ If you add a control to a form and bind it to a column of a table in a dataset, the control communicates with the of that form. The , in turn, talks to the specific for that data association. If you queried the `Position` property of the , it would report the current record for the binding of that control. In the following code example, a control is bound to the `FirstName` column of a `Customers` table on the `dataSet1` dataset through the for the form it is on.
+
+```vb
+TextBox1.DataBindings.Add("Text", dataSet1, "Customers.FirstName")
+```
+
+```csharp
+textBox1.DataBindings.Add("Text", dataSet1, "Customers.FirstName");
+```
+
+```cpp
+textBox1->DataBindings->Add("Text", dataSet1, "Customers.FirstName");
+```
+
+ You can add a second control (`TextBox2`) to the form and bind it to the `LastName` column of the `Customers` table in the same dataset. The is aware of the first binding (`TextBox1` to `Customers.FirstName`), so it would use the same , as both text boxes are bound to the same dataset (`DataSet1`).
+
+```vb
+TextBox2.DataBindings.Add("Text", dataSet1, "Customers.LastName")
+```
+
+```csharp
+textBox2.DataBindings.Add("Text", dataSet1, "Customers.LastName");
+```
+
+```cpp
+textBox2->DataBindings->Add("Text", dataSet1, "Customers.LastName");
+```
+
+ If you bind `TextBox2` to a different dataset, the creates and manages a second .
+
+ It is important to be consistent about how you set the and properties; otherwise, the creates multiple currency managers for the same dataset, which results in errors. The following code example shows a few ways to set the properties and their associated objects. You can set the properties using either of the following methods, as long as you are consistent throughout your code.
+
+```vb
+ComboBox1.DataSource = DataSet1
+ComboBox1.DisplayMember = "Customers.FirstName"
+Me.BindingContext(dataSet1, "Customers").Position = 1
+```
+
+```csharp
+comboBox1.DataSource = DataSet1;
+comboBox1.DisplayMember = "Customers.FirstName";
+this.BindingContext[dataSet1, "Customers"].Position = 1;
+```
+
+```cpp
+comboBox1->DataSource = dataSet1;
+comboBox1->DisplayMember = "Customers.FirstName";
+this->BindingContext->get_Item(dataSet1, "Customers")->Position = 1;
+```
+
+```vb
+ComboBox1.DataSource = DataSet1.Customers
+ComboBox1.DisplayMember = "FirstName"
+Me.BindingContext(dataSet1.Customers).Position = 1
+```
+
+```csharp
+comboBox1.DataSource = DataSet1.Customers;
+comboBox1.DisplayMember = "FirstName";
+this.BindingContext[dataSet1.Customers].Position = 1;
+```
+
+```cpp
+comboBox1->DataSource = dataSet1->Customers;
+comboBox1->DisplayMember = "FirstName";
+this->BindingContext->get_Item(dataSet1->Customers)->Position = 1;
+```
+
> [!NOTE]
-> Most Windows Forms applications bind through a . The component encapsulates a and exposes the programming interface. When using a for binding, you should use the members exposed by the to manipulate "currency" (that is, `Position`) rather than go through the .
-
-
-
-## Examples
- The following code example creates four objects to bind five controls - a and four controls - to several data sources. The is then used to get the for each data source.
-
+> Most Windows Forms applications bind through a . The component encapsulates a and exposes the programming interface. When using a for binding, you should use the members exposed by the to manipulate "currency" (that is, `Position`) rather than go through the .
+
+
+
+## Examples
+ The following code example creates four objects to bind five controls - a and four controls - to several data sources. The is then used to get the for each data source.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -179,20 +169,20 @@ this->BindingContext->get_Item(dataSet1->Customers)->Position = 1;
Initializes a new instance of the class.
- instances for the same data source, create a new and set it to the property of an object that inherits from the class. For example, if you have two objects (from two different objects), you can set the properties of each to different values. This causes each set of data-bound controls to display different values from the same data source.
-
-
-
-## Examples
- The following code example creates two new objects and assigns each object to the property of a control. `GroupBox1` contains `TextBox1`, and `GroupBox2` contains `TextBox2` (which is accomplished by using the method of the class). The example then adds objects to the two controls, binding each to the same data source and data member. The example also shows two event handlers that use the from the controls to set the property on different objects.
-
+ instances for the same data source, create a new and set it to the property of an object that inherits from the class. For example, if you have two objects (from two different objects), you can set the properties of each to different values. This causes each set of data-bound controls to display different values from the same data source.
+
+
+
+## Examples
+ The following code example creates two new objects and assigns each object to the property of a control. `GroupBox1` contains `TextBox1`, and `GroupBox2` contains `TextBox2` (which is accomplished by using the method of the class). The example then adds objects to the two controls, binding each to the same data source and data member. The example also shows two event handlers that use the from the controls to set the property on different objects.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.BindingContext Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/.ctor/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.BindingContext Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.BindingContext Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -281,10 +271,10 @@ This method is obsolete and unused.
]]>
- is .
-
- -or-
-
+ is .
+
+ -or-
+
is .
@@ -403,11 +393,11 @@ This method is obsolete and unused.
Always raises a when handled.
- event is obsolete and always raises a when handled. For more information about handling events, see [Handling and Raising Events](/dotnet/standard/events/).
-
+ event is obsolete and always raises a when handled. For more information about handling events, see [Handling and Raising Events](/dotnet/standard/events/).
+
]]>Occurs in all cases.
@@ -460,22 +450,22 @@ This method is obsolete and unused.
if the contains the specified ; otherwise, .
- class for a list of possible data sources and information about creating bindings between controls and data sources.
-
- See the property for information about returning a using only a data source.
-
-
-
-## Examples
- The following code example uses the method to determine whether a exists for each control on a form. The example passes each in a to the method.
-
+ class for a list of possible data sources and information about creating bindings between controls and data sources.
+
+ See the property for information about returning a using only a data source.
+
+
+
+## Examples
+ The following code example uses the method to determine whether a exists for each control on a form. The example passes each in a to the method.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.Contains Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/Contains/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.Contains Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.Contains Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -523,22 +513,22 @@ This method is obsolete and unused.
if the contains the specified ; otherwise, .
- class for a list of possible data sources and for information about creating bindings between controls and data sources.
-
- See the property for information about returning a using a data source and data member.
-
-
-
-## Examples
- The following code example uses the method to test whether a specific exists before attempting to get it through the property.
-
+ class for a list of possible data sources and for information about creating bindings between controls and data sources.
+
+ See the property for information about returning a using a data source and data member.
+
+
+
+## Examples
+ The following code example uses the method to test whether a specific exists before attempting to get it through the property.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.Contains1 Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/Contains/source1.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.Contains1 Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.Contains1 Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -572,11 +562,11 @@ This method is obsolete and unused.
if the collection is read-only; otherwise, .
- , and is overridden to always return `false`.
-
+ , and is overridden to always return `false`.
+
]]>
@@ -627,25 +617,25 @@ This method is obsolete and unused.
Gets the that is associated with the specified data source.A for the specified data source.
- you want does not require a navigation path. For example, if the manages a set of objects that use an or as the , no navigation path is required.
-
+ you want does not require a navigation path. For example, if the manages a set of objects that use an or as the , no navigation path is required.
+
> [!NOTE]
-> The property will always return a , and never return `null`.
-
- See the class for a list of possible data sources and for information about creating bindings between controls and data sources.
-
-
-
-## Examples
- The following code example returns three objects: one for a , one for an , and one for the of a that belongs to a control.
-
+> The property will always return a , and never return `null`.
+
+ See the class for a list of possible data sources and for information about creating bindings between controls and data sources.
+
+
+
+## Examples
+ The following code example returns three objects: one for a , one for an , and one for the of a that belongs to a control.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.this Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/Item/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.this Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.this Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -699,39 +689,39 @@ This method is obsolete and unused.
Gets a that is associated with the specified data source and data member.The for the specified data source and data member.
- manages a set of objects for which the data source contains multiple objects. For example, a can contain several objects linked by objects. In such a case, the navigation path is required to enable the to return the correct .
-
+ manages a set of objects for which the data source contains multiple objects. For example, a can contain several objects linked by objects. In such a case, the navigation path is required to enable the to return the correct .
+
> [!NOTE]
-> The property will always return a , when the `dataMember` parameter is valid. It will never return `null`.
-
- See the class for a list of possible data sources and for information about creating bindings between controls and data sources.
-
- If the desired manages a list, the navigation path must also end with a list. For example, the following C# code binds a control to the order date in a table of orders. The navigation path includes the , the , and the . However, the must be retrieved using only the and (which resolves to a list).
-
-```
-// The navigation path for a Binding ends with a property.
-textBox1.DataBindings.Add
-("Text", dataSet1, "Customers.custToOrders.OrderDate");
-// The navigation path for the BindingManagerBase ends with a list.
-BindingManagerBase bmOrders = this.BindingContext
-[dataSet1, "Customers.custToOrders"];
-```
-
- When returning a , you should use the same data source as the and modify only the navigation path.
-
- Use the method to determine if the desired already exists.
-
-
-
-## Examples
- The following code example demonstrates how to use the to retrieve the for a particular binding. It also shows how to handle the event for the to ensure multiple controls bound to the same data source remain synchronized when one of the control values is changed. To run this example, paste the code into a Windows Form and call the `InitializeControlsAndData` method from the form's constructor or event-handling method.
-
+> The property will always return a , when the `dataMember` parameter is valid. It will never return `null`.
+
+ See the class for a list of possible data sources and for information about creating bindings between controls and data sources.
+
+ If the desired manages a list, the navigation path must also end with a list. For example, the following C# code binds a control to the order date in a table of orders. The navigation path includes the , the , and the . However, the must be retrieved using only the and (which resolves to a list).
+
+```csharp
+// The navigation path for a Binding ends with a property.
+textBox1.DataBindings.Add
+("Text", dataSet1, "Customers.custToOrders.OrderDate");
+// The navigation path for the BindingManagerBase ends with a list.
+BindingManagerBase bmOrders = this.BindingContext
+[dataSet1, "Customers.custToOrders"];
+```
+
+ When returning a , you should use the same data source as the and modify only the navigation path.
+
+ Use the method to determine if the desired already exists.
+
+
+
+## Examples
+ The following code example demonstrates how to use the to retrieve the for a particular binding. It also shows how to handle the event for the to ensure multiple controls bound to the same data source remain synchronized when one of the control values is changed. To run this example, paste the code into a Windows Form and call the `InitializeControlsAndData` method from the form's constructor or event-handling method.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingCompleteEventArgs/Binding/Form1.cs" id="Snippet11":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.BindingSourceMultipleControls/VB/Form1.vb" id="Snippet11":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.BindingSourceMultipleControls/VB/Form1.vb" id="Snippet11":::
+
]]>The specified does not exist within the data source.
@@ -769,13 +759,13 @@ BindingManagerBase bmOrders = this.BindingContext
A that contains the event data.
Raises the event.
- method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
-
+ method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
+
]]>
@@ -898,13 +888,13 @@ This method is obsolete and unused.
The collection index to begin copying from.
Copies the elements of the collection into a specified array, starting at the collection index.
-
@@ -938,15 +928,15 @@ This method is obsolete and unused.
Gets the total number of objects managed by the .The number of data sources managed by the .
- objects managed by the .
-
+ objects managed by the .
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.ICollection.Count Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/System.Collections.ICollection.Count/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.ICollection.Count Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.ICollection.Count Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -981,11 +971,11 @@ This method is obsolete and unused.
if the collection is thread safe; otherwise, .
- , and is overridden to always return `false`.
-
+ , and is overridden to always return `false`.
+
]]>
@@ -1060,20 +1050,20 @@ This member is an explicit interface member implementation. It can be used only
Gets an enumerator for the collection.An for the collection.
- returned by the method allows you to iterate over the collection managed by the .
-
-
-
-## Examples
- The following code example uses the method to return an for the .
-
+ returned by the method allows you to iterate over the collection managed by the .
+
+
+
+## Examples
+ The following code example uses the method to return an for the .
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic BindingContext.IEnumerable.GetEnumerator Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/BindingContext/System.Collections.IEnumerable.GetEnumerator/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.IEnumerable.GetEnumerator Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic BindingContext.IEnumerable.GetEnumerator Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -1117,11 +1107,11 @@ This member is an explicit interface member implementation. It can be used only
The to associate with the new .
Associates a with a new .
- , when their changes.
-
+ , when their changes.
+
]]>
diff --git a/xml/System.Windows.Forms/ComboBox.xml b/xml/System.Windows.Forms/ComboBox.xml
index 58c5e85514d..5b3c8f477e7 100644
--- a/xml/System.Windows.Forms/ComboBox.xml
+++ b/xml/System.Windows.Forms/ComboBox.xml
@@ -1754,9 +1754,9 @@
## Remarks
Starting with the .NET Framework 4.5.2, if the property is set to or , the drop-down arrow may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:
-```
+```xml
-
+
```
diff --git a/xml/System.Windows.Forms/Control.xml b/xml/System.Windows.Forms/Control.xml
index 02b110b7fe7..85b21b56a24 100644
--- a/xml/System.Windows.Forms/Control.xml
+++ b/xml/System.Windows.Forms/Control.xml
@@ -5557,19 +5557,14 @@ The following table lists Windows Forms controls and which event ( and properties of the are in screen coordinates, not client coordinates. The following line of Visual C# code converts the properties to a client .
+ The and properties of the are in screen coordinates, not client coordinates. The following line of code converts the properties to a client .
-```
+```csharp
Point clientPoint = targetControl.PointToClient(new Point(de.X, de.Y));
```
-> [!NOTE]
-> In versions earlier than .NET Framework 2.0, if you put a with and events on a Windows Form and drag and drop something onto the at design time, the `DropDrop` and `DropEnter` events are raised. However, when you close and reopen the solution, the and events are not raised again.
-
For more information about handling events, see [Handling and Raising Events](/dotnet/standard/events/).
-
-
## Examples
This code excerpt demonstrates using the event. See the method for the complete code example.
@@ -8488,7 +8483,7 @@ MyControl.Font = New Font(MyControl.Font, _
- If no parameters are passed, the sender parameter will contain this control and the event parameter will contain .
- When a single parameter is passed, the sender parameter will contain the first args element and the event parameter will contain .
- If more than one parameter is passed, the sender parameter will contain the first element from `args`, and the parameter will contain the second element.
-
+
A call to an or delegate will be faster than a call to another type of delegate.
> [!NOTE]
@@ -8575,11 +8570,11 @@ MyControl.Font = New Font(MyControl.Font, _
A task that represents the asynchronous invoke operation.
- When you pass a to this method, the method will return, but the callback will still be executed.
+ When you pass a to this method, the method will return, but the callback will still be executed.
The callback will be running on the UI thread and will be also blocking the UI thread. InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback gets executed, it will still block the UI thread for the time it is running. For this reason, it is recommended to only execute short sync running operations in the callback, like updating a control's property or similar.
- If you want to execute a long-running operation, consider using asynchronous callbacks instead, by making sure that you use either the overload
+ If you want to execute a long-running operation, consider using asynchronous callbacks instead, by making sure that you use either the overload
or .
@@ -8716,12 +8711,12 @@ MyControl.Font = New Font(MyControl.Font, _
When you pass a to this method, the method will return, but the callback will still be executed. The callback will be running on the UI thread and will be also blocking the UI thread.
- InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback is executed, it will still block the UI for the time it is running. For this reason, it is recommended to only
+ InvokeAsync in this case is just queuing the callback to the end of the message queue and returns immediately, but as soon as the callback is executed, it will still block the UI for the time it is running. For this reason, it is recommended to only
execute short sync running operations in the callback, like updating a control's property or similar.
If you want to execute a long-running operation, consider using asynchronous callbacks instead, which you use with the overloads of InvokeAsync described below.
- Important: Also note that if you use this overload to pass a callback which returns a that this Task will NOT be awaited but return immediately and has the characteristics of an "engage-and-forget".
+ Important: Also note that if you use this overload to pass a callback which returns a that this Task will NOT be awaited but return immediately and has the characteristics of an "engage-and-forget".
If you want the task which you pass to be awaited, make sure that you use either the overload
or .
@@ -17058,7 +17053,7 @@ if (CanSelect && IsMnemonic(charCode, MyControl.Text) {
## Remarks
The property is a read-only property. To change the value of this property, set the property value of the . The following line of C# code sets the property.
-```
+```csharp
[assembly: AssemblyProduct("MyApplication")]
```
@@ -17133,7 +17128,7 @@ if (CanSelect && IsMnemonic(charCode, MyControl.Text) {
## Remarks
The property is a read-only property. To change the value of this property, set the property value of the . The following line of C# code sets the property.
-```
+```csharp
[assembly: AssemblyVersion("1.0.1")]
```
diff --git a/xml/System.Windows.Forms/Cursor.xml b/xml/System.Windows.Forms/Cursor.xml
index 13d293f0666..8f10c9c7a41 100644
--- a/xml/System.Windows.Forms/Cursor.xml
+++ b/xml/System.Windows.Forms/Cursor.xml
@@ -58,47 +58,47 @@
Represents the image used to paint the mouse pointer.
- cursor is typically displayed. A wait cursor is commonly used to inform the user that a process is currently running. Examples of processes you might have the user wait for are opening a file, saving a file, or filling a control such as a , or with a large amount of data.
-
- All controls that derive from the class have a property. To change the cursor displayed by the mouse pointer when it is within the bounds of the control, assign a to the property of the control. Alternatively, you can display cursors at the application level by assigning a to the property. For example, if the purpose of your application is to edit a text file, you might set the property to to display a wait cursor over the application while the file loads or saves to prevent any mouse events from being processed. When the process is complete, set the property to for the application to display the appropriate cursor over each control type.
-
+ cursor is typically displayed. A wait cursor is commonly used to inform the user that a process is currently running. Examples of processes you might have the user wait for are opening a file, saving a file, or filling a control such as a , or with a large amount of data.
+
+ All controls that derive from the class have a property. To change the cursor displayed by the mouse pointer when it is within the bounds of the control, assign a to the property of the control. Alternatively, you can display cursors at the application level by assigning a to the property. For example, if the purpose of your application is to edit a text file, you might set the property to to display a wait cursor over the application while the file loads or saves to prevent any mouse events from being processed. When the process is complete, set the property to for the application to display the appropriate cursor over each control type.
+
> [!NOTE]
-> If you call before resetting the property back to the cursor, the application will resume listening for mouse events and will resume displaying the appropriate for each control in the application.
-
- Cursor objects can be created from several sources, such as the handle of an existing , a standard file, a resource, or a data stream.
-
+> If you call before resetting the property back to the cursor, the application will resume listening for mouse events and will resume displaying the appropriate for each control in the application.
+
+ Cursor objects can be created from several sources, such as the handle of an existing , a standard file, a resource, or a data stream.
+
> [!NOTE]
-> The class does not support animated cursors (.ani files) or cursors with colors other than black and white.
-
- If the image you are using as a cursor is too small, you can use the method to force the image to fill the bounds of the cursor. You can temporarily hide the cursor by calling the method, and restore it by calling the method.
-
- Starting with the .NET Framework 4.5.2, the will be resized based on the system DPI setting when the app.config file contains the following entry:
-
-```
-
-
-
-```
-
-
-
-## Examples
- The following code example displays a form that demonstrates using a custom cursor. The custom is embedded in the application's resource file. The example requires a cursor contained in a cursor file named `MyCursor.cur`. To compile this example using the command line, include the following flag: `/res:MyCursor.Cur, CustomCursor.MyCursor.Cur`
-
+> The class does not support animated cursors (.ani files) or cursors with colors other than black and white.
+
+ If the image you are using as a cursor is too small, you can use the method to force the image to fill the bounds of the cursor. You can temporarily hide the cursor by calling the method, and restore it by calling the method.
+
+ Starting with the .NET Framework 4.5.2, the will be resized based on the system DPI setting when the app.config file contains the following entry:
+
+```xml
+
+
+
+```
+
+
+
+## Examples
+ The following code example displays a form that demonstrates using a custom cursor. The custom is embedded in the application's resource file. The example requires a cursor contained in a cursor file named `MyCursor.cur`. To compile this example using the command line, include the following flag: `/res:MyCursor.Cur, CustomCursor.MyCursor.Cur`
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/Overview/customcursor.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor/VB/customcursor.vb" id="Snippet1":::
-
- The following code example displays customer information in a control. The root tree nodes display customer names, and the child tree nodes display the order numbers assigned to each customer. In this example, 1,000 customers are displayed with 15 orders each. The repainting of the is suppressed by using the and methods, and a wait is displayed while the creates and paints the objects. This example requires that you have a cursor file named `MyWait.cur` in the application directory. It also requires a `Customer` object that can hold a collection of `Order` objects, and that you have created an instance of a control on a .
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor/VB/customcursor.vb" id="Snippet1":::
+
+ The following code example displays customer information in a control. The root tree nodes display customer names, and the child tree nodes display the order numbers assigned to each customer. In this example, 1,000 customers are displayed with 15 orders each. The repainting of the is suppressed by using the and methods, and a wait is displayed while the creates and paints the objects. This example requires that you have a cursor file named `MyWait.cur` in the application directory. It also requires a `Customer` object that can hold a collection of `Order` objects, and that you have created an instance of a control on a .
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/TreeView/CPP/treeview.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/Overview/treeview.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/TreeView/VB/treeview.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/TreeView/VB/treeview.vb" id="Snippet1":::
+
]]>
@@ -140,20 +140,20 @@
An that represents the Windows handle of the cursor to create.
Initializes a new instance of the class from the specified Windows handle.
- cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires that you have a and a to call this code when it is clicked.
-
+ cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires that you have a and a to call this code when it is clicked.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
+
]]>
@@ -187,23 +187,23 @@
The data stream to load the from.
Initializes a new instance of the class from the specified data stream.
- [!NOTE]
-> Animated cursors (.ani files) are not supported by the class.
-
-
-
-## Examples
- The following code example loads a cursor from a created by the method of an . When the method is called, an is displayed to the user and when a. CUR file is selected and the dialog closed, the file is opened and the returned is used to create a .
-
+> Animated cursors (.ani files) are not supported by the class.
+
+
+
+## Examples
+ The following code example loads a cursor from a created by the method of an . When the method is called, an is displayed to the user and when a. CUR file is selected and the dialog closed, the file is opened and the returned is used to create a .
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/CursorFromResource/CPP/mycursor.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/mycursor.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet1":::
+
]]>
@@ -236,23 +236,23 @@
The cursor file to load.
Initializes a new instance of the class from the specified file.
- [!NOTE]
-> Animated cursors (.ani files) are not supported by the class.
-
-
-
-## Examples
- The following code example displays customer information in a control. The root tree nodes display customer names, and the child tree nodes display the order numbers assigned to each customer. In this example, 1,000 customers are displayed with 15 orders each. The repainting of the is suppressed by using the and methods, and a wait is displayed while the creates and paints the objects. This example requires that you have a `Customer` object that can hold a collection of `Order` objects. It also requires that you have created an instance of a control on a .
-
+> Animated cursors (.ani files) are not supported by the class.
+
+
+
+## Examples
+ The following code example displays customer information in a control. The root tree nodes display customer names, and the child tree nodes display the order numbers assigned to each customer. In this example, 1,000 customers are displayed with 15 orders each. The repainting of the is suppressed by using the and methods, and a wait is displayed while the creates and paints the objects. This example requires that you have a `Customer` object that can hold a collection of `Order` objects. It also requires that you have created an instance of a control on a .
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/TreeView/CPP/treeview.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/Overview/treeview.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/TreeView/VB/treeview.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/TreeView/VB/treeview.vb" id="Snippet1":::
+
]]>
@@ -286,29 +286,27 @@
The name of the resource.
Initializes a new instance of the class from the specified resource with the specified resource type.
- [!NOTE]
-> The resource reference when compiling as well as when referencing it in code, is case sensitive for both the C# and Visual Basic compilers.
-
-
-
-## Examples
- The following code example displays a form that demonstrates using a custom cursor by using the constructor. The custom is embedded in the application's resource file. The example requires that you have a cursor contained in a cursor file named `MyCursor.cur`. To compile this example using the command line, include the following flag: `/res:MyCursor.Cur, CustomCursor.MyCursor.Cur`
-
+> The resource reference when compiling as well as when referencing it in code, is case sensitive for both the C# and Visual Basic compilers.
+
+## Examples
+ The following code example displays a form that demonstrates using a custom cursor by using the constructor. The custom is embedded in the application's resource file. The example requires that you have a cursor contained in a cursor file named `MyCursor.cur`. To compile this example using the command line, include the following flag: `/res:MyCursor.Cur, CustomCursor.MyCursor.Cur`
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/Overview/customcursor.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor/VB/customcursor.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor/VB/customcursor.vb" id="Snippet1":::
+
]]>
@@ -346,20 +344,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets or sets the bounds that represent the clipping rectangle for the cursor.The that represents the clipping rectangle for the , in screen coordinates.
- cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires that you have a and a to call this code when it is clicked.
-
+ cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires that you have a and a to call this code when it is clicked.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
+
]]>
@@ -392,11 +390,11 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Copies the handle of this .An that represents the cursor's handle.
-
@@ -438,11 +436,11 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets or sets a cursor object that represents the mouse cursor.A that represents the mouse cursor. The default is if the mouse cursor is not visible.
- property changes the cursor currently displayed. The application may or may not continue to listen for mouse events. To signal that the application should not respond to mouse events during a long-running operation, use the property. In most cases, however, it's better to use a background thread to manage a long-running operation, and leave your user interface accessible to the user. For more information on easily implementing a background task, see .
-
+ property changes the cursor currently displayed. The application may or may not continue to listen for mouse events. To signal that the application should not respond to mouse events during a long-running operation, use the property. In most cases, however, it's better to use a background thread to manage a long-running operation, and leave your user interface accessible to the user. For more information on easily implementing a background task, see .
+
]]>
@@ -478,23 +476,23 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Releases all resources used by the .
- when you are finished using the . The `Dispose` method leaves the in an unusable state. After calling , you must release all references to the so the garbage collector can reclaim the memory that the was occupying. For more information, see [Cleaning Up Unmanaged Resources](/dotnet/standard/garbage-collection/unmanaged) and [Implementing a Dispose Method](/dotnet/standard/garbage-collection/implementing-dispose).
-
+ when you are finished using the . The `Dispose` method leaves the in an unusable state. After calling , you must release all references to the so the garbage collector can reclaim the memory that the was occupying. For more information, see [Cleaning Up Unmanaged Resources](/dotnet/standard/garbage-collection/unmanaged) and [Implementing a Dispose Method](/dotnet/standard/garbage-collection/implementing-dispose).
+
> [!NOTE]
-> Always call before you release your last reference to the . Otherwise, the resources it is using will not be freed until the garbage collector frees it.
-
-
-
-## Examples
- The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a to pass into the method when it is called.
-
+> Always call before you release your last reference to the . Otherwise, the resources it is using will not be freed until the garbage collector frees it.
+
+
+
+## Examples
+ The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
@@ -531,20 +529,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
The that represents the bounds of the .
Draws the cursor on the specified surface, within the specified bounds.
- does not contain information about how to render a given image, so it passes the call to the . The method crops the image to the given dimensions and allows you to specify a within which to draw the . This method is typically used if you want to draw the cursor on a Graphics surface. For example, you might have a dialog that allows the user to select cursors from a control, or a group of controls.
-
-
-
-## Examples
- The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires that you have a and a object to pass into the method when it is called.
-
+ does not contain information about how to render a given image, so it passes the call to the . The method crops the image to the given dimensions and allows you to specify a within which to draw the . This method is typically used if you want to draw the cursor on a Graphics surface. For example, you might have a dialog that allows the user to select cursors from a control, or a group of controls.
+
+
+
+## Examples
+ The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires that you have a and a object to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
@@ -582,20 +580,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
The that represents the bounds of the .
Draws the cursor in a stretched format on the specified surface, within the specified bounds.
- object does not contain information about how to render a given image, so it passes the call to the object. The method stretches the image to fill the specified when the cursor is drawn.
-
-
-
-## Examples
- The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires that you have a and a object to pass into the method when it is called.
-
+ object does not contain information about how to render a given image, so it passes the call to the object. The method stretches the image to fill the specified when the cursor is drawn.
+
+
+
+## Examples
+ The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires that you have a and a object to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
@@ -634,15 +632,15 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
if this cursor is equal to the specified ; otherwise, .
- cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
-
+ cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
+
]]>
@@ -734,20 +732,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets the handle of the cursor.An that represents the cursor's handle.
- cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
-
+ cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
+
]]>The handle value is .
@@ -781,20 +779,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Hides the cursor.
- and method calls must be balanced. For every call to the method there must be a corresponding call to the method.
-
-
-
-## Examples
- The following code example hides the cursor when the mouse pointer enters the button's client area. Likewise, when the mouse pointer leaves the button's client area, the cursor is shown again. This example requires a with a named `myButton`.
-
+ and method calls must be balanced. For every call to the method there must be a corresponding call to the method.
+
+
+
+## Examples
+ The following code example hides the cursor when the mouse pointer enters the button's client area. Likewise, when the mouse pointer leaves the button's client area, the cursor is shown again. This example requires a with a named `myButton`.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/CursorFromResource/CPP/mycursor.cpp" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/mycursor.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet3":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet3":::
+
]]>
@@ -826,11 +824,11 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets the cursor hot spot.A representing the cursor hot spot.
- is the in the cursor that interacts with other elements on the screen.
-
+ is the in the cursor that interacts with other elements on the screen.
+
]]>
@@ -870,15 +868,15 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
if two instances of the class are equal; otherwise, .
-
-
-## Examples
- The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a object to pass into the method when it is called.
-
+
+
+## Examples
+ The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a object to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
@@ -919,15 +917,15 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
if two instances of the class are not equal; otherwise, .
-
-
-## Examples
- The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a to pass into the method when it is called.
-
+
+
+## Examples
+ The following code example draws the specified cursor on the form in its normal size, and in stretched mode, twice its size. This example requires a and a to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
@@ -960,20 +958,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets or sets the cursor's position.A that represents the cursor's position in screen coordinates.
- property is identical to the property.
-
-
-
-## Examples
- The following code example creates a cursor from the cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
-
+ property is identical to the property.
+
+
+
+## Examples
+ The following code example creates a cursor from the cursor's , changes its position and clipping rectangle. The result is the cursor will move up and to the left 50 pixels from where it is when the code is executed. Additionally, the cursor's clipping rectangle is changed to the bounds of the form (by default it is the user's whole screen). This example requires a and a to call this code when it is clicked.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet1":::
+
]]>
@@ -1006,20 +1004,20 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Displays the cursor.
- and method calls must be balanced. For every call to the method there must be a corresponding call to the method.
-
-
-
-## Examples
- The following code example hides the cursor when the mouse pointer enters the button's client area. Likewise, when the mouse pointer leaves the button's client area, the cursor is shown again. This example requires a with a named `myButton`.
-
+ and method calls must be balanced. For every call to the method there must be a corresponding call to the method.
+
+
+
+## Examples
+ The following code example hides the cursor when the mouse pointer enters the button's client area. Likewise, when the mouse pointer leaves the button's client area, the cursor is shown again. This example requires a with a named `myButton`.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/CursorFromResource/CPP/mycursor.cpp" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/mycursor.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet3":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/CursorFromResource/VB/mycursor.vb" id="Snippet3":::
+
]]>
@@ -1052,15 +1050,15 @@ vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb
Gets the size of the cursor object.A that represents the width and height of the .
- and a object to pass into the method when it is called.
-
+ and a object to pass into the method when it is called.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/CPP/cursorstuff.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/Cursor/.ctor/cursorstuff.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.Cursor Members/VB/cursorstuff.vb" id="Snippet2":::
+
]]>
diff --git a/xml/System.Windows.Forms/DataGridViewCell.xml b/xml/System.Windows.Forms/DataGridViewCell.xml
index b30134becc6..6e6efc8c5ec 100644
--- a/xml/System.Windows.Forms/DataGridViewCell.xml
+++ b/xml/System.Windows.Forms/DataGridViewCell.xml
@@ -1264,9 +1264,9 @@
Starting with the .NET Framework 4.5.2, resizing of the error icon is determined by the system DPI setting when the app.config file contains the following entry:
-```
+```xml
-
+
```
diff --git a/xml/System.Windows.Forms/DataGridViewComboBoxColumn.xml b/xml/System.Windows.Forms/DataGridViewComboBoxColumn.xml
index a302feba538..6dc09a921d6 100644
--- a/xml/System.Windows.Forms/DataGridViewComboBoxColumn.xml
+++ b/xml/System.Windows.Forms/DataGridViewComboBoxColumn.xml
@@ -49,34 +49,34 @@
Represents a column of objects.
- class is a specialized type of used to logically host cells that enable users to select values from a list of choices. A has an associated in every that intersects it.
-
- You can populate the cells manually by setting their properties. Alternatively, you can bind the column to the data source indicated by the property. If the is bound to a database table, set the column property to the name of a column in the table. If the is bound to a collection of objects, set the property to the name of an object property.
-
- You can populate the column drop-down list manually by adding values to the collection. Alternatively, you can bind the drop-down list to its own data source by setting the column property. If the values are objects in a collection or records in a database table, you must also set the and properties. The property indicates which object property or database column provides the values that are displayed in the drop-down list. The property indicates which object property or database column is used to set the cell property.
-
- One typical scenario is to bind the control to a parent database table and bind the drop-down list to a related child table. For example, you might bind the control to an `Orders` table that contains a `ProductID` column and set the column property to a `Products` table that contains `ProductID` and `ProductName` columns. In this case, you would set the column property to "ProductID" to populate its cell values from the `Orders.ProductID` column. However, to display the actual product names in the cells and the drop-down list, you would map these values to the `Products` table by setting the property to "ProductID" and the property to "ProductName".
-
- The drop-down list values (or the values indicated by the property) must include the actual cell values or the control will throw an exception.
-
- Setting the column , , and properties automatically sets the corresponding properties of all cells in the column including the . To override these property values for specific cells, set the column property first, and then set the cell properties.
-
- Unlike the control, the does not have and properties. Instead, selecting a value from a drop-down list sets the cell property.
-
- The default sort mode for this column type is .
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column.
-
+ class is a specialized type of used to logically host cells that enable users to select values from a list of choices. A has an associated in every that intersects it.
+
+ You can populate the cells manually by setting their properties. Alternatively, you can bind the column to the data source indicated by the property. If the is bound to a database table, set the column property to the name of a column in the table. If the is bound to a collection of objects, set the property to the name of an object property.
+
+ You can populate the column drop-down list manually by adding values to the collection. Alternatively, you can bind the drop-down list to its own data source by setting the column property. If the values are objects in a collection or records in a database table, you must also set the and properties. The property indicates which object property or database column provides the values that are displayed in the drop-down list. The property indicates which object property or database column is used to set the cell property.
+
+ One typical scenario is to bind the control to a parent database table and bind the drop-down list to a related child table. For example, you might bind the control to an `Orders` table that contains a `ProductID` column and set the column property to a `Products` table that contains `ProductID` and `ProductName` columns. In this case, you would set the column property to "ProductID" to populate its cell values from the `Orders.ProductID` column. However, to display the actual product names in the cells and the drop-down list, you would map these values to the `Products` table by setting the property to "ProductID" and the property to "ProductName".
+
+ The drop-down list values (or the values indicated by the property) must include the actual cell values or the control will throw an exception.
+
+ Setting the column , , and properties automatically sets the corresponding properties of all cells in the column including the . To override these property values for specific cells, set the column property first, and then set the cell properties.
+
+ Unlike the control, the does not have and properties. Instead, selecting a value from a drop-down list sets the cell property.
+
+ The default sort mode for this column type is .
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet0":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet0":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet0":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet0":::
+
]]>
@@ -119,11 +119,11 @@
Initializes a new instance of the class to the default state.
- instance, this constructor sets the property to a new instance.
-
+ instance, this constructor sets the property to a new instance.
+
]]>
@@ -180,11 +180,11 @@
if auto completion is activated; otherwise, . The default is .
- property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
-
+ property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
+
]]>The value of the property is .
@@ -239,23 +239,23 @@
Gets or sets the template used to create cells.A that all other cells in the column are modeled after. The default value is a new .
- class initializes this property to a newly created .
-
+ class initializes this property to a newly created .
+
> [!CAUTION]
-> Changing the properties of the cell template will not immediately affect the user interface (UI) of the column's existing cells. These changes are only apparent after the column is regenerated (for example, by sorting the column or through a call to the method).
-
-
-
-## Examples
- The following code example demonstrates the use of the property, which is similar to this property. This example is part of a larger example available in [How to: Manipulate Columns in the Windows Forms DataGridView Control](/dotnet/framework/winforms/controls/how-to-manipulate-columns-in-the-windows-forms-datagridview-control).
-
+> Changing the properties of the cell template will not immediately affect the user interface (UI) of the column's existing cells. These changes are only apparent after the column is regenerated (for example, by sorting the column or through a call to the method).
+
+
+
+## Examples
+ The following code example demonstrates the use of the property, which is similar to this property. This example is part of a larger example available in [How to: Manipulate Columns in the Windows Forms DataGridView Control](/dotnet/framework/winforms/controls/how-to-manipulate-columns-in-the-windows-forms-datagridview-control).
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridView.ButtonDemos/CPP/DataGridViewColumnDemo.cpp" id="Snippet120":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/AutoResizeColumn/DataGridViewColumnDemo.cs" id="Snippet120":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridView.ButtonDemos/VB/datagridviewcolumndemo.vb" id="Snippet120":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridView.ButtonDemos/VB/datagridviewcolumndemo.vb" id="Snippet120":::
+
]]>When setting this property to a value that is not of type .
@@ -293,11 +293,11 @@
Creates an exact copy of this column.An that represents the cloned .
-
@@ -363,24 +363,24 @@
Gets or sets the data source that populates the selections for the combo boxes.An object that represents a data source. The default is .
- or properties specify where to retrieve the selection data shown in the combo box drop-down list. When using the property, if the data must be drawn from a nondefault property or column, then the property must be set to the name of the nondefault property or column.
-
- If the property is set to a string array, then and do not need to be set because each string in the array will be used for both value and display.
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. The property is used to populate the combo box with a selection of titles. This example is part of a larger example available in the class overview topic.
-
+ or properties specify where to retrieve the selection data shown in the combo box drop-down list. When using the property, if the data must be drawn from a nondefault property or column, then the property must be set to the name of the nondefault property or column.
+
+ If the property is set to a string array, then and do not need to be set because each string in the array will be used for both value and display.
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. The property is used to populate the combo box with a selection of titles. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet40":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
+
]]>The value of the property is .
@@ -457,26 +457,26 @@
Gets or sets a string that specifies the property or column from which to retrieve strings for display in the combo boxes.A that specifies the name of a property or column in the data source specified in the property. The default is .
- objects is obtained from the . If this data comes from a nondefault property or column, then the property must be set to the necessary property name or column name.
-
- If the cell values are internal values not visible to the user, then use and to map the internal cell values to user-viewable values.
-
- When the property is set to a string array, the property does not need to be set because each string in the array will be used as a valid display string and as a valid underlying value.
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in data entry of the title column. is set to the property name responsible for containing the user-viewable text. In this example, the is set to the same value as because no mapping is necessary. This example is part of a larger example available in the class overview topic.
-
+ objects is obtained from the . If this data comes from a nondefault property or column, then the property must be set to the necessary property name or column name.
+
+ If the cell values are internal values not visible to the user, then use and to map the internal cell values to user-viewable values.
+
+ When the property is set to a string array, the property does not need to be set because each string in the array will be used as a valid display string and as a valid underlying value.
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in data entry of the title column. is set to the property name responsible for containing the user-viewable text. In this example, the is set to the same value as because no mapping is necessary. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet40":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
+
]]>The value of the property is .
@@ -533,19 +533,19 @@
Gets or sets a value that determines how the combo box is displayed when not editing.A value indicating the combo box appearance. The default is .
- property affects the appearance of cells in the column when they are not in edit mode, and regardless of whether they are read-only. When a cell is in edit mode, it always looks like a control.
-
- If the property value is `false`, the property affects all cells in the column; otherwise, the property affects only the current cell.
-
- The behavior and appearance of the drop-down arrow in the cells is indicated by the property.
-
- To enable cell highlighting when the mouse pointer is over a cell, you must set the property to and the property to .
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
+ property affects the appearance of cells in the column when they are not in edit mode, and regardless of whether they are read-only. When a cell is in edit mode, it always looks like a control.
+
+ If the property value is `false`, the property affects all cells in the column; otherwise, the property affects only the current cell.
+
+ The behavior and appearance of the drop-down arrow in the cells is indicated by the property.
+
+ To enable cell highlighting when the mouse pointer is over a cell, you must set the property to and the property to .
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
]]>The value of the property is .
@@ -602,15 +602,15 @@
if the display style applies only to the current cell; otherwise . The default is .
- property value is `false`, the property affects all cells in the column; otherwise, the property affects only the current cell.
-
- The property affects the appearance of cells in the column when they are not in edit mode, and regardless of whether they are read-only. When a cell is in edit mode, it always looks like a control.
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
+ property value is `false`, the property affects all cells in the column; otherwise, the property affects only the current cell.
+
+ The property affects the appearance of cells in the column when they are not in edit mode, and regardless of whether they are read-only. When a cell is in edit mode, it always looks like a control.
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
]]>The value of the property is .
@@ -664,22 +664,22 @@
Gets or sets the width of the drop-down lists of the combo boxes.The width, in pixels, of the drop-down lists. The default is 1.
- property of the member.
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
-
+ property of the member.
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet40":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
+
]]>The value of the property is .
@@ -733,32 +733,32 @@
Gets or sets the flat style appearance of the column's cells.A value indicating the cell appearance. The default is .
- property affects the behavior and appearance of the drop-down arrows for the cells in this column.
-
- Starting with the .NET Framework 4.6, when the property is set to `Flat` or `Popup` the drop-down arrows are resized according to the system DPI settings when the app.config file contains the following entry:
-
-```
-
-
-
-```
-
- To enable cell highlighting when the mouse pointer is over a cell, you must set the property to and the property to .
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
-
+ property affects the behavior and appearance of the drop-down arrows for the cells in this column.
+
+ Starting with the .NET Framework 4.6, when the property is set to `Flat` or `Popup` the drop-down arrows are resized according to the system DPI settings when the app.config file contains the following entry:
+
+```xml
+
+
+
+```
+
+ To enable cell highlighting when the mouse pointer is over a cell, you must set the property to and the property to .
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet40":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
+
]]>The value of the property is .
@@ -813,29 +813,29 @@
Gets the collection of objects used as selections in the combo boxes.An that represents the selections in the combo boxes.
- property of the returned by the property.
-
- The or properties are used to populate the selections of the combo boxes.
-
- If strings are added to , then the and properties do not need to be set because each string added will be used for both value and display.
-
+ property of the returned by the property.
+
+ The or properties are used to populate the selections of the combo boxes.
+
+ If strings are added to , then the and properties do not need to be set because each string added will be used for both value and display.
+
> [!NOTE]
-> does not support the use of multiple items with identical display values.
-
- If the property is set, then cannot be used.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. The property is used to populate the combo box drop-down list with a selection of titles. This example is part of a larger example available in the class overview topic.
-
+> does not support the use of multiple items with identical display values.
+
+ If the property is set, then cannot be used.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. The property is used to populate the combo box drop-down list with a selection of titles. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet30":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet30":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
+
]]>The value of the property is .
@@ -893,20 +893,20 @@
Gets or sets the maximum number of items in the drop-down list of the cells in the column.The maximum number of drop-down list items, from 1 to 100. The default is 8.
- property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
-
+ property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet30":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet30":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
+
]]>The value of the property is .
@@ -961,20 +961,20 @@
if the combo box is sorted; otherwise, . The default is .
- property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
-
+ property of the object returned by the property. Setting this property also sets the property of every cell in the column. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet30":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet30":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet30":::
+
]]>The value of the property is .
@@ -1078,24 +1078,24 @@
Gets or sets a string that specifies the property or column from which to get values that correspond to the selections in the drop-down list.A that specifies the name of a property or column used in the property. The default is .
- for more information about its relationship with .
-
- When the property is set to a string array, the property does not need to be set because each string in the array will be used as a valid display string and as a valid underlying value.
-
- Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
-
-
-
-## Examples
- The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
-
+ for more information about its relationship with .
+
+ When the property is set to a string array, the property does not need to be set because each string in the array will be used as a valid display string and as a valid underlying value.
+
+ Getting or setting this property gets or sets the property of the object returned by the property. Setting this property also sets the property of every cell in the column and refreshes the column display. To override the specified value for individual cells, set the cell values after you set the column value.
+
+
+
+## Examples
+ The following code example demonstrates how to use a to aid in entering data into the `TitleOfCourtesy` column. This example is part of a larger example available in the class overview topic.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/CPP/employees.cpp" id="Snippet40":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DataGridView/CellContentClick/employees.cs" id="Snippet40":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.DataGridViewColumn_AllColumns_Bound_Employees/VB/employees.vb" id="Snippet40":::
+
]]>The value of the property is .
diff --git a/xml/System.Windows.Forms/DataGridViewRow.xml b/xml/System.Windows.Forms/DataGridViewRow.xml
index 270c97ccf15..11700fcbd56 100644
--- a/xml/System.Windows.Forms/DataGridViewRow.xml
+++ b/xml/System.Windows.Forms/DataGridViewRow.xml
@@ -947,17 +947,14 @@
Starting with the .NET Framework 4.5.2, the error icon is resized according to the system DPI setting when the app.config file contains the following entry:
-```
+```xml
-
```
If this row is associated with a control, setting this property will raise the event.
-
-
## Examples
The following code example demonstrates how to use the property in a event handler. This example is part of a larger example available in the class overview.
diff --git a/xml/System.Windows.Forms/DomainUpDown.xml b/xml/System.Windows.Forms/DomainUpDown.xml
index e20fd9cfa58..578656fa4ef 100644
--- a/xml/System.Windows.Forms/DomainUpDown.xml
+++ b/xml/System.Windows.Forms/DomainUpDown.xml
@@ -50,33 +50,30 @@
Represents a Windows spin box (also known as an up-down control) that displays string values.
- control displays a single string value that is selected from an collection by clicking the up or down buttons of the control. The user can also enter text in the control, unless the property is set to `true` (the string typed in must match an item in the collection to be accepted). When an item is selected, the object is converted to a string value so it can be displayed in the spin box.
-
- To create a collection of objects to display in the control, you can add or remove the items individually by using the and methods. This can be called in an event handler, such as the event of a button. The object collection can be sorted alphabetically by setting the property to `true`. When the property is set to `true`, if you scroll past the last or first object in the collection, the list will start over with the first or last object respectively and appear to roll in a continuous list.
-
- When the or methods are called, either in code or by the click of the up or down buttons, is called to update the control with the new string. If is set to `true`, the string is matched to one of the values in the collection prior to updating the control's text display.
-
- Starting with the .NET Framework 4.6, the control will be resized based on the system DPI setting when the app.config file contains the following entry:
-
-```
-
-
-
-
-```
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ control displays a single string value that is selected from an collection by clicking the up or down buttons of the control. The user can also enter text in the control, unless the property is set to `true` (the string typed in must match an item in the collection to be accepted). When an item is selected, the object is converted to a string value so it can be displayed in the spin box.
+
+ To create a collection of objects to display in the control, you can add or remove the items individually by using the and methods. This can be called in an event handler, such as the event of a button. The object collection can be sorted alphabetically by setting the property to `true`. When the property is set to `true`, if you scroll past the last or first object in the collection, the list will start over with the first or last object respectively and appear to roll in a continuous list.
+
+ When the or methods are called, either in code or by the click of the up or down buttons, is called to update the control with the new string. If is set to `true`, the string is matched to one of the values in the collection prior to updating the control's text display.
+
+ Starting with the .NET Framework 4.6, the control will be resized based on the system DPI setting when the app.config file contains the following entry:
+
+```xml
+
+
+
+```
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -106,15 +103,15 @@
Initializes a new instance of the class.
- control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -145,14 +142,14 @@
Creates a new accessibility object for the control.A new for the control.
- method, it will be called when the property is referenced.
-
+ method, it will be called when the property is referenced.
+
> [!NOTE]
-> To get or set the property, you must add a reference to the Accessibility assembly installed with the .NET Framework.
-
+> To get or set the property, you must add a reference to the Accessibility assembly installed with the .NET Framework.
+
]]>
@@ -187,11 +184,11 @@
Displays the next item in the object collection.
- control using the down button, you will eventually reach the last item in the collection. If you continue, and is set to `true`, the list will start over with the first item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the up button.
-
+ control using the down button, you will eventually reach the last item in the collection. If you continue, and is set to `true`, the list will start over with the first item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the up button.
+
]]>
@@ -254,20 +251,20 @@
A collection of objects assigned to the spin box (also known as an up-down control).A that contains an collection.
- collection can be built and made available to the control in two ways. You can add items to the collection by using the or methods.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ collection can be built and made available to the control in two ways. You can add items to the collection by using the or methods.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -362,22 +359,22 @@
An that contains the event data.
Raises the event.
- method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -452,15 +449,15 @@
A that contains the event data.
Raises the event.
- property is set to `true`, the control chooses the item on the list that begins with the character. If more than one item in the collection starts with the same character, the control selects the next item that begins with the typed character, starting from the currently selected position.
-
- Raising an event invokes the event handler through a delegate. For more information, see [Handling and Raising Events](/dotnet/standard/events/).
-
- The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
-
+ property is set to `true`, the control chooses the item on the list that begins with the character. If more than one item in the collection starts with the same character, the control selects the next item that begins with the typed character, starting from the currently selected position.
+
+ Raising an event invokes the event handler through a delegate. For more information, see [Handling and Raising Events](/dotnet/standard/events/).
+
+ The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
+
]]>
@@ -513,11 +510,11 @@
in all cases.
- property, it will have a value of .
-
+ property, it will have a value of .
+
]]>
@@ -558,11 +555,11 @@
Occurs when the value of the property changes.
-
@@ -604,29 +601,29 @@
Gets or sets the index value of the selected item.The zero-based index value of the selected item. The default value is -1.
- property holds the index value of the item in the collection that is currently selected in the spin box (also known as an up-down control). Collection items can be reassigned new index values if the property has been changed from `false` to `true`. As the collection is re-sorted alphabetically, the items will be assigned a new index value.
-
+ property holds the index value of the item in the collection that is currently selected in the spin box (also known as an up-down control). Collection items can be reassigned new index values if the property has been changed from `false` to `true`. As the collection is re-sorted alphabetically, the items will be assigned a new index value.
+
> [!NOTE]
-> If the user has entered an item in the spin box, or if no item has been selected, the value will be the default value, -1.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+> If the user has entered an item in the spin box, or if no item has been selected, the value will be the default value, -1.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box. The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
- The assigned value is less than the default, -1.
-
- -or-
-
+ The assigned value is less than the default, -1.
+
+ -or-
+
The assigned value is greater than the count.
@@ -673,20 +670,20 @@
Gets or sets the selected item based on the index value of the selected item in the collection.The selected item based on the value. The default value is .
- property is set to the appropriate index value.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ property is set to the appropriate index value.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -719,21 +716,21 @@
Occurs when the property has been changed.
- event to occur, the property can be changed in code, by the user typing in a new value or clicking the control's up or down buttons.
-
-
-
-## Examples
- The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing with or appending the message to a multiline .
-
- To run the example code, paste it into a project that contains an instance of type named `DomainUpDown1`. Then ensure that the event handler is associated with the event.
-
+ event to occur, the property can be changed in code, by the user typing in a new value or clicking the control's up or down buttons.
+
+
+
+## Examples
+ The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the event. This report helps you to learn when the event occurs and can assist you in debugging. To report on multiple events or on events that occur frequently, consider replacing with or appending the message to a multiline .
+
+ To run the example code, paste it into a project that contains an instance of type named `DomainUpDown1`. Then ensure that the event handler is associated with the event.
+
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel/CollectionChangeEventArgs/Overview/EventExamples.cs" id="Snippet381":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb" id="Snippet381":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.EventExamples/VB/EventExamples.vb" id="Snippet381":::
+
]]>
@@ -779,20 +776,20 @@
if the item collection is sorted; otherwise, . The default value is .
- is set to `true`, the collection is sorted in alphabetical order.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ is set to `true`, the collection is sorted in alphabetical order.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
@@ -825,11 +822,11 @@
Returns a string that represents the control.A string that represents the current .
- and properties.
-
+ and properties.
+
]]>
@@ -861,11 +858,11 @@
Displays the previous item in the collection.
- control using the up button, you will eventually reach the first item in the collection. If you continue, and is set to `true`, the list will start over with the last item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the down button.
-
+ control using the up button, you will eventually reach the first item in the collection. If you continue, and is set to `true`, the list will start over with the last item in the collection and appear to be continuous. This behavior also occurs when you move through the collection using the down button.
+
]]>
@@ -947,20 +944,20 @@
if the list starts again when the user reaches the beginning or end of the collection; otherwise, . The default value is .
- property is set to `true`, if you reach the last item in the collection and continue, the list will start over with the first item and appear to be continuous. This behavior works in reverse as well.
-
-
-
-## Examples
- The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
-
+ property is set to `true`, if you reach the last item in the collection and continue, the list will start over with the first item and appear to be continuous. This behavior works in reverse as well.
+
+
+
+## Examples
+ The following code example creates and initializes a control. The example allows you to set some of its properties and create a collection of strings for display in the spin box (also known as an up-down control). The code assumes that a , , and have been instantiated on a form. The example also assumes that you have a member variable at the class level declared as a 32-bit signed integer named `myCounter`. You can enter a string in the text box and add it to the collection when the button is clicked. By clicking the check box, you can toggle the property and observe the difference in the collection of items in the spin box.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Forms/DomainUpDown/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/Classic DomainUpDown Example/VB/source.vb" id="Snippet1":::
+
]]>
diff --git a/xml/System.Windows.Forms/ToolStripMenuItem.xml b/xml/System.Windows.Forms/ToolStripMenuItem.xml
index 313b544c774..9b4469752ee 100644
--- a/xml/System.Windows.Forms/ToolStripMenuItem.xml
+++ b/xml/System.Windows.Forms/ToolStripMenuItem.xml
@@ -453,7 +453,7 @@
Starting with the .NET Framework 4.5.2, when an item is checked or indeterminate, the corresponding icon may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:
-```
+```xml
@@ -614,7 +614,7 @@
Starting with the .NET Framework 4.5.2, if the property is set to or , the corresponding icon may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:
-```
+```xml
diff --git a/xml/System.Windows.Forms/TreeView.xml b/xml/System.Windows.Forms/TreeView.xml
index a1f0ef84ec3..8c1e20e05b5 100644
--- a/xml/System.Windows.Forms/TreeView.xml
+++ b/xml/System.Windows.Forms/TreeView.xml
@@ -81,7 +81,6 @@
-
```
Tree nodes can be expanded to display the next level of child tree nodes. The user can expand the by clicking the plus-sign (+) button, if one is displayed next to the , or you can expand the by calling the method. To expand all the child tree node levels in the collection, call the method. You can collapse the child level by calling the method, or the user can press the minus-sign (-) button, if one is displayed next to the . You can also call the method to alternate between the expanded and collapsed states.
@@ -4804,11 +4803,10 @@ If you set the property
The state images displayed in the are 16 x 16 pixels by default. Setting the property of the will have no effect on how the images are displayed. However, the state images are resized according to the system DPI setting when the app.config file contains the following entry:
-```
+```xml
-
```
When the property of a is set to `true` and the property is set, each that is contained in the displays the first and second images from the to indicate an unchecked or checked state, respectively. You should set the property before you add nodes to the to prevent state images being shown at design time for nodes that do not have a state image set.
diff --git a/xml/System.Windows.Ink/StrokeCollection.xml b/xml/System.Windows.Ink/StrokeCollection.xml
index 2ed862964fa..9ee7e53bf92 100644
--- a/xml/System.Windows.Ink/StrokeCollection.xml
+++ b/xml/System.Windows.Ink/StrokeCollection.xml
@@ -40,52 +40,52 @@
Represents a collection of objects.
- enables you to perform functions such as hit testing, clipping, and erasing strokes. The control performs many of these functions, but if you need more control than the provides, the offers more options.
-
- The following table lists where to learn about managing digital ink on a custom control.
-
-|To do this…|See this article|
-|-----------------|----------------------|
-|Create a control that collects digital ink|[Creating an Ink Input Control](/dotnet/framework/wpf/advanced/creating-an-ink-input-control)|
-|Create a control that enables the user to select ink|[How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control)|
-|Create a control that enables the user to point-erase ink|[How to: Erase Ink on a Custom Control](/dotnet/framework/wpf/advanced/how-to-erase-ink-on-a-custom-control)|
-
-
-## XAML Attribute Usage
-
-```
-
-```
-
-
-## XAML Object Element Usage
-
-```
-isfString
-```
-
-
-## XAML Values
-
-|Term|Definition|
-|----------|----------------|
-|`isfString`|A string that represents the stroke in base-64, encoded Ink Serialized Format (ISF).|
-
-
-
-## Examples
- The following example demonstrates how to copy the ink in one onto another . This example assumes:
-
-- There are two objects called `inkCanvas1` and `inkCanvas2`.
-
-- The event has been connected to the event handler.
-
+ enables you to perform functions such as hit testing, clipping, and erasing strokes. The control performs many of these functions, but if you need more control than the provides, the offers more options.
+
+ The following table lists where to learn about managing digital ink on a custom control.
+
+|To do this…|See this article|
+|-----------------|----------------------|
+|Create a control that collects digital ink|[Creating an Ink Input Control](/dotnet/framework/wpf/advanced/creating-an-ink-input-control)|
+|Create a control that enables the user to select ink|[How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control)|
+|Create a control that enables the user to point-erase ink|[How to: Erase Ink on a Custom Control](/dotnet/framework/wpf/advanced/how-to-erase-ink-on-a-custom-control)|
+
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
+
+## XAML Object Element Usage
+
+```xaml
+isfString
+```
+
+
+## XAML Values
+
+|Term|Definition|
+|----------|----------------|
+|`isfString`|A string that represents the stroke in base-64, encoded Ink Serialized Format (ISF).|
+
+
+
+## Examples
+ The following example demonstrates how to copy the ink in one onto another . This example assumes:
+
+- There are two objects called `inkCanvas1` and `inkCanvas2`.
+
+- The event has been connected to the event handler.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet21":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
+
]]>
@@ -183,16 +183,16 @@
A stream that contains ink data.
Initializes a from the specified of Ink Serialized Format (ISF).
- . This example assumes that there is an called `inkCanvas1`.
-
+ . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet11":::
-:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet11":::
-
+:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet11":::
+
]]>
@@ -226,23 +226,23 @@
The to add to the collection.
Adds the specified strokes to the .
- method raises the event.
-
-
-
-## Examples
- The following example demonstrates how to copy the ink in one onto another . This example assumes:
-
-- There are two objects called `inkCanvas1` and `inkCanvas2`.
-
-- The event has been connected to the event handler.
-
+ method raises the event.
+
+
+
+## Examples
+ The following example demonstrates how to copy the ink in one onto another . This example assumes:
+
+- There are two objects called `inkCanvas1` and `inkCanvas2`.
+
+- The event has been connected to the event handler.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet21":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
+
]]>A in is already a member of the .
@@ -281,26 +281,26 @@
The value of the custom property. must be of type , , , , , , , , , , , , , or an array of these data types, except , which is not allowed.
Adds a custom property to the .
- method enables you to add custom properties to a . You can then include extra information with a .
-
-
-
-## Examples
- The following example demonstrates how to add and get custom property data. The `AddTimeStamp_Click` method uses the method to add the current time to the . The `GetTimeStap_Click` method uses the method to retrieve the timestamp from the . This example assumes that there is an called `inkCanvas1`.
-
+ method enables you to add custom properties to a . You can then include extra information with a .
+
+
+
+## Examples
+ The following example demonstrates how to add and get custom property data. The `AddTimeStamp_Click` method uses the method to add the current time to the . The `GetTimeStap_Click` method uses the method to retrieve the timestamp from the . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet12":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
+
]]>
- is an empty .
-
- -or-
-
+ is an empty .
+
+ -or-
+
is not one of the allowed data types listed in the section.
@@ -370,21 +370,21 @@
An array of type that specifies the area to be clipped.
Removes all strokes in the that are outside the bounds of the specified array.
- method connects the first and last points in `lassoPoints` to create the lasso.
-
- The method raises the event for each it clips.
-
-
-
-## Examples
- The following example demonstrates how to clip the strokes in a . This example assumes that there is an called `presenter`.
-
+ method connects the first and last points in `lassoPoints` to create the lasso.
+
+ The method raises the event for each it clips.
+
+
+
+## Examples
+ The following example demonstrates how to clip the strokes in a . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet13":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet13":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet13":::
+
]]>
@@ -418,19 +418,19 @@
A that specifies the area to be clipped.
Replaces all strokes that are clipped by the specified rectangle with new strokes that do not extend beyond the specified rectangle.
- . This example assumes that there is an called `presenter`.
-
+ . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet35":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet35":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet35":::
+
]]>
@@ -462,23 +462,23 @@
Copies the .A copy of the .
- method copies each in the collection and the new references the new strokes.
-
-
-
-## Examples
- The following example demonstrates how to copy the ink in one onto another . This example assumes:
-
-- There are two objects called `inkCanvas1` and `inkCanvas2.`
-
-- The event has been connected to the event handler.
-
+ method copies each in the collection and the new references the new strokes.
+
+
+
+## Examples
+ The following example demonstrates how to copy the ink in one onto another . This example assumes:
+
+- There are two objects called `inkCanvas1` and `inkCanvas2.`
+
+- The event has been connected to the event handler.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet21":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet21":::
+
]]>
@@ -514,14 +514,14 @@
if the specified custom property identifier is in the ; otherwise, .
- . If a custom property has been associated with `timestamp`, the example gets that custom property and shows when the was saved. This example assumes that there is an called `inkCanvas1`.
-
+ . If a custom property has been associated with `timestamp`, the example gets that custom property and shows when the was saved. This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet12":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
+
]]>
@@ -555,14 +555,14 @@
The on which to draw the .
Draws the strokes in the .
- . The custom element keeps a reference to an and redraws itself when the event occurs.
-
+ . The custom element keeps a reference to an and redraws itself when the event occurs.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window3.xaml.cs" id="Snippet33":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window3.xaml.vb" id="Snippet33":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window3.xaml.vb" id="Snippet33":::
+
]]>
@@ -605,23 +605,23 @@
An array of type that specifies the area to be erased.
Removes the ink that is within the bounds of the specified area.
- method connects the first and last points in `lassoPoints` to create the lasso.
-
- The might contain new strokes after the method is called. For example, if the specified area is through the middle of a , the erase method removes that and creates two new strokes.
-
- The method raises the event for each it erases.
-
-
-
-## Examples
- The following example demonstrates how to erase strokes in a . This example assumes that there is an called `presenter`.
-
+ method connects the first and last points in `lassoPoints` to create the lasso.
+
+ The might contain new strokes after the method is called. For example, if the specified area is through the middle of a , the erase method removes that and creates two new strokes.
+
+ The method raises the event for each it erases.
+
+
+
+## Examples
+ The following example demonstrates how to erase strokes in a . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet2":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet2":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet2":::
+
]]>
@@ -655,21 +655,21 @@
A that specifies the area to be erased.
Replaces all strokes that are clipped by the specified rectangle with new strokes that do not enter the bounds of the specified rectangle.
- might contain new strokes after the method is called. For example, if the specified area is through the middle of a , the erase method removes that and creates two new strokes. All strokes that are entirely inside the specified rectangle are removed.
-
- The method raises the event for each it erases.
-
-
-
-## Examples
- The following example demonstrates how to erase the ink within the . This example assumes that there is an called `presenter`.
-
+ might contain new strokes after the method is called. For example, if the specified area is through the middle of a , the erase method removes that and creates two new strokes. All strokes that are entirely inside the specified rectangle are removed.
+
+ The method raises the event for each it erases.
+
+
+
+## Examples
+ The following example demonstrates how to erase the ink within the . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet34":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet34":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet34":::
+
]]>
@@ -705,21 +705,21 @@
A that specifies the shape of the eraser.
Replaces all strokes that are clipped by the region created by the specified along the specified path with new Strokes that are not clipped by the region.
- might contain new strokes after the method is called. For example, if `path` intersects the middle of a , the erase method removes that and creates two new strokes.
-
- The method raises the event for each it erases.
-
-
-
-## Examples
- The following example demonstrates how to erase ink along a specific path. This example assumes that there is an called `presenter`.
-
+ might contain new strokes after the method is called. For example, if `path` intersects the middle of a , the erase method removes that and creates two new strokes.
+
+ The method raises the event for each it erases.
+
+
+
+## Examples
+ The following example demonstrates how to erase ink along a specific path. This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet14":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet14":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet14":::
+
]]>
@@ -751,19 +751,19 @@
Returns the bounds of the strokes in the collection.A that contains the bounds of the strokes in the .
- method returns a that takes the appearance of the rendered . For example, if is 10 display independent pixels (DIP) wide, the includes the entire width of the .
-
-
-
-## Examples
- The following example demonstrates how to get the bounds of the and draw them on the control. This example assumes that there is an called `inkCanvas1`.
-
+ method returns a that takes the appearance of the rendered . For example, if is 10 display independent pixels (DIP) wide, the includes the entire width of the .
+
+
+
+## Examples
+ The following example demonstrates how to get the bounds of the and draw them on the control. This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet20":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet20":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet20":::
+
]]>
@@ -798,19 +798,19 @@
Creates an that hit tests the with a lasso (freehand) path.An that hit tests the .
- method returns an that considers a to be "hit" when the lasso path surrounds it. This is useful for implementing features, such as the ability to select a stroke with a lasso tool. The uses an to implement the lasso selection tool.
-
-
-
-## Examples
- The following example demonstrates how to get an that enables a user to select strokes with a lasso tool. To create a control that enables a user to select ink, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
-
+ method returns an that considers a to be "hit" when the lasso path surrounds it. This is useful for implementing features, such as the ability to select a stroke with a lasso tool. The uses an to implement the lasso selection tool.
+
+
+
+## Examples
+ The following example demonstrates how to get an that enables a user to select strokes with a lasso tool. To create a control that enables a user to select ink, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/InkSelector.cs" id="Snippet17":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/InkSelector.vb" id="Snippet17":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/InkSelector.vb" id="Snippet17":::
+
]]>
@@ -845,19 +845,19 @@
Creates an that hit tests the with an erasing path.An that hit tests the .
- method returns an that considers a to be "hit" when the eraser path intersects it. This is useful for implementing features, such as the ability to erase part of a . The uses an when the property is set to .
-
-
-
-## Examples
- The following example demonstrates how to get an that can be used to erase part of a . To create a control that enables a user to erase ink, see [How to: Erase Ink on a Custom Control](/dotnet/framework/wpf/advanced/how-to-erase-ink-on-a-custom-control).
-
+ method returns an that considers a to be "hit" when the eraser path intersects it. This is useful for implementing features, such as the ability to erase part of a . The uses an when the property is set to .
+
+
+
+## Examples
+ The following example demonstrates how to get an that can be used to erase part of a . To create a control that enables a user to erase ink, see [How to: Erase Ink on a Custom Control](/dotnet/framework/wpf/advanced/how-to-erase-ink-on-a-custom-control).
+
:::code language="csharp" source="~/snippets/csharp/System.Windows/StrokeCollectionConverter/Overview/InkEraser.cs" id="Snippet4":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/InkEraser/VisualBasic/InkEraser.vb" id="Snippet4":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/InkEraser/VisualBasic/InkEraser.vb" id="Snippet4":::
+
]]>
@@ -892,19 +892,19 @@
Returns the value of the custom property associated with the specified .The value of the custom property associated with the specified .
- and methods enable you to add custom properties to a . You can then include extra information with a .
-
-
-
-## Examples
- The following example demonstrates how to add and get custom property data. The `AddTimeStamp_Click` method uses the method to add the current time to the . The `GetTimeStap_Click` method uses the method to retrieve the timestamp from the . This example assumes that there is an called `inkCanvas1`.
-
+ and methods enable you to add custom properties to a . You can then include extra information with a .
+
+
+
+## Examples
+ The following example demonstrates how to add and get custom property data. The `AddTimeStamp_Click` method uses the method to add the current time to the . The `GetTimeStap_Click` method uses the method to retrieve the timestamp from the . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet12":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet12":::
+
]]>
@@ -938,14 +938,14 @@
Returns the GUIDs of any custom properties associated with the .An array of type that represent the custom property identifiers.
- .
-
+ .
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet27":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet27":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet27":::
+
]]>
@@ -989,14 +989,14 @@
Returns a collection of strokes that intersect the specified point.A collection of objects that intersect the specified point.
- . This example assumes that there is an called `presenter`.
-
+ . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet15":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet15":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet15":::
+
]]>
@@ -1033,21 +1033,21 @@
Returns a collection of strokes that have at least the specified percentage of length within the specified area.A that has strokes with at least the specified percentage within the array.
- . This is useful when a custom control enables the user to select ink with a lasso. To create a control that enables a user to select ink with a lasso, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
-
+ . This is useful when a custom control enables the user to select ink with a lasso. To create a control that enables a user to select ink with a lasso, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet16":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet16":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet16":::
+
]]>
- is .
-
- -or-
-
+ is .
+
+ -or-
+
is . contains an empty array.
@@ -1087,14 +1087,14 @@
Returns a collection of strokes that intersect with the specified path.A of strokes that intersect with .
- array. This example assumes that there is an called `presenter`.
-
+ array. This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet37":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet37":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet37":::
+
]]>
@@ -1131,14 +1131,14 @@
Returns a collection of strokes that intersect the specified area.A collection of objects that intersect the specified point.
- . This example assumes that there is an called `presenter`.
-
+ . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet15":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet15":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet15":::
+
]]>
@@ -1175,14 +1175,14 @@
Returns a collection of strokes that have at least the specified percentage of length within the specified rectangle.A that has strokes with at least the specified percentage within the .
- . This example assumes that there is an called `presenter`.
-
+ . This example assumes that there is an called `presenter`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet36":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet36":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet36":::
+
]]>
@@ -1217,11 +1217,11 @@
Returns the index of the specified in the .The index of the stroke.
- method returns -1 if `stroke` is not a member of the .
-
+ method returns -1 if `stroke` is not a member of the .
+
]]>
@@ -1251,19 +1251,19 @@
Represents the native persistence format for ink data.
- field to specify the format of the when you transfer data, such as when you copy the to the Clipboard.
-
-
-
-## Examples
- The following example demonstrates how to copy a to the Clipboard. The example specifies that the is in Ink Serialized Format (ISF), so that other programs, such as Microsoft Office Word can accept the copied data.
-
+ field to specify the format of the when you transfer data, such as when you copy the to the Clipboard.
+
+
+
+## Examples
+ The following example demonstrates how to copy a to the Clipboard. The example specifies that the is in Ink Serialized Format (ISF), so that other programs, such as Microsoft Office Word can accept the copied data.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet5":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet5":::
+
]]>
@@ -1392,13 +1392,13 @@
A that contains the event data.
Raises the event.
- method also allows derived classes to handle the event without attaching a delegate, which is the preferred technique for handling the event in a derived class.
-
+ method also allows derived classes to handle the event without attaching a delegate, which is the preferred technique for handling the event in a derived class.
+
]]>
@@ -1432,14 +1432,14 @@
Occurs when custom property is added or removed from the .
- event. This example assumes that there is a called `dateTimeGuid` and the event is connected to the event handler defined in this example.
-
+ event. This example assumes that there is a called `dateTimeGuid` and the event is connected to the event handler defined in this example.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet29":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet29":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet29":::
+
]]>
@@ -1473,19 +1473,19 @@
The to remove from the collection.
Removes the specified strokes from the collection.
- method raises the event for each it removes.
-
-
-
-## Examples
- The following example demonstrates how to remove all strokes that are at least 80 percent within the specified lasso from a . This is useful when a custom control enables the user to select ink with a lasso. To create a control that enables a user to select ink with a lasso, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
-
+ method raises the event for each it removes.
+
+
+
+## Examples
+ The following example demonstrates how to remove all strokes that are at least 80 percent within the specified lasso from a . This is useful when a custom control enables the user to select ink with a lasso. To create a control that enables a user to select ink with a lasso, see [How to: Select Ink from a Custom Control](/dotnet/framework/wpf/advanced/how-to-select-ink-from-a-custom-control).
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/StrokeCollectionDemo.cs" id="Snippet16":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet16":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/StrokeCollectionDemo.vb" id="Snippet16":::
+
]]>
@@ -1550,14 +1550,14 @@
The associated with the custom property to remove.
Removes the custom property associated with the specified .
- . This example assumes that there is an called `inkCanvas1` and a called `timestamp`.
-
+ . This example assumes that there is an called `inkCanvas1` and a called `timestamp`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet28":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet28":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet28":::
+
]]>
@@ -1602,30 +1602,30 @@
The source .
Replaces the specified with the specified .
- method raises the event.
-
-
-
-## Examples
- The following example demonstrates how to replace the selected strokes on an with another . This example assumes that there is an called `inkCanvas1`.
-
+ method raises the event.
+
+
+
+## Examples
+ The following example demonstrates how to replace the selected strokes on an with another . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet7":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet7":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet7":::
+
]]>
- is empty.
-
- -or-
-
- is empty.
-
- -or-
-
+ is empty.
+
+ -or-
+
+ is empty.
+
+ -or-
+
A in is already in .
@@ -1660,34 +1660,34 @@
The source .
Replaces the specified with a new .
- method raises the event for each it replaces.
-
-
-
-## Examples
- The following example demonstrates how to replace the selected strokes on an with another . This example assumes that there is an called `inkCanvas1`.
-
+ method raises the event for each it replaces.
+
+
+
+## Examples
+ The following example demonstrates how to replace the selected strokes on an with another . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet7":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet7":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet7":::
+
]]>
- is empty.
-
- -or-
-
- is empty.
-
- -or-
-
- A in is already in .
-
- -or-
-
+ is empty.
+
+ -or-
+
+ is empty.
+
+ -or-
+
+ A in is already in .
+
+ -or-
+
The strokes in are not continuous.
@@ -1735,19 +1735,19 @@
The to which to save the .
Saves the to the specified .
- method saves the as Ink Serialized Format (ISF).
-
-
-
-## Examples
- The following example demonstrates how to save a to a file by using the method. This example assumes that there is an called `inkCanvas1`.
-
+ method saves the as Ink Serialized Format (ISF).
+
+
+
+## Examples
+ The following example demonstrates how to save a to a file by using the method. This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
+
]]>
@@ -1784,19 +1784,19 @@
to compress the ; otherwise, .
Saves the to the specified and compresses it, when specified.
- method saves the as Ink Serialized Format (ISF).
-
-
-
-## Examples
- The following example demonstrates how to save a to a file by using the method. This example assumes that there is an called `inkCanvas1`.
-
+ method saves the as Ink Serialized Format (ISF).
+
+
+
+## Examples
+ The following example demonstrates how to save a to a file by using the method. This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet10":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet10":::
+
]]>
@@ -1860,14 +1860,14 @@
Occurs when a in the collection changes.
- event handler. The example assumes that the event is connected to the event handler defined in this example.
-
+ event handler. The example assumes that the event is connected to the event handler defined in this example.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkCanvas/Overview/Window1.xaml.cs" id="Snippet4":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingAttributes/VisualBasic/Window1.xaml.vb" id="Snippet4":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingAttributes/VisualBasic/Window1.xaml.vb" id="Snippet4":::
+
]]>
@@ -1962,19 +1962,19 @@
to apply the transformation to the tip of the stylus; otherwise, .
Modifies each of the and optionally the for each stroke in the according to the specified .
- method affects the shape of the stylus tip, as well as the position of the strokes. For example, if you rotate a 90 degrees, the strokes move around an axis and the height and width of the strokes appear to be inverted.
-
-
-
-## Examples
- The following example demonstrates how to move all the strokes on an . This example assumes that there is an called `inkCanvas1`.
-
+ method affects the shape of the stylus tip, as well as the position of the strokes. For example, if you rotate a 90 degrees, the strokes move around an axis and the height and width of the strokes appear to be inverted.
+
+
+
+## Examples
+ The following example demonstrates how to move all the strokes on an . This example assumes that there is an called `inkCanvas1`.
+
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/InkPresenter/DetachVisuals/Window2.xaml.cs" id="Snippet9":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet9":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeCollectionMethods/VisualBasic/Window2.xaml.vb" id="Snippet9":::
+
]]>
diff --git a/xml/System.Windows.Input/ApplicationCommands.xml b/xml/System.Windows.Input/ApplicationCommands.xml
index de9673cfe9a..83bb97a0e74 100644
--- a/xml/System.Windows.Input/ApplicationCommands.xml
+++ b/xml/System.Windows.Input/ApplicationCommands.xml
@@ -23,15 +23,15 @@
Provides a standard set of application related commands.
- class and commands in the other command library classes, such as and , are intended to represent a set of common commands that application programmers encounter frequently. The commands only represent the instance of the and not the implementation logic for the command. The implementation logic is bound to the command with a . For example, if the command is executed on a control, the logic which performs the command may not be provided by the control, so the application writer will be responsible for writing the logic that determines how the control will handle the command.
-
- Many controls do provide implementation logic for many of the commands in the command library. For example, the class provides logic for the , , , , and commands.
-
- For more information on commands and commanding see the [Commanding Overview](/dotnet/framework/wpf/advanced/commanding-overview).
-
+ class and commands in the other command library classes, such as and , are intended to represent a set of common commands that application programmers encounter frequently. The commands only represent the instance of the and not the implementation logic for the command. The implementation logic is bound to the command with a . For example, if the command is executed on a control, the logic which performs the command may not be provided by the control, so the application writer will be responsible for writing the logic that determines how the control will handle the command.
+
+ Many controls do provide implementation logic for many of the commands in the command library. For example, the class provides logic for the , , , , and commands.
+
+ For more information on commands and commanding see the [Commanding Overview](/dotnet/framework/wpf/advanced/commanding-overview).
+
]]>
@@ -72,34 +72,34 @@
Gets the value that represents the Cancel Print command.
- The command.
-
- Default Values
-
- Key Gesture
-
- No gesture defined.
-
- UI Text
-
- Cancel Print
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ No gesture defined.
+
+ UI Text
+
+ Cancel Print
+
-
-## XAML Attribute Usage
-
-```
->
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+>
+```
+
]]>
@@ -140,34 +140,34 @@
Gets the value that represents the Close command.
- The command.
-
- Default Values
-
- Key Gesture
-
- No gesture defined.
-
- UI Text
-
- Close
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ No gesture defined.
+
+ UI Text
+
+ Close
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -208,40 +208,40 @@
Gets the value that represents the Context Menu command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Shift+F10
-
- Apps
-
- Mouse Gesture
-
- A Mouse Gesture is not attached to this command, but most applications follow the convention of using the Right Click gesture to invoke the context menu.
-
- UI Text
-
- Context Menu
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Shift+F10
+
+ Apps
+
+ Mouse Gesture
+
+ A Mouse Gesture is not attached to this command, but most applications follow the convention of using the Right Click gesture to invoke the context menu.
+
+ UI Text
+
+ Context Menu
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -282,36 +282,36 @@
Gets the value that represents the Copy command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+C
-
- Ctrl+Insert
-
- UI Text
-
- Copy
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+C
+
+ Ctrl+Insert
+
+ UI Text
+
+ Copy
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -352,36 +352,36 @@
Gets the value that represents the Correction List command.
- The command.
-
- Default Values
-
- Key Gesture
-
- No gesture defined.
-
- UI Text
-
- Correction List
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ No gesture defined.
+
+ UI Text
+
+ Correction List
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -422,36 +422,36 @@
Gets the value that represents the Cut command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+X
-
- Shift+Delete
-
- UI Text
-
- Cut
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+X
+
+ Shift+Delete
+
+ UI Text
+
+ Cut
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -492,34 +492,34 @@
Gets the value that represents the Delete command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Del
-
- UI Text
-
- Delete
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Del
+
+ UI Text
+
+ Delete
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -560,34 +560,34 @@
Gets the value that represents the Find command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+F
-
- UI Text
-
- Find
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+F
+
+ UI Text
+
+ Find
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -628,34 +628,34 @@
Gets the value that represents the Help command.
- The command.
-
- Default Values
-
- Key Gesture
-
- F1
-
- UI Text
-
- Help
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ F1
+
+ UI Text
+
+ Help
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -696,34 +696,34 @@
Gets the value that represents the New command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+N
-
- UI Text
-
- New
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+N
+
+ UI Text
+
+ New
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -766,20 +766,20 @@
Represents a command which is always ignored.The command.
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -820,34 +820,34 @@
Gets the value that represents the Open command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+O
-
- UI Text
-
- Open
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+O
+
+ UI Text
+
+ Open
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -888,36 +888,36 @@
Gets the value that represents the Paste command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+V
-
- Shift+Insert
-
- UI Text
-
- Paste
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+V
+
+ Shift+Insert
+
+ UI Text
+
+ Paste
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -958,34 +958,34 @@
Gets the value that represents the Print command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+P
-
- UI Text
-
- Print
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+P
+
+ UI Text
+
+ Print
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1026,34 +1026,34 @@
Gets the value that represents the Print Preview command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+F2
-
- UI Text
-
- Print Preview
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+F2
+
+ UI Text
+
+ Print Preview
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1094,34 +1094,34 @@
Gets the value that represents the Properties command.
- The command.
-
- Default Values
-
- Key Gesture
-
- F4
-
- UI Text
-
- Properties
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ F4
+
+ UI Text
+
+ Properties
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1162,34 +1162,34 @@
Gets the value that represents the Redo command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+Y
-
- UI Text
-
- Redo
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+Y
+
+ UI Text
+
+ Redo
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1230,34 +1230,34 @@
Gets the value that represents the Replace command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+H
-
- UI Text
-
- Replace
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+H
+
+ UI Text
+
+ Replace
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1298,34 +1298,34 @@
Gets the value that represents the Save command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+S
-
- UI Text
-
- Save
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+S
+
+ UI Text
+
+ Save
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1366,34 +1366,34 @@
Gets the value that represents the Save As command.
- The command.
-
- Default Values
-
- Key Gesture
-
- No gesture defined.
-
- UI Text
-
- Save As
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ No gesture defined.
+
+ UI Text
+
+ Save As
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1434,34 +1434,34 @@
Gets the value that represents the Select All command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+A
-
- UI Text
-
- Select All
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+A
+
+ UI Text
+
+ Select All
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1502,34 +1502,34 @@
Gets the value that represents the Stop command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Esc
-
- UI Text
-
- Stop
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Esc
+
+ UI Text
+
+ Stop
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -1570,34 +1570,34 @@
Gets the value that represents the Undo command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl-Z
-
- UI Text
-
- Undo
-
+ The command.
+
+