File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed
src/Avalonia.Controls.DataGrid Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ namespace Avalonia.Controls
32
32
/// <summary>
33
33
/// Displays data in a customizable grid.
34
34
/// </summary>
35
+ [ TemplatePart ( DATAGRID_elementBottomRightCornerHeaderName , typeof ( IVisual ) ) ]
36
+ [ TemplatePart ( DATAGRID_elementColumnHeadersPresenterName , typeof ( DataGridColumnHeadersPresenter ) ) ]
37
+ [ TemplatePart ( DATAGRID_elementFrozenColumnScrollBarSpacerName , typeof ( Control ) ) ]
38
+ [ TemplatePart ( DATAGRID_elementHorizontalScrollbarName , typeof ( ScrollBar ) ) ]
39
+ [ TemplatePart ( DATAGRID_elementRowsPresenterName , typeof ( DataGridRowsPresenter ) ) ]
40
+ [ TemplatePart ( DATAGRID_elementTopLeftCornerHeaderName , typeof ( ContentControl ) ) ]
41
+ [ TemplatePart ( DATAGRID_elementTopRightCornerHeaderName , typeof ( ContentControl ) ) ]
42
+ [ TemplatePart ( DATAGRID_elementVerticalScrollbarName , typeof ( ScrollBar ) ) ]
35
43
[ PseudoClasses ( ":invalid" , ":empty-rows" , ":empty-columns" ) ]
36
44
public partial class DataGrid : TemplatedControl
37
45
{
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace Avalonia.Controls
13
13
/// <summary>
14
14
/// Represents an individual <see cref="T:Avalonia.Controls.DataGrid" /> cell.
15
15
/// </summary>
16
+ [ TemplatePart ( DATAGRIDCELL_elementRightGridLine , typeof ( Rectangle ) ) ]
16
17
[ PseudoClasses ( ":selected" , ":current" , ":edited" , ":invalid" ) ]
17
18
public class DataGridCell : ContentControl
18
19
{
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ namespace Avalonia.Controls
21
21
/// <summary>
22
22
/// Represents a <see cref="T:Avalonia.Controls.DataGrid" /> row.
23
23
/// </summary>
24
+ [ TemplatePart ( DATAGRIDROW_elementBottomGridLine , typeof ( Rectangle ) ) ]
25
+ [ TemplatePart ( DATAGRIDROW_elementCells , typeof ( DataGridCellsPresenter ) ) ]
26
+ [ TemplatePart ( DATAGRIDROW_elementDetails , typeof ( DataGridDetailsPresenter ) ) ]
27
+ [ TemplatePart ( DATAGRIDROW_elementRoot , typeof ( Panel ) ) ]
28
+ [ TemplatePart ( DATAGRIDROW_elementRowHeader , typeof ( DataGridRowHeader ) ) ]
24
29
[ PseudoClasses ( ":selected" , ":editing" , ":invalid" ) ]
25
30
public class DataGridRow : TemplatedControl
26
31
{
Original file line number Diff line number Diff line change 14
14
15
15
namespace Avalonia . Controls
16
16
{
17
+ [ TemplatePart ( DATAGRIDROWGROUPHEADER_expanderButton , typeof ( ToggleButton ) ) ]
18
+ [ TemplatePart ( DATAGRIDROWGROUPHEADER_indentSpacer , typeof ( Control ) ) ]
19
+ [ TemplatePart ( DATAGRIDROWGROUPHEADER_itemCountElement , typeof ( TextBlock ) ) ]
20
+ [ TemplatePart ( DATAGRIDROWGROUPHEADER_propertyNameElement , typeof ( TextBlock ) ) ]
21
+ [ TemplatePart ( DataGridRow . DATAGRIDROW_elementRoot , typeof ( Panel ) ) ]
22
+ [ TemplatePart ( DataGridRow . DATAGRIDROW_elementRowHeader , typeof ( DataGridRowHeader ) ) ]
17
23
[ PseudoClasses ( ":pressed" , ":current" , ":expanded" ) ]
18
24
public class DataGridRowGroupHeader : TemplatedControl
19
25
{
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace Avalonia.Controls.Primitives
13
13
/// <summary>
14
14
/// Represents an individual <see cref="T:Avalonia.Controls.DataGrid" /> row header.
15
15
/// </summary>
16
+ [ TemplatePart ( DATAGRIDROWHEADER_elementRootName , typeof ( Control ) ) ]
16
17
[ PseudoClasses ( ":invalid" , ":selected" , ":editing" , ":current" ) ]
17
18
public class DataGridRowHeader : ContentControl
18
19
{
You can’t perform that action at this time.
0 commit comments