Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚开始使用 WPF。从窗口形式移动。
那些openDialog、saveDialog去哪儿了?还有一堆东西。
Microsoft.Win32在命名空间中查找
Microsoft.Win32
OpenFileDialog openDialog = new OpenFileDialog(); if (openDialog.ShowDialog().Value) { .......... }
同样的SaveFileDialog
SaveFileDialog
SaveFileDialog saveDialog = new SaveFileDialog(); if (saveDialog.ShowDialog().Value) { .......... }