'Declaration Public Enum PrimaryAxis Inherits System.Enum
'Usage Dim instance As PrimaryAxis
public enum PrimaryAxis : System.Enum
'Declaration Public Enum PrimaryAxis Inherits System.Enum
'Usage Dim instance As PrimaryAxis
public enum PrimaryAxis : System.Enum
| Member | Description |
|---|---|
| Both | Both the vertical and horizontal axes must be completely visible. |
| Horizontal | The horizontal axis ust be completely visible. |
| None | Neither the vertical nor horizontal axes must be completely visible. |
| Vertical | The vertical axis must be completely visible. |
The primary axis determines which DataRow will receive the focus when the page-up or page-down buttons are pressed.
For example, let's assume that the focus is currently in the top-left DataRow. If the page-down button is pressed while the ItemsPrimaryAxis property is set to Vertical, the DataRow on the bottom-right whose vertical axis is completely visible will receive the focus. If set to Horizontal, the DataRow on the bottom-right whose horizontal axis is completely visible will receive the focus, while setting the property to Both will send the focus to the DataRow whose vertical and horizontal axes are completely visible. Setting the ItemsPrimaryAxis property to None indicates that neither the vertical nor horizontal axes need to be completely visible and thus the focus will be sent to the last DataRow on the bottom-right that is at least partially visible.
Note that the ItemsPrimaryAxis property applies only when a pixel-scrolling panel template is assigned to a grid's ItemsPanel property.
System.Object
System.ValueType
System.Enum
Xceed.Wpf.DataGrid.PrimaryAxis
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2