-
Notifications
You must be signed in to change notification settings - Fork 76
DataGrid
The DataGrid
control is a control that displays data in a customizable grid.
If you want to use DataGrid
control, add Material.Avalonia.DataGrid package:
dotnet add package Material.Avalonia.DataGrid
If you are using MaterialTheme[Base] styles should be included automatically.
However, sometimes this is not the case. Reported issues on browser, probably something AOT related. Anyway, if this happens (DataGrid are invisible), you must add MaterialDataGridStyles
to your App.axaml
:
<Application ...
xmlns:dataGrid="clr-namespace:Material.Avalonia.DataGrid;assembly=Material.Avalonia.DataGrid"
...
<Application.Styles>
...
<dataGrid:MaterialDataGridStyles/>
By default DataGrid have Modern
ScrollBars.
Add ClassicScrollBar
to DataGrid Classes
property.
Add MiniScrollBar
to DataGrid Classes
property.
In the case of using Modern
and Mini
scrollbars, allows to make them so that they do not float on top of the DataGrid rows, but are to the side of them.
Add DisableHoveringScrollBar
to DataGrid Classes
property.
Material.Avalonia Wiki pages is still WIP (work in progress), Pages could not ready for show if they unclickable.
Main section
- Main page
- Getting started
- Screenshots of Demo
- FAQ (frequently asked questions)
- Breaking changes
- Nightly builds
Widgets / Controls
- Buttons
- Inputs
- TextBox
- Switchable
- CheckBox
- RadioButton
- ToggleButton
- ToggleSwitch
- Selectable
- ListBox
- ComboBox
- Pickers
- Feedbacks
- ProgressBar
- Snackbar
- Dialogs
- AlertDialog
- TextFieldDialog
- CustomDialog
- Containers / Layouts
- ColorZone
- Card
- Expander
- DataGrid
Theming
Builders
Assist for widgets
- ButtonAssist
- SelectionControlAssist
- ShadowAssist
- SliderAssist
- TextFieldAssist
- TransitionAssist