2011-06-29 30 views
0

我想在MessageBox上顯示3個按鈕。我找到了Guide.BeginShowMessageBox方法,但它不能使用3個按鈕。這裏是我的代碼:如何在MessageBox上顯示3個按鈕?

Guide.BeginShowMessageBox("Info", "This is a test messsage.", 
     new List<string> { "OK", "Retry", "Cancel" }, 0, MessageBoxIcon.Warning, 
     asyncResult => 
     { 
      int? returned = Guide.EndShowMessageBox(asyncResult); 
      Debug.WriteLine(returned.ToString()); 
     }, null); 

感謝, 拉奇

回答

1

MSDN

按鈕的最大數量爲在Windows Phone,以及三個在Xbox 360或視窗。

你在Windows Phone上嗎?

+0

是的,我在WP7上...... – laszlokiss88

+0

然後你不能有三個按鈕。 –

+0

我創建了一個動畫彈出框,與原始消息框非常相似。看來,這個問題沒有另一種解決方案。 – laszlokiss88