The above post shows the correct way to do it.
All XUI Views custom views assign themselves to the base panel Tag property. The code looks like this:
Code:
Public Sub DesignerCreateView (Base As Object, lbl As Label, Props As Map)
mBase = Base
Tag = mBase.Tag
mBase.Tag = Me
mBase is the panel that gets added to the views tree.