Skip to content

Commit 58f997d

Browse files
yauhenipakalaRon Petrusha
authored andcommitted
Update dependency-properties.md (#6115)
1 parent 1dbd57c commit 58f997d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standard/design-guidelines/dependency-properties.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A dependency property (DP) is a regular property that stores its value in a prop
3737

3838
A classic example of an attached property is the <xref:System.Windows.Controls.Grid.Column%2A?displayProperty=nameWithType> property. The property represents Button’s (not Grid’s) column position, but it is only relevant if the Button is contained in a Grid, and so it's "attached" to Buttons by Grids.
3939

40-
```
40+
```xaml
4141
<Grid>
4242
<Grid.ColumnDefinitions>
4343
<ColumnDefinition />
@@ -51,7 +51,7 @@ A dependency property (DP) is a regular property that stores its value in a prop
5151

5252
The definition of an attached property looks mostly like that of a regular dependency property, except that the accessors are represented by static Get and Set methods:
5353

54-
```
54+
```csharp
5555
public class Grid {
5656

5757
public static int GetColumn(DependencyObject obj) {

0 commit comments

Comments
 (0)