"对话框"在WPF中 [英] "DialogBox" in WPF

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

问题描述

是否可以创建"DialogBox"。在没有代码的WPF中,仅在XAML中,因为WPF没有"DialogBox"。 WPF工具箱中的控件。

Is it possible to create a "DialogBox" in WPF without code behind and only in XAML as WPF doesnt have a "DialogBox" control in WPF ToolBox.

提前致谢。

谢谢,

Madhusudhan SM

Madhusudhan SM

Madhusudhan SM

Madhusudhan SM

推荐答案

是的,这是可能的。 使用XAML设计表单,然后按如下方式打开它(假设您的新窗口名为DialogWindow):

Yes, that is possible.  Design your form using XAML then open it as follows (assuming your new Window is called DialogWindow):

Dim myWin as New DialogWindow
myWin.ShowDialog




由于您的窗口是静音的,可以这么说,您必须使用除了代码背后的技术捕获在其上输入的数据。$


Since your window is mute, so to speak, you will have to capture the data entered on it using techniques other than code behind.


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

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