DialogResult with FolderBrowserDialog in WPF

后端 未结 4 1206
滥情空心
滥情空心 2021-01-17 18:19

First time I\'m implementing a FolderBrowserDialog in WPF and I\'m not loving it one bit...

Aside from the issues I had figuring out that Windows.Forms wasn\'t refer

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-17 18:43

    DialogResult.(OK, Cancel whatever you want to check),

    if (result == DialogResult.OK) // DialogResult.(Your desired result, select from the list it generates)
    {
        txtSource.Text = fbd.SelectedPath;
    }
    

提交回复
热议问题