Sub MyObj_Click
Dim P As Panel = Sender
Dim ix As Int
ix = clvMyObjs.GetItemFromView(P)
clvMyObjs.RemoveAt(ix)
P.RemoveView()
If P.Height = Constants.MyObj_PanelSmall Then
clvMyObjs.InsertAt(ix, P, Constants.MyObj_PanelLarge, P.Tag)
P.Height = Constants.MyObj_PanelLarge
P.SetLayout (P.Left, P.Top, P.Width, Constants.MyObj_PanelLarge)
For Each V As View In P.GetAllViewsRecursive
If V.Tag = "Services" Then V.Visible = True
Next
Else
clvMyObjs.InsertAt(ix, P, Constants.MyObj_PanelSmall, P.Tag)
P.Height = Constants.MyObj_PanelSmall
P.SetLayout (P.Left, P.Top, P.Width, Constants.MyObj_PanelSmall)
For Each V As View In P.GetAllViewsRecursive
If V.Tag = "Services" Then V.Visible = False
Next
End If
End Sub