NeedsContainer<T> Method
A default implementation of NeedsContainerOverride(Object, Int32, Object) that returns true and sets the recycle key to DefaultRecycleKey if the item is not a T .
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected bool NeedsContainer<T>(
Object? item,
out Object?? recycleKey
)
where T : Control
Protected Function NeedsContainer(Of T As Control) (
item As Object,
<OutAttribute> ByRef recycleKey As Object
) As Boolean
member NeedsContainer :
item : Object *
recycleKey : Object byref -> bool when 'T : Control
Parameters
- Object
- The item.
- Object
- When the method returns, contains DefaultRecycleKey if item is not of type T; otherwise null.
Type Parameters
- The container type.
Return Value
Boolean
true if item is of type T; otherwise false.