VB 2017对话框 [英] VB 2017 dialog box

查看:57
本文介绍了VB 2017对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家!

我正在我的第一个VB 2017 WPF项目中,我需要添加一个模式对话框.向项目添加新窗口很容易,但是相应的代码在哪里呢?我想必须创建一个新文件,但是如何将其链接到对话框的.xaml?

I'm working on my first VB 2017 WPF project and I need to add a modal dialog box. Adding a new window to the project is easy, but where does the corresponding code go? I must create a new file, I guess, but how do I link it to the dialog's .xaml?

预先感谢.

推荐答案

在VS2017中创建新窗口时,它会同时创建XAML文件和.VB文件.您的代码在哪里.在解决方案资源管理器中,打开XAML文件(小三角形),您将看到.VB文件.

When you create a new Window in VS2017 it creates both the XAML file and the .VB file where your code goes.  In the Solution Explorer open the XAML file (the little triangle) and you will see the .VB file.


这篇关于VB 2017对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆