From 70e1724e5c37a766718144fe5d73a62e42dde897 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Tue, 22 Apr 2025 16:21:30 -0700
Subject: [PATCH] add language slugs
---
.../BulletDecorator.xml | 4 +-
.../ButtonBase.xml | 12 +-
.../GridViewRowPresenterBase.xml | 4 +-
.../Popup.xml | 12 +-
.../RangeBase.xml | 4 +-
.../StatusBar.xml | 4 +-
xml/System.Windows.Controls.Ribbon/Ribbon.xml | 34 +-
.../RibbonContextualTabGroup.xml | 13 +-
.../RibbonGroup.xml | 22 +-
.../RibbonGroupSizeDefinition.xml | 24 +-
...ibbonGroupSizeDefinitionBaseCollection.xml | 101 +-
.../RibbonQuickAccessToolBar.xml | 17 +-
.../RibbonTab.xml | 48 +-
xml/System.Windows.Controls/AccessText.xml | 38 +-
xml/System.Windows.Controls/Calendar.xml | 69 +-
.../CalendarDateRange.xml | 116 +-
.../ColumnDefinition.xml | 12 +-
xml/System.Windows.Controls/ComboBox.xml | 16 +-
.../ContentControl.xml | 16 +-
xml/System.Windows.Controls/ContextMenu.xml | 12 +-
.../ContextMenuService.xml | 12 +-
xml/System.Windows.Controls/Control.xml | 6 +-
.../ControlTemplate.xml | 4 +-
xml/System.Windows.Controls/DatePicker.xml | 52 +-
.../FlowDocumentReader.xml | 4 +-
xml/System.Windows.Controls/Grid.xml | 8 +-
xml/System.Windows.Controls/GridSplitter.xml | 4 +-
xml/System.Windows.Controls/GridView.xml | 22 +-
.../GridViewColumn.xml | 70 +-
.../GridViewHeaderRowPresenter.xml | 20 +-
xml/System.Windows.Controls/GroupStyle.xml | 244 +-
.../HeaderedContentControl.xml | 10 +-
.../HeaderedItemsControl.xml | 20 +-
xml/System.Windows.Controls/Image.xml | 4 +-
xml/System.Windows.Controls/InkCanvas.xml | 28 +-
xml/System.Windows.Controls/ItemsControl.xml | 26 +-
xml/System.Windows.Controls/Label.xml | 12 +-
xml/System.Windows.Controls/Page.xml | 4 +-
xml/System.Windows.Controls/RowDefinition.xml | 12 +-
xml/System.Windows.Controls/SpellCheck.xml | 4 +-
xml/System.Windows.Controls/TabControl.xml | 20 +-
xml/System.Windows.Controls/TextBlock.xml | 34 +-
xml/System.Windows.Controls/TextBox.xml | 2 +-
xml/System.Windows.Controls/ToolBarTray.xml | 8 +-
.../ToolTipService.xml | 14 +-
xml/System.Windows.Controls/TreeView.xml | 6 +-
.../VirtualizingStackPanel.xml | 4 +-
xml/System.Windows.Controls/WrapPanel.xml | 16 +-
xml/System.Windows.Data/Binding.xml | 18 +-
xml/System.Windows.Data/BindingOperations.xml | 240 +-
.../CollectionViewSource.xml | 16 +-
xml/System.Windows.Data/MultiBinding.xml | 341 +-
.../ObjectDataProvider.xml | 240 +-
xml/System.Windows.Data/XmlDataProvider.xml | 304 +-
.../AnchoredBlock.xml | 38 +-
xml/System.Windows.Documents/Block.xml | 38 +-
.../EditingCommands.xml | 3260 ++++++++---------
xml/System.Windows.Documents/Figure.xml | 12 +-
xml/System.Windows.Documents/Floater.xml | 8 +-
xml/System.Windows.Documents/FlowDocument.xml | 96 +-
xml/System.Windows.Documents/List.xml | 8 +-
xml/System.Windows.Documents/ListItem.xml | 38 +-
xml/System.Windows.Documents/Paragraph.xml | 6 +-
xml/System.Windows.Documents/Table.xml | 6 +-
xml/System.Windows.Documents/TableCell.xml | 28 +-
xml/System.Windows.Documents/TextElement.xml | 16 +-
xml/System.Windows.Ink/StrokeCollection.xml | 832 ++---
.../ApplicationCommands.xml | 1218 +++---
.../ComponentCommands.xml | 1422 +++----
xml/System.Windows.Input/Cursor.xml | 68 +-
xml/System.Windows.Input/InputBinding.xml | 424 +--
xml/System.Windows.Input/InputScopeName.xml | 42 +-
xml/System.Windows.Input/KeyBinding.xml | 121 +-
xml/System.Windows.Input/KeyGesture.xml | 230 +-
xml/System.Windows.Input/MediaCommands.xml | 1266 +++----
xml/System.Windows.Input/ModifierKeys.xml | 56 +-
xml/System.Windows.Input/MouseGesture.xml | 176 +-
.../NavigationCommands.xml | 1198 +++---
xml/System.Windows.Markup/XmlLanguage.xml | 148 +-
.../XmlnsCompatibleWithAttribute.xml | 4 +-
.../BackEase.xml | 144 +-
.../BounceEase.xml | 136 +-
.../CircleEase.xml | 92 +-
.../EasingColorKeyFrame.xml | 84 +-
.../EasingDoubleKeyFrame.xml | 102 +-
.../EasingFunctionBase.xml | 86 +-
.../EasingMode.xml | 112 +-
.../EasingPointKeyFrame.xml | 90 +-
.../ElasticEase.xml | 172 +-
.../ExponentialEase.xml | 136 +-
.../KeySpline.xml | 172 +-
.../PowerEase.xml | 130 +-
.../QuadraticEase.xml | 92 +-
.../QuarticEase.xml | 92 +-
.../Timeline.xml | 16 +-
.../ShaderEffect.xml | 2 +-
xml/System.Windows.Media.Media3D/Matrix3D.xml | 18 +-
xml/System.Windows.Media.Media3D/Point3D.xml | 430 +--
.../Point3DCollection.xml | 4 +-
xml/System.Windows.Media.Media3D/Point4D.xml | 366 +-
.../Quaternion.xml | 302 +-
xml/System.Windows.Media.Media3D/Vector3D.xml | 692 ++--
.../Vector3DCollection.xml | 292 +-
xml/System.Windows.Media/Color.xml | 519 ++-
xml/System.Windows.Media/DoubleCollection.xml | 320 +-
xml/System.Windows.Media/FontFamily.xml | 412 +--
xml/System.Windows.Media/ImageBrush.xml | 4 +-
xml/System.Windows.Media/ImageDrawing.xml | 4 +-
xml/System.Windows.Media/Int32Collection.xml | 282 +-
xml/System.Windows.Media/Matrix.xml | 6 +-
xml/System.Windows.Media/MatrixTransform.xml | 6 +-
xml/System.Windows.Media/MediaPlayer.xml | 286 +-
.../NumberSubstitution.xml | 4 +-
xml/System.Windows.Media/PathFigure.xml | 6 +-
xml/System.Windows.Media/PathGeometry.xml | 6 +-
xml/System.Windows.Media/PixelFormat.xml | 74 +-
xml/System.Windows.Media/PointCollection.xml | 366 +-
xml/System.Windows.Media/SolidColorBrush.xml | 16 +-
xml/System.Windows.Media/StreamGeometry.xml | 4 +-
xml/System.Windows.Media/VectorCollection.xml | 338 +-
.../NavigationService.xml | 11 +-
.../PageFunction`1.xml | 130 +-
xml/System.Windows.Shapes/Path.xml | 6 +-
xml/System.Windows/Condition.xml | 256 +-
xml/System.Windows/ContentElement.xml | 4 +-
xml/System.Windows/CornerRadius.xml | 132 +-
xml/System.Windows/DataTemplate.xml | 220 +-
xml/System.Windows/DataTrigger.xml | 310 +-
xml/System.Windows/DependencyProperty.xml | 792 ++--
xml/System.Windows/Duration.xml | 256 +-
xml/System.Windows/EventTrigger.xml | 2 +-
xml/System.Windows/FigureLength.xml | 156 +-
xml/System.Windows/FontStretch.xml | 90 +-
xml/System.Windows/FontStyle.xml | 90 +-
xml/System.Windows/FontWeight.xml | 158 +-
.../FrameworkContentElement.xml | 28 +-
xml/System.Windows/FrameworkElement.xml | 69 +-
xml/System.Windows/GridLength.xml | 4 +-
xml/System.Windows/Int32Rect.xml | 152 +-
xml/System.Windows/MultiTrigger.xml | 4 +-
xml/System.Windows/Point.xml | 6 +-
xml/System.Windows/PropertyPath.xml | 166 +-
xml/System.Windows/Rect.xml | 1198 +++---
xml/System.Windows/RoutedEvent.xml | 118 +-
xml/System.Windows/Setter.xml | 232 +-
xml/System.Windows/Size.xml | 124 +-
xml/System.Windows/Style.xml | 24 +-
xml/System.Windows/TextDecorations.xml | 196 +-
xml/System.Windows/Thickness.xml | 202 +-
xml/System.Windows/Trigger.xml | 4 +-
xml/System.Windows/TriggerBase.xml | 4 +-
xml/System.Windows/UIElement.xml | 8 +-
xml/System.Windows/UIElement3D.xml | 4 +-
153 files changed, 12343 insertions(+), 12394 deletions(-)
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.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.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl-Z
+
+ UI Text
+
+ Undo
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
diff --git a/xml/System.Windows.Input/ComponentCommands.xml b/xml/System.Windows.Input/ComponentCommands.xml
index 702de39b710..3a9a1173881 100644
--- a/xml/System.Windows.Input/ComponentCommands.xml
+++ b/xml/System.Windows.Input/ComponentCommands.xml
@@ -23,15 +23,15 @@
Provides a standard set of component-related commands, which have predefined key input gestures and properties.
- 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 via a . For example, if the command is executed on a control (the command target), the logic that performs the command may not be provided by the command target, so the application writer is responsible for writing the logic that determines how the command target handles the command.
-
- Many controls do provide implementation logic, though, for many of the commands in the command library. For example, the class provides logic for the command, command, command, command, and command. See the class documentation for particular control classes for more information.
-
- For more information on commands and commanding, see [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 via a . For example, if the command is executed on a control (the command target), the logic that performs the command may not be provided by the command target, so the application writer is responsible for writing the logic that determines how the command target handles the command.
+
+ Many controls do provide implementation logic, though, for many of the commands in the command library. For example, the class provides logic for the command, command, command, command, and command. See the class documentation for particular control classes for more information.
+
+ For more information on commands and commanding, see [Commanding Overview](/dotnet/framework/wpf/advanced/commanding-overview).
+
]]>
@@ -74,34 +74,34 @@
Gets the value that represents the Extend Selection Down command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Shift+Down
-
- UI Text
-
- Extend Selection Down
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Shift+Down
+
+ UI Text
+
+ Extend Selection Down
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -144,34 +144,34 @@
Gets the value that represents the Extend Selection Left command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Shift+Left
-
- UI Text
-
- Extend Selection Left
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Shift+Left
+
+ UI Text
+
+ Extend Selection Left
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -214,34 +214,34 @@
Gets the value that represents the Extend Selection Right command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Shift+Right
-
- UI Text
-
- Extend Selection Right
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Shift+Right
+
+ UI Text
+
+ Extend Selection Right
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -284,34 +284,34 @@
Gets the value that represents the Extend Selection Up command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Shift+Up
-
- UI Text
-
- Extend Selection Up
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Shift+Up
+
+ UI Text
+
+ Extend Selection Up
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -354,34 +354,34 @@
Gets the value that represents the Move Down command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Down
-
- UI Text
-
- Move Down
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Down
+
+ UI Text
+
+ Move Down
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -424,34 +424,34 @@
Gets the value that represents the Move Focus Back command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+Left
-
- UI Text
-
- Move Focus Back
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+Left
+
+ UI Text
+
+ Move Focus Back
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -494,34 +494,34 @@
Gets the value that represents the Move Focus Down command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+Down
-
- UI Text
-
- Move Focus Down
-
+ The command.
+
+ Default Values
+
+ Key Gesture
+
+ Ctrl+Down
+
+ UI Text
+
+ Move Focus Down
+
-
-## XAML Attribute Usage
-
-```
-
-```
-
+
+## XAML Attribute Usage
+
+```xaml
+
+```
+
]]>
@@ -564,34 +564,34 @@
Gets the value that represents the Move Focus Forward command.
- The command.
-
- Default Values
-
- Key Gesture
-
- Ctrl+Right
-
- UI Text
-
- Move Focus Forward
-
+ The command.
+
+