Skip to content

Commit 21afa25

Browse files
committed
address comments
1 parent de7cc30 commit 21afa25

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

controls/datagrid/theming-and-styles/style-selectors.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The [.NET MAUI DataGrid]({%slug datagrid-overview%}) component exposes a conditi
1313

1414
## Cell Style Selector
1515

16-
You can set a different style on a specific cell from a specific column based on custom style-selection logic with the following properties:
16+
You can set a distinct style to a specific cell in a given column based on custom style-selection logic with the following properties:
1717

1818
* `CellContentStyleSelector`(`IStyleSelector`)—Styles the content of the cell by using the text alignment options (`TextMargin`, `HorizontalTextAlignment`, `VerticalTextAlignment`), the font options (`FontAttributes`, `FontFamily`, `FontSize`) and the `TextColor` property.
1919
* `CellDecorationStyleSelector`(`IStyleSelector`)—Styles the decoration of a cell.
@@ -22,7 +22,7 @@ You can set a different style on a specific cell from a specific column based on
2222
2323
## Row Background Style Selector
2424

25-
You can set a different style on a row, alternate row, and on row details based on custom style-selection logic by using the `RowBackgroundStyleSelector` (`IStyleSelector`) property.
25+
You can set a different style on a row, an alternate row, and on row details based on custom style-selection logic by using the `RowBackgroundStyleSelector` (`IStyleSelector`) property.
2626

2727
> For the DataGrid Row Background Style Selector example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **DataGrid > Styling** category.
2828
@@ -41,9 +41,7 @@ The `CellContentStyleSelector`, `CellDecorationStyleSelector`, `RowBackgroundSty
4141

4242
## Example with Cell and Group Style Selectors
4343

44-
The following example will demonstrate how to apply the style selectors on the DataGrid cell and group header:
45-
46-
Let’s add the DataGrid and set the `CellContentStyleSelector` property as a static resource of type `MyCellContentStyleSelector`, `CellDecorationStyleSelector` as a static resource of type `MyCellDecorationStyleSelector`, and `GroupStyleSelector` as a static resource of type `MyGroupStyleSelector`.
44+
The following example demonstrates how to apply the style selectors on the DataGrid cell and group header. You will add the DataGrid and set the `CellContentStyleSelector` property as a static resource of type `MyCellContentStyleSelector`, `CellDecorationStyleSelector` as a static resource of type `MyCellDecorationStyleSelector`, and `GroupStyleSelector` as a static resource of type `MyGroupStyleSelector`:
4745

4846
**1.** Define the `RadDataGrid` in XAML:
4947

@@ -83,9 +81,7 @@ This is how the DataGrid control will look when `CellContentStyleSelector` is ap
8381
8482
## Example with Row Background Style Selectors
8583

86-
The following example will demonstrate how to apply the style selectors on the DataGrid rows, row details and alternate rows:
87-
88-
Let’s add the DataGrid and set the `RowBackgroundStyleSelector` property as a static resource of type `MyRowBackgroundStyleSelector`.
84+
The following example demonstrates how to apply the style selectors on the DataGrid rows, row details, and alternate rows. You will add the DataGrid and set the `RowBackgroundStyleSelector` property as a static resource of type `MyRowBackgroundStyleSelector`:
8985

9086
**1.** Define the `RadDataGrid` in XAML:
9187

0 commit comments

Comments
 (0)