| Badge | Package | Downloads |
|---|---|---|
| ProDataGrid | ||
| ProDiagnostics | ||
| ProDiagnostics.Transport | ||
| ProDiagnostics.Viewer |
ProDataGrid is a high-performance DataGrid control for Avalonia.
Install the package:
dotnet add package ProDataGridInclude the theme in App.axaml:
<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.v2.xaml" />
</Application.Styles><Application.Styles>
<SimpleTheme />
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Simple.v2.xaml" />
</Application.Styles>Basic XAML usage:
<DataGrid ItemsSource="{Binding People}"
AutoGenerateColumns="False"
UseLogicalScrollable="True">
<DataGrid.Columns>
<DataGridTextColumn Header="ID" Binding="{Binding Id}" Width="60" />
<DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="*" />
<DataGridCheckBoxColumn Header="Active" Binding="{Binding IsActive}" Width="80" />
</DataGrid.Columns>
</DataGrid>- DocFX articles:
docfx/articles/intro.md - DocFX entry page:
docfx/index.md
ProDiagnostics provides Avalonia developer tools UI as a standalone package. It focuses on runtime inspection and debugging:
- Visual and logical tree inspection.
- Property and style inspection with live values.
- Routed event tracking.
- Layout exploration and renderer diagnostics overlays.
Install from NuGet:
dotnet add package ProDiagnosticsAttach DevTools after application initialization:
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
desktop.MainWindow = new MainWindow();
base.OnFrameworkInitializationCompleted();
this.AttachDevTools();
}By default DevTools opens with F12. You can also attach to a TopLevel or provide a custom key gesture or options.
ProDiagnostics.Transport streams metrics and activities over UDP so you can observe diagnostics out-of-process.
Install from NuGet:
dotnet add package ProDiagnostics.TransportExport diagnostics to the viewer:
using ProDiagnostics.Transport;
var exporter = new DiagnosticsUdpExporter(new DiagnosticsUdpOptions
{
Host = "127.0.0.1",
Port = TelemetryProtocol.DefaultPort,
ActivitySourceNames = new[] { "ProDataGrid.*" },
MeterNames = new[] { "ProDataGrid.Diagnostic.Meter" }
});
exporter.Start();Keep the exporter alive for the lifetime of the app and dispose it during shutdown.
ProDiagnostics.Viewer is an Avalonia UI for live metrics and activities streamed over UDP.
Install as a global tool:
dotnet tool install -g prodiagnostics-viewerRun the viewer:
prodiagnostics-viewerProDataGrid is licensed under the MIT License (see licence.md).
ProDiagnostics is licensed under the MIT License (see licence.md).
The original Avalonia.Controls.DataGrid and Avalonia.Diagnostics license is preserved in licence-avalonia.md.