dim oTabBarItem as TabBarItem
dim bmp as bitmap
bmp.initialize(File.DirAssets,"page1.png") 'Where page1.png is 60x60 pixels
oTabBarItem.initialize("Page 1",bmp,bmp)
Page1.RootPanel.loadlayout("frmMain")
Page1.title="Page 1"
Page1.TabBarItem=oTabBarItem
Page2.Initialize("Page2")
Page2.RootPanel.Color=Colors.red
Page2.RootPanel.LoadLayout("frmPage2")
Page2.Title="Page2"
Page2.RootPanel.AddView(VideoView1.View,ImageView1.Left,ImageView1.top,ImageView1.Width,ImageView1.Height)
TabController.Pages = Array(Page1,Page2)