意外删除的“Xaml文件背后的代码” [英] Accidentally deleted "Code behind Xaml file"
本文介绍了意外删除的“Xaml文件背后的代码”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不小心删除了MainWindow.xaml后面的文件。 无论如何我可以在MainWindow上创建.xaml.vb文件吗?
I accidentally deleted the file behind MainWindow.xaml. Is there anyway I could create a .xaml.vb file on MainWindow?
推荐答案
是的,您可以在Blend中显式添加vb代码。请按以下步骤操作:
1。在项目窗格中选择MainWindow.xaml
2.点击文件 - > New Item并选择Class.vb
3。输入"MainWindow.xaml.vb"作为名称,然后单击"确定"。
问候,
Navit Saxena
Hi,
Yes, you can add a vb code behind file explicitly in Blend. Follow these steps:
1. Select MainWindow.xaml in Project pane
2. Click on File --> New Item and select Class.vb
3. Enter "MainWindow.xaml.vb" as the name and click Ok.
Regards,
Navit Saxena
这篇关于意外删除的“Xaml文件背后的代码”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文