Private Sub GetDrinkItemContent(Item As Panel) As tDrinkItem
Private Result As tDrinkItem : tDrinkItem.Initialize
Private spnQty As Spinner
Private chkSelected as CheckBox
Private btnName as Button
' ...
For Each V As View In Item
if V is Spinner then ' you could have more than one Spinner, so you should use its Tag property to to distinguish them
spnQty = V
Result.Qty = spnQty.Value
else if V is CheckBox then
chkSelected = V
Else IF V is Button then ' you could have more than one Button, so you should... btnName = V
Result.Name = btnName.Text
' ...
End If
Next
Return Result
End Sub