0
我在ContentDialog中顯示一個TextBox,當我按OK時,我想獲得文本框的值並調用一個方法。我找不到與之相關的任何內容。這是我的代碼。如何在WindowsPhone 8.1中添加PrimaryButtonCommad到ContentDialog?
var box = new ContentDialog()
{
Title = "File Name",
Content = fileName,
PrimaryButtonText = "Ok",
PrimaryButtonCommand = ,
SecondaryButtonText = "Cancel"
};
await box.ShowAsync();
它的工作感謝:) – Wahib