diff --git a/components/DataTable/src/DataTable/DataColumn.cs b/components/DataTable/src/DataTable/DataColumn.cs
index 6f969b15e..b5a6ea143 100644
--- a/components/DataTable/src/DataTable/DataColumn.cs
+++ b/components/DataTable/src/DataTable/DataColumn.cs
@@ -4,6 +4,9 @@
namespace CommunityToolkit.WinUI.Controls;
+///
+/// Represents a column.
+///
[TemplatePart(Name = nameof(PART_ColumnSizer), Type = typeof(ContentSizer))]
public partial class DataColumn : ContentControl
{
@@ -62,11 +65,15 @@ private static void DesiredWidth_PropertyChanged(DependencyObject d, DependencyP
}
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
public DataColumn()
{
this.DefaultStyleKey = typeof(DataColumn);
}
+ ///
protected override void OnApplyTemplate()
{
if (PART_ColumnSizer != null)
diff --git a/components/DataTable/src/DataTable/DataRow.cs b/components/DataTable/src/DataTable/DataRow.cs
index 6546150ae..19f34e947 100644
--- a/components/DataTable/src/DataTable/DataRow.cs
+++ b/components/DataTable/src/DataTable/DataRow.cs
@@ -6,6 +6,9 @@
namespace CommunityToolkit.WinUI.Controls;
+///
+/// Represents a row.
+///
public partial class DataRow : Panel
{
// TODO: Create our own helper class here for the Header as well vs. straight-Grid.
@@ -16,6 +19,9 @@ public partial class DataRow : Panel
private bool _isTreeView;
private double _treePadding;
+ ///
+ /// Initializes a new instance of the class.
+ ///
public DataRow()
{
Unloaded += this.DataRow_Unloaded;
@@ -70,6 +76,7 @@ private void DataRow_Unloaded(object sender, RoutedEventArgs e)
return panel;
}
+ ///
protected override Size MeasureOverride(Size availableSize)
{
// We should probably only have to do this once ever?
@@ -168,6 +175,7 @@ protected override Size MeasureOverride(Size availableSize)
return new(_parentPanel?.DesiredSize.Width ?? availableSize.Width, maxHeight);
}
+ ///
protected override Size ArrangeOverride(Size finalSize)
{
int column = 0;
@@ -186,7 +194,7 @@ protected override Size ArrangeOverride(Size finalSize)
if (_parentPanel is Grid grid &&
column < grid.ColumnDefinitions.Count)
{
- width = grid.ColumnDefinitions[column++].ActualWidth;
+ width = grid.ColumnDefinitions[column++].ActualWidth;
}
// TODO: Need to check Column visibility here as well...
else if (_parentPanel is DataTable table &&
diff --git a/components/DataTable/src/DataTable/DataTable.cs b/components/DataTable/src/DataTable/DataTable.cs
index 7b78b2beb..cb362c761 100644
--- a/components/DataTable/src/DataTable/DataTable.cs
+++ b/components/DataTable/src/DataTable/DataTable.cs
@@ -44,6 +44,7 @@ public double ColumnSpacing
public static readonly DependencyProperty ColumnSpacingProperty =
DependencyProperty.Register(nameof(ColumnSpacing), typeof(double), typeof(DataTable), new PropertyMetadata(0d));
+ ///
protected override Size MeasureOverride(Size availableSize)
{
double fixedWidth = 0;
@@ -107,6 +108,7 @@ protected override Size MeasureOverride(Size availableSize)
return new Size(availableSize.Width, maxHeight);
}
+ ///
protected override Size ArrangeOverride(Size finalSize)
{
double fixedWidth = 0;