[英]How to add Windows.Forms framework to WPF project in Visual Studio
<UseWindowsForms>true</UseWindowsForms>
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
private void Button_Click(object sender, RoutedEventArgs e)
{
using FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
{
folderBrowserDialog.ShowDialog();
}
}
Property
-> Application
-> General
-> Windows Forms
-> Enable Windows Forms for this Project
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.