GetOrCreate(IEnumerable) Method
Gets or creates an ItemsSourceView for the specified enumerable.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static ItemsSourceView GetOrCreate(
IEnumerable? items
)
Public Shared Function GetOrCreate (
items As IEnumerable
) As ItemsSourceView
static member GetOrCreate :
items : IEnumerable -> ItemsSourceView
Parameters
- IEnumerable
- The enumerable.
Return Value
ItemsSourceViewRemarks
This method handles the following three cases: - If items is null, returns Empty - If items is an ItemsSourceView returns the existing ItemsSourceView - Otherwise creates a new ItemsSourceView
See Also
Reference
ItemsSourceView Class
GetOrCreate Overload
Avalonia.Controls Namespace