Skip to content

Commit 54bf920

Browse files
committed
Update docs
1 parent e1d9ec8 commit 54bf920

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

RevitAddin.CommandBindingTester/Views/DataGridStyleExtension.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,21 @@
44

55
namespace RevitAddin.CommandBindingTester.Views
66
{
7+
/// <summary>
8+
/// Provides extension methods for styling <see cref="DataGrid"/> controls in WPF.
9+
/// </summary>
710
public static class DataGridStyleExtension
811
{
12+
/// <summary>
13+
/// Applies a consistent style to the specified <see cref="DataGrid"/>, including grid line brushes,
14+
/// selection mode, row backgrounds, column behaviors, and auto-generated column formatting.
15+
/// </summary>
16+
/// <param name="dataGrid">The <see cref="DataGrid"/> to style.</param>
17+
/// <remarks>
18+
/// This method sets grid line colors, selection options, disables row addition, enables column reordering,
19+
/// resizing, and sorting, and configures auto-generated columns to fill available space except for
20+
/// <see cref="DataGridCheckBoxColumn"/>. It also centers content vertically in text, checkbox, and combobox columns.
21+
/// </remarks>
922
public static void UpdateDataGridStyle(this DataGrid dataGrid)
1023
{
1124
var brush = new SolidColorBrush();

0 commit comments

Comments
 (0)