Skip to content

Commit 80358d2

Browse files
authored
add language slugs (#11220)
1 parent 626a49c commit 80358d2

File tree

23 files changed

+53
-69
lines changed

23 files changed

+53
-69
lines changed

xml/Microsoft.VisualBasic.Compatibility.VB6/DirListBox.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@
933933
934934
The `Path` property can also be set to a qualified network path without a drive connection using the following syntax:
935935
936-
```
936+
```txt
937937
\\servername\sharename\path
938938
```
939939

xml/Microsoft.VisualBasic.Compatibility.VB6/FileListBox.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
697697
The `Path` property can also be set to a qualified network path without a drive connection using the following syntax:
698698
699-
```
699+
```txt
700700
\\servername\sharename\path
701701
```
702702

xml/Microsoft.Windows.Themes/BulletChrome.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@
6666
<a name="xamlObjectElementUsage_BulletChrome"></a>
6767
## XAML Object Element Usage
6868
69-
```
69+
```xaml
7070
<theme:BulletChrome .../>
7171
```
7272
7373
<a name="xamlValues_BulletChrome"></a>
7474
## XAML Values
75-
`theme:`
75+
76+
`theme:`\
7677
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
7778
7879
]]></format>

xml/Microsoft.Windows.Themes/ButtonChrome.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
<a name="xamlObjectElementUsage_ButtonChrome"></a>
6767
## XAML Object Element Usage
6868
69-
```
69+
```xaml
7070
<theme:ButtonChrome .../>
7171
```
7272
7373
<a name="xamlValues_ButtonChrome"></a>
7474
## XAML Values
75-
`theme:`
75+
`theme:`\
7676
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
7777
7878
]]></format>

xml/Microsoft.Windows.Themes/ClassicBorderDecorator.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
<a name="xamlObjectElementUsage_CBD"></a>
3333
## XAML Object Element Usage
3434
35-
```
35+
```xaml
3636
<theme:ClassicBorderDecorator ...>
3737
  singleChild
3838
</theme:ClassicBorderDecorator>
3939
```
4040
4141
<a name="xamlValues_CBD"></a>
4242
## XAML Values
43-
`theme:`
43+
`theme:`\
4444
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
4545
46-
*singleChild*
46+
*singleChild*\
4747
A single object element child, representing the object that the border is drawn around. This object must be a <xref:System.Windows.UIElement>. Typical child elements are either a fixed <xref:System.Windows.UIElement> (for example a <xref:System.Windows.Shapes.Path>) or are a presenter or another decorator in compositing.
4848
4949
]]></format>

xml/Microsoft.Windows.Themes/DataGridHeaderBorder.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@
8181
<a name="xamlObjectElementUsage_DGHB"></a>
8282
## XAML Object Element Usage
8383
84-
```
84+
```xaml
8585
<theme:DataGridHeaderBorder ...>
8686
  singleChild
8787
</theme:DataGridHeaderBorder>
8888
```
8989
9090
<a name="xamlValues_DGHB"></a>
9191
## XAML Values
92-
`theme:`
92+
`theme:`\
9393
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
9494
95-
*singleChild*
95+
*singleChild*\
9696
A single object element child, representing the object that the border is drawn around. This object must be a <xref:System.Windows.UIElement>.
9797
9898
]]></format>

xml/Microsoft.Windows.Themes/ListBoxChrome.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
<a name="xamlObjectElementUsage_LBC"></a>
4242
## XAML Object Element Usage
4343
44-
```
44+
```xaml
4545
<theme:ListBoxChrome ...>
4646
  singleChild
4747
</theme:ListBoxChrome>
4848
```
4949
5050
<a name="xamlValues_LBC"></a>
5151
## XAML Values
52-
`theme:`
52+
`theme:`\
5353
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
5454
55-
*singleChild*
55+
*singleChild*\
5656
A single object element child, representing the object that the decorator is drawn around. This object must be a <xref:System.Windows.UIElement>.
5757
5858
]]></format>

xml/Microsoft.Windows.Themes/ScrollChrome.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
<a name="xamlObjectElementUsage_SC"></a>
7474
## XAML Object Element Usage
7575
76-
```
76+
```xaml
7777
<theme:ScrollChrome .../>
7878
```
7979
8080
<a name="xamlValues_SC"></a>
8181
## XAML Values
82-
`theme:`
82+
`theme:`\
8383
An xmlns prefix for the <xref:Microsoft.Windows.Themes> CLR namespace. Typically, xmlns prefixes and mappings are defined in a XAML root element (not shown).
8484
8585
]]></format>

xml/System.Activities.Presentation/ActivityDesigner.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,16 @@
2323
2424
The <xref:System.Activities.Presentation.ActivityDesigner> inherits from <xref:System.Activities.Presentation.WorkflowViewElement> and primarily adds the default styling, as well as the ability to customize the icon via the <xref:System.Activities.Presentation.ActivityDesigner.Icon%2A> property. It should be used whenever you are creating a designer for a type that derives from <xref:System.Activities.Activity>. When associated with an <xref:System.Activities.Activity> type, the <xref:System.Activities.Presentation.WorkflowViewElement.ModelItem%2A> property will point to the ModelItem hierarchy describing the instance of that type being edited.
2525
26-
27-
2826
## Examples
2927
In the sample code below, a `First2of3` activity is defined first, then the code for the First2of3 designer is shown, and finally it is shown how to use the Designer attribute to associate the activity with the designer is provided.
3028
31-
```
32-
33-
//The First2of3 activity
29+
```csharp
3430
using System.Activities;
3531
using System.Collections.Generic;
3632
using System.Linq;
3733
3834
namespace Microsoft.Activities.Documentation.ActivityTypes
3935
{
40-
4136
public sealed class First2of3 : NativeActivity
4237
{
4338
public Activity Activity1 { get; set; }
@@ -112,10 +107,9 @@ namespace Microsoft.Activities.Documentation.ActivityTypes
112107
</StackPanel>
113108
</sap:ActivityDesigner>
114109
115-
//Code for associating the activity with the designer using the Designer attribute.
110+
// Code for associating the activity with the designer using the Designer attribute.
116111
[Designer(typeof(First2of3Designer))]
117112
public sealed class First2of3 : NativeActivity
118-
119113
```
120114
121115
]]></format>

xml/System.ComponentModel.Design/DesignerTransaction.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,26 @@
6868
To perform an action within a transaction, you must first create a transaction. Then you must call the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanging%2A> method before each change or set of changes occurs, and the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanged%2A> method after each change or set of changes occur. Finally, complete and close the transaction by calling the <xref:System.ComponentModel.Design.DesignerTransaction.Commit%2A> method.
6969
7070
> [!NOTE]
71-
> When making changes to property values, use the <xref:System.ComponentModel.PropertyDescriptor.SetValue%2A> method of a <xref:System.ComponentModel.PropertyDescriptor>, which calls the component change methods of the <xref:System.ComponentModel.Design.IComponentChangeService> and creates a <xref:System.ComponentModel.Design.DesignerTransaction> representing the change automatically.
71+
> When making changes to property values, use the <xref:System.ComponentModel.PropertyDescriptor.SetValue%2A> method of a <xref:System.ComponentModel.PropertyDescriptor>, which calls the component change methods of the <xref:System.ComponentModel.Design.IComponentChangeService> and creates a <xref:System.ComponentModel.Design.DesignerTransaction> representing the change automatically.
7272
7373
To perform a transaction, complete the following steps:
7474
75-
1. Call <xref:System.ComponentModel.Design.IDesignerHost.CreateTransaction%2A> to obtain a <xref:System.ComponentModel.Design.DesignerTransaction> that can be used to control the transaction.
75+
1. Call <xref:System.ComponentModel.Design.IDesignerHost.CreateTransaction%2A> to obtain a <xref:System.ComponentModel.Design.DesignerTransaction> that can be used to control the transaction.
7676
77-
2. Within a `try` block, for each action that you want to track with a <xref:System.ComponentModel.Design.DesignerTransaction>, call the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanging%2A> method, make the change or changes, then call the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanged%2A> method to signal that the change or changes have been made.
77+
2. Within a `try` block, for each action that you want to track with a <xref:System.ComponentModel.Design.DesignerTransaction>, call the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanging%2A> method, make the change or changes, then call the <xref:System.ComponentModel.Design.IComponentChangeService.OnComponentChanged%2A> method to signal that the change or changes have been made.
7878
79-
3. To complete the transaction, call <xref:System.ComponentModel.Design.DesignerTransaction.Commit%2A> from within a `finally` block.
79+
3. To complete the transaction, call <xref:System.ComponentModel.Design.DesignerTransaction.Commit%2A> from within a `finally` block.
8080
8181
In C#, you can use the `using` statement rather than a `try/finally` block, such as in the following example.
8282
83-
```
83+
```csharp
8484
using (host.CreateTransaction() {
8585
// Insert your code here.
8686
}
8787
```
8888
8989
To cancel and attempt to roll back a transaction before it has been committed, call the <xref:System.ComponentModel.Design.DesignerTransaction.Cancel%2A> method. When the <xref:System.ComponentModel.Design.DesignerTransaction.Cancel%2A> method is invoked, the actions tracked by the <xref:System.ComponentModel.Design.DesignerTransaction> are reversed to attempt to roll back the changes. To undo actions that occurred as part of earlier transactions, you must use the undo command provided by the development environment.
9090
91-
92-
9391
## Examples
9492
The following code example program demonstrates how to create a <xref:System.ComponentModel.Design.DesignerTransaction> from a designer. To run this sample, compile the source code into a class library. You must add a reference to the System.Design assembly. In a new project, add a reference to the compiled DLL and add the component in the library to the **Toolbox**.
9593

0 commit comments

Comments
 (0)