finish review code style

This commit is contained in:
chinboy
2025-05-25 14:24:10 +08:00
committed by CHINBOY
parent f383dc8710
commit bd4d2ecc16
16 changed files with 158 additions and 179 deletions
+3 -3
View File
@@ -508,8 +508,8 @@ public partial class DataGrid : TemplatedControl
private static bool IsValidRowHeight(double value)
{
return double.IsNaN(value) ||
(value >= DataGridRow.DATAGRIDROW_minimumHeight &&
value <= DataGridRow.DATAGRIDROW_maximumHeight);
(value >= DataGridRow.MinimumHeight &&
value <= DataGridRow.MaximumHeight);
}
/// <summary>
@@ -843,7 +843,7 @@ public partial class DataGrid : TemplatedControl
// Update the RowDetails templates if necessary
if (_rowsPresenter != null)
{
foreach (DataGridRow row in GetAllRows())
foreach (var row in GetAllRows())
{
if (GetRowDetailsVisibility(row.Index))
{