I want set the background image for a panel in the center of it. But how can I set the image in center of panel?
I wrote this code:
Dim panel21 As Panel
panel21.Initialize("panel21")
ScrollView1.Panel.AddView(panel21, 0, 138%y, 100%x, 12%y)
panel21.SetBackgroundImage(LoadBitmap(File.DirAssets, "home.png"))
But I don't want to set background for it in designer mode.