Refactor datagrid event args

This commit is contained in:
CHINBOY
2025-05-26 11:03:36 +08:00
parent d529bd9329
commit 2f7607b646
37 changed files with 536 additions and 501 deletions
+18 -18
View File
@@ -458,7 +458,7 @@ public partial class DataGrid : TemplatedControl
}
/// <summary>
/// Gets or sets the maximum width of columns in the <see cref="T:Avalonia.Controls.DataGrid" /> .
/// Gets or sets the maximum width of columns in the <see cref="T:AtomUI.Controls.DataGrid" /> .
/// </summary>
public double MaxColumnWidth
{
@@ -478,7 +478,7 @@ public partial class DataGrid : TemplatedControl
}
/// <summary>
/// Gets or sets the minimum width of columns in the <see cref="T:Avalonia.Controls.DataGrid" />.
/// Gets or sets the minimum width of columns in the <see cref="T:AtomUI.Controls.DataGrid" />.
/// </summary>
public double MinColumnWidth
{
@@ -647,7 +647,7 @@ public partial class DataGrid : TemplatedControl
/// <summary>
/// Gets or sets a value that indicates whether columns are created
/// automatically when the <see cref="P:Avalonia.Controls.DataGrid.ItemsSource" /> property is set.
/// automatically when the <see cref="P:AtomUI.Controls.DataGrid.ItemsSource" /> property is set.
/// </summary>
public bool AutoGenerateColumns
{
@@ -769,7 +769,7 @@ public partial class DataGrid : TemplatedControl
}
/// <summary>
/// Initializes a new instance of the <see cref="T:Avalonia.Controls.DataGrid" /> class.
/// Initializes a new instance of the <see cref="T:AtomUI.Controls.DataGrid" /> class.
/// </summary>
public DataGrid()
{
@@ -1279,8 +1279,8 @@ public partial class DataGrid : TemplatedControl
/// <summary>
/// Occurs one time for each public, non-static property in the bound data type when the
/// <see cref="P:Avalonia.Controls.DataGrid.ItemsSource" /> property is changed and the
/// <see cref="P:Avalonia.Controls.DataGrid.AutoGenerateColumns" /> property is true.
/// <see cref="P:AtomUI.Controls.DataGrid.ItemsSource" /> property is changed and the
/// <see cref="P:AtomUI.Controls.DataGrid.AutoGenerateColumns" /> property is true.
/// </summary>
public event EventHandler<DataGridAutoGeneratingColumnEventArgs>? AutoGeneratingColumn;
@@ -1305,7 +1305,7 @@ public partial class DataGrid : TemplatedControl
public event EventHandler<DataGridCellPointerPressedEventArgs>? CellPointerPressed;
/// <summary>
/// Occurs when the <see cref="P:Avalonia.Controls.DataGridColumn.DisplayIndex" />
/// Occurs when the <see cref="P:AtomUI.Controls.DataGridColumn.DisplayIndex" />
/// property of a column changes.
/// </summary>
public event EventHandler<DataGridColumnEventArgs>? ColumnDisplayIndexChanged;
@@ -1328,13 +1328,13 @@ public partial class DataGrid : TemplatedControl
public event EventHandler<EventArgs>? CurrentCellChanged;
/// <summary>
/// Occurs after a <see cref="T:Avalonia.Controls.DataGridRow" />
/// Occurs after a <see cref="T:AtomUI.Controls.DataGridRow" />
/// is instantiated, so that you can customize it before it is used.
/// </summary>
public event EventHandler<DataGridRowEventArgs>? LoadingRow;
/// <summary>
/// Occurs when a cell in a <see cref="T:Avalonia.Controls.DataGridTemplateColumn" /> enters editing mode.
/// Occurs when a cell in a <see cref="T:AtomUI.Controls.DataGridTemplateColumn" /> enters editing mode.
///
/// </summary>
public event EventHandler<DataGridPreparingCellForEditEventArgs>? PreparingCellForEdit;
@@ -1353,8 +1353,8 @@ public partial class DataGrid : TemplatedControl
RoutedEvent.Register<DataGrid, SelectionChangedEventArgs>(nameof(SelectionChanged), RoutingStrategies.Bubble);
/// <summary>
/// Occurs when the <see cref="P:Avalonia.Controls.DataGrid.SelectedItem" /> or
/// <see cref="P:Avalonia.Controls.DataGrid.SelectedItems" /> property value changes.
/// Occurs when the <see cref="P:AtomUI.Controls.DataGrid.SelectedItem" /> or
/// <see cref="P:AtomUI.Controls.DataGrid.SelectedItems" /> property value changes.
/// </summary>
public event EventHandler<SelectionChangedEventArgs>? SelectionChanged
{
@@ -1368,7 +1368,7 @@ public partial class DataGrid : TemplatedControl
public event EventHandler<DataGridColumnEventArgs>? Sorting;
/// <summary>
/// Occurs when a <see cref="T:Avalonia.Controls.DataGridRow" />
/// Occurs when a <see cref="T:AtomUI.Controls.DataGridRow" />
/// object becomes available for reuse.
/// </summary>
public event EventHandler<DataGridRowEventArgs>? UnloadingRow;
@@ -1380,7 +1380,7 @@ public partial class DataGrid : TemplatedControl
public event EventHandler<DataGridRowDetailsEventArgs>? LoadingRowDetails;
/// <summary>
/// Occurs when the <see cref="P:Avalonia.Controls.DataGrid.RowDetailsVisibilityMode" />
/// Occurs when the <see cref="P:AtomUI.Controls.DataGrid.RowDetailsVisibilityMode" />
/// property value changes.
/// </summary>
public event EventHandler<DataGridRowDetailsEventArgs>? RowDetailsVisibilityChanged;
@@ -2003,13 +2003,13 @@ public partial class DataGrid : TemplatedControl
}
/// <summary>
/// Arranges the content of the <see cref="T:Avalonia.Controls.DataGridRow" />.
/// Arranges the content of the <see cref="T:AtomUI.Controls.DataGridRow" />.
/// </summary>
/// <param name="finalSize">
/// The final area within the parent that this element should use to arrange itself and its children.
/// </param>
/// <returns>
/// The actual size used by the <see cref="T:Avalonia.Controls.DataGridRow" />.
/// The actual size used by the <see cref="T:AtomUI.Controls.DataGridRow" />.
/// </returns>
protected override Size ArrangeOverride(Size finalSize)
{
@@ -2029,12 +2029,12 @@ public partial class DataGrid : TemplatedControl
}
/// <summary>
/// Measures the children of a <see cref="T:Avalonia.Controls.DataGridRow" /> to prepare for
/// Measures the children of a <see cref="T:AtomUI.Controls.DataGridRow" /> to prepare for
/// arranging them during the
/// <see cref="M:Avalonia.Controls.DataGridRow.ArrangeOverride(System.Windows.Size)" /> pass.
/// <see cref="M:AtomUI.Controls.DataGridRow.ArrangeOverride(System.Windows.Size)" /> pass.
/// </summary>
/// <returns>
/// The size that the <see cref="T:Avalonia.Controls.DataGridRow" /> determines it needs during layout, based on its calculations of child object allocated sizes.
/// The size that the <see cref="T:AtomUI.Controls.DataGridRow" /> determines it needs during layout, based on its calculations of child object allocated sizes.
/// </returns>
/// <param name="availableSize">
/// The available size that this element can give to child elements. Indicates an upper limit that