小编Jac*_*ick的帖子

C++/winRT xaml ContentDialog 示例

文档显示了这个 C# 片段:

async void DisplayDeleteFileDialog(){
    ContentDialog deleteFileDialog = new ContentDialog{
        Title = "Delete file permanently?",
        Content = "If you delete this file, you won't be able to recover it. Do you want to delete it?",
        PrimaryButtonText = "Delete",
        CloseButtonText = "Cancel"
    };

    ContentDialogResult result = await deleteFileDialog.ShowAsync();

    // Delete the file if the user clicked the primary button.
    /// Otherwise, do nothing.
    if (result == ContentDialogResult.Primary) {
         // Delete the file.
        }
    else {
         // The user clicked the …
Run Code Online (Sandbox Code Playgroud)

c++-winrt

5
推荐指数
1
解决办法
1408
查看次数

标签 统计

c++-winrt ×1