Table of Contents

Class GridSplitter

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Represents the control that redistributes space between columns or rows of a Grid control.

public class GridSplitter : Thumb, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
Inheritance
GridSplitter
Implements
Inherited Members
Extension Methods

Constructors

GridSplitter()

public GridSplitter()

Fields

DragIncrementProperty

Defines the DragIncrement property.

public static readonly StyledProperty<double> DragIncrementProperty

Field Value

StyledProperty<double>

KeyboardIncrementProperty

Defines the KeyboardIncrement property.

public static readonly StyledProperty<double> KeyboardIncrementProperty

Field Value

StyledProperty<double>

PreviewContentProperty

Defines the PreviewContent property.

public static readonly StyledProperty<ITemplate<Control>> PreviewContentProperty

Field Value

StyledProperty<ITemplate<Control>>

ResizeBehaviorProperty

Defines the ResizeBehavior property.

public static readonly StyledProperty<GridResizeBehavior> ResizeBehaviorProperty

Field Value

StyledProperty<GridResizeBehavior>

ResizeDirectionProperty

Defines the ResizeDirection property.

public static readonly StyledProperty<GridResizeDirection> ResizeDirectionProperty

Field Value

StyledProperty<GridResizeDirection>

ShowsPreviewProperty

Defines the ShowsPreview property.

public static readonly StyledProperty<bool> ShowsPreviewProperty

Field Value

StyledProperty<bool>

Properties

DragIncrement

Restricts splitter to move a multiple of the specified units.

public double DragIncrement { get; set; }

Property Value

double

KeyboardIncrement

The Distance to move the splitter when pressing the keyboard arrow keys.

public double KeyboardIncrement { get; set; }

Property Value

double

PreviewContent

Gets or sets content that will be shown when ShowsPreview is enabled and user starts resize operation.

public ITemplate<Control> PreviewContent { get; set; }

Property Value

ITemplate<Control>

ResizeBehavior

Indicates which Columns or Rows the Splitter resizes.

public GridResizeBehavior ResizeBehavior { get; set; }

Property Value

GridResizeBehavior

ResizeDirection

Indicates whether the Splitter resizes the Columns, Rows, or Both.

public GridResizeDirection ResizeDirection { get; set; }

Property Value

GridResizeDirection

ShowsPreview

Indicates whether to Preview the column resizing without updating layout.

public bool ShowsPreview { get; set; }

Property Value

bool

Methods

OnDragCompleted(VectorEventArgs)

protected override void OnDragCompleted(VectorEventArgs e)

Parameters

e VectorEventArgs

OnDragDelta(VectorEventArgs)

protected override void OnDragDelta(VectorEventArgs e)

Parameters

e VectorEventArgs

OnDragStarted(VectorEventArgs)

protected override void OnDragStarted(VectorEventArgs e)

Parameters

e VectorEventArgs

OnKeyDown(KeyEventArgs)

Called before the KeyDown event occurs.

protected override void OnKeyDown(KeyEventArgs e)

Parameters

e KeyEventArgs

The event args.

OnLostFocus(RoutedEventArgs)

Called before the LostFocus event occurs.

protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e RoutedEventArgs

The event args.

OnPointerEntered(PointerEventArgs)

Called before the PointerEntered event occurs.

protected override void OnPointerEntered(PointerEventArgs e)

Parameters

e PointerEventArgs

The event args.