Dim PrefDlg As PreferencesDialog
Dim Left, EndTop, Width, Height As Int
Width = 150dip
Left = (Root.Width - Width) / 2
PrefDlg.Initialize(Root, "Title", Width, Height)
Dim Data As Map = CreateMap()
Dim PDE As ResumableSub = PrefDlg.ShowDialog(Data, "OK", "CANCEL")
Height = PrefDlg.Dialog.Base.Height
PrefDlg.Dialog.Base.Visible = True
EndTop = (Root.Height - Height) / 2
PrefDlg.mBase.As(Panel).Elevation = 100dip
PrefDlg.Dialog.Base.SetLayoutAnimated(0, Left, -Height, Width, Height)
PrefDlg.Dialog.Base.SetLayoutAnimated(500, Left, EndTop, Width, Height)
Wait For (PDE) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
End If...