Xceed Toolkit Plus for WPF v4.6 Documentation
GetCanScrollHorizontally Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Views Namespace > TableView Class : GetCanScrollHorizontally Method

The dependency object from which the property value is read.

Gets a value indicating whether the item to which the property is attached can scroll with the content of a grid.
Syntax
'Declaration
 
Public Shared Function GetCanScrollHorizontally( _
   ByVal obj As DependencyObject _
) As Boolean
'Usage
 
Dim obj As DependencyObject
Dim value As Boolean
 
value = TableView.GetCanScrollHorizontally(obj)
public static bool GetCanScrollHorizontally( 
   DependencyObject obj
)

Parameters

obj

The dependency object from which the property value is read.

Return Value

true if the item can scroll with the content of a grid; false otherwise (the item will stay fix).
Remarks

The CanScrollHorizontally attached property can be set on elements (e.g., GroupByControl and GroupHeaderControl) to prevent them from being scrolled horizontally. If set on a row, it will be ignored. The CanScrollHorizontally attached property should not be set on the panel (FixedCellPanel) used to manage the data rows in table view since this panel will automatically handle fixing the appropriate elements (cells).

Using this property will result in the RenderTransform property being modified. In the case where the RenderTransform property is required, two solutions are available:

1- Place the element on which the CanScrollHorizontally property has been set in a panel, which will have the desired RenderTransform.

2- Place the element which has the desired RenderTransform in a simple Decorator that will set the CanScrollHorizontally property to false.

Requirements

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

See Also

Reference

TableView Class
TableView Members