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)
- C#
- VB
- F#
protected virtual StyledElement GetPropertiesValueSource()
Protected Overridable Function GetPropertiesValueSource As StyledElement
abstract GetPropertiesValueSource : unit -> StyledElement
override GetPropertiesValueSource : unit -> StyledElement
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
.