Skip to main content

TryGetTotalCount Method

Total children count or null if source is infinite. Some Avalonia features might not work if TryGetTotalCount(Int32) returns false, for instance: nth-last-child selector.

Definition

Namespace: Avalonia.LogicalTree
Assembly: Avalonia.Base (in Avalonia.Base.dll)

bool TryGetTotalCount(
out int count
)
View Source

Parameters

  Int32
 

Return Value

Boolean

See Also

Reference

IChildIndexProvider Interface
Avalonia.LogicalTree Namespace