Class VisualContainer
This is a scrollable visual container which contains the all panels(CellsPanel, BordersPanel, SelectionPanel) of Grid as Children. Handles the arrange and measure logic of all elements.
Inherited Members
Namespace: Syncfusion.UI.Xaml.CellGrid
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class VisualContainer : ScrollableFrame, IScrollableInfo, IScrollInfo, IDisposable
Constructors
VisualContainer()
Creates a new instance.
Declaration
public VisualContainer()
Methods
ArrangeChildPanels(Rect)
Arrange the child panels.
Declaration
protected virtual void ArrangeChildPanels(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect |
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize |
Returns
Type |
---|
System.Windows.Size |
Overrides
CreateSelectionPanel()
Creates the SelectionPanel.
Declaration
protected virtual SelectionPanel CreateSelectionPanel()
Returns
Type |
---|
SelectionPanel |
Dispose(Boolean)
Dispose the live instances.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Dispose the instance, if it is True |
Overrides
GetClipRect(ScrollAxisRegion, ScrollAxisRegion)
Gets the clipping bounds for the specified row and column region.
Declaration
public Rect GetClipRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisRegion | rowRegion | The row region. |
ScrollAxisRegion | columnRegion | The column region. |
Returns
Type | Description |
---|---|
System.Windows.Rect | A GetClipRect(ScrollAxisRegion, ScrollAxisRegion) with clipping bounds. |
InitializeChildPanels()
Initialize and add the child panels.
Declaration
protected virtual void InitializeChildPanels()
InvalidateMeasureInfo()
Invalidates all the child panels.
Declaration
public override void InvalidateMeasureInfo()
Overrides
MeasureChildPanels(Size)
Measure the child panels.
Declaration
protected virtual void MeasureChildPanels(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |
Returns
Type |
---|
System.Windows.Size |
Overrides
OnScrollColumns_Changed(Object, ScrollChangedEventArgs)
Used to refresh the columns when visiblecolumns collection changed
Declaration
protected override void OnScrollColumns_Changed(object sender, ScrollChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
ScrollChangedEventArgs | e |
Overrides
RangeToRect(ScrollAxisRegion, ScrollAxisRegion, GridRangeInfo, Boolean, Boolean)
For internal use.
Declaration
public Rect RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, GridRangeInfo range, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisRegion | rowRegion | Scroll axis region for row. |
ScrollAxisRegion | columnRegion | Scroll axis region for column. |
GridRangeInfo | range | Cell range. |
System.Boolean | allowEstimatesForOutOfViewRows | If set to true, allows estimate for out of view rows. |
System.Boolean | allowEstimatesForOutOfViewColumns | If set to true, allows estimate for out of view columns. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Visible rectangle for the given range. |
RangeToRect(ScrollAxisRegion, ScrollAxisRegion, RowColumnIndex, Boolean, Boolean)
For internal use.
Declaration
public Rect RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, RowColumnIndex rowcolumn, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
Type | Name | Description |
---|---|---|
ScrollAxisRegion | rowRegion | Scroll axis region for row. |
ScrollAxisRegion | columnRegion | Scroll axis region for column. |
RowColumnIndex | rowcolumn | Cell range. |
System.Boolean | allowEstimatesForOutOfViewRows | If set to true, allows estimate for out of view rows. |
System.Boolean | allowEstimatesForOutOfViewColumns | If set to true, allows estimate for out of view columns. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Visible rectangle for the given range. |
UpdateAxis(Size)
Declaration
public override void UpdateAxis(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |