Skip to content

Commit 9ef9411

Browse files
ES-975464 - Addressed the concerns
1 parent c884271 commit 9ef9411

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed
73.1 KB
Loading

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# data-grid-high-contrast-theme
1+
# How to Apply HighContrastTheme to WinForms DataGrid?
22

3-
The project demonstrates application of high contrast dark theme to the [Syncfusion DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) control for WinForms.
3+
The project demonstrates application of high contrast dark theme to the [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).
44

55
To apply the high contrast theme to Syncfusion Windows Forms controls:
66

77
* Add the reference of the exported theme library in the application.
88
* Load the assembly using the `SkinManager`.
99
* Set the `ThemeName` property of the controls to the name given to the theme library.
1010

11+
![Theme Library Added into User Application](SampleSolutionExplorer.png)
12+
1113
The following code demonstrates the high contrast black theme set to the `DataGrid` control.
1214

1315
``` c#
@@ -20,9 +22,6 @@ sfDataGrid.ThemeName = "HighContrastBlackTheme";
2022
this.Controls.Add(sfDataGrid);
2123
```
2224

23-
## How to run the project
25+
Now, run the application and experience the control's rich user interface.
2426

25-
* Checkout this project to a location in your disk.
26-
* Open the solution file using the Visual Studio.
27-
* Restore the NuGet packages by rebuilding the solution.
28-
* Run the project.
27+
![High Contrast Black Theme Applied to DataGrid control](DataGridWithHighContrastBlackTheme.png)

SampleSolutionExplorer.png

16.1 KB
Loading

0 commit comments

Comments
 (0)