Skip to main content

GetPropertiesValueSource Method

Returns the element that carries the grid-attached properties (RowProperty, ColumnProperty, etc.) relevant to this GridSplitter.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected virtual StyledElement GetPropertiesValueSource()

Return Value

StyledElement
The StyledElement from which grid-attached properties should be read—either the parent ContentPresenter or the splitter instance.

Remarks

When the splitter is generated as part of an ItemsControl template, the attached properties are set on the surrounding ContentPresenter rather than on the splitter itself. This helper selects that presenter when appropriate so subsequent property look-ups read the correct values; otherwise it simply returns this.

See Also

Reference

GridSplitter Class
Avalonia.Controls Namespace