2013-10-03 43 views

回答

4
var p = new Popup(); 
var content = new TextBox { Text = "hello world!" }; 
p.Child = content; 
p.VerticalOffset = (this.ActualHeight - content.ActualHeight)/2; 
p.HorizontalOffset = (this.ActualWidth - content.ActualWidth)/2; 
p.IsOpen = true; 

哪裏this是的PhoneApplicationPage和彈出是LayoutRoot電網的孩子。

+0

Wooow!這個平臺非常棒! –