Sub Show ()
If PannelloConferma.IsInitialized = True Then ' Check if the Panel is already initialized
PannelloConferma.RemoveAllViews ' In case it is, we clear it
End If
PannelloConferma.Initialize("PannelloConferma") ' Initialize the panel
PannelloConferma.Tag="PannelloConferma" ' Tag the Panel
PannelloConferma.Color = Colors.Transparent ' Make the Panel transparent
act.AddView(PannelloConferma,0%x,0%y,100%x,100%y)' Add the panel to the Activity
pnlSoloPicker.Initialize("") 'Initialize a second panel where we will put our TimePicker
'Declaring, initializing and placing the labels and panels
Dim lblOk As Label
Dim lblcancel As Label
lblOk.Initialize("lblok")
lblcancel.Initialize("lblcancel")
PannelloConferma.AddView(pnlSoloPicker,PannelloConferma.Width*0.1,PannelloConferma.Height*0.1,PannelloConferma.Width*0.8,PannelloConferma.Height*0.8)
PannelloConferma.AddView(lblOk,PannelloConferma.Width*0.5,PannelloConferma.Height*0.9,PannelloConferma.Width*0.1,PannelloConferma.Height * 0.05)
PannelloConferma.AddView(lblcancel,PannelloConferma.Width*0.6,PannelloConferma.Height *0.9,PannelloConferma.Width*0.1,PannelloConferma.Height * 0.05)
LayoutBuilder.LoadXmlLayout(pnlSoloPicker, "picker") 'We build the XML in the second panel
End Sub