[英]Where is the shortcut “Open in Blend” in Visual Studio 2013?
Sometimes I see the shortcut sometimes I don't. 有时我会看到快捷方式,有时候我没有。 I'm not sure why.
我不知道为什么。
How can I make the shortcut permanent? 如何使快捷方式永久化?
I believe I have an answer. 我相信我有一个答案。 It worked for me flawlessly.
它完美地为我工作。 After being frustrated, I wrote to MS through the Feedback option in VS2013 (at the top).
在感到沮丧之后,我通过VS2013中的反馈选项(在顶部)写信给MS。 A week later, one of their employees responded with this:
一周后,他们的一名员工回答:
Hi,
嗨,
Thanks for raising this issue to us through the Visual Studio Feedback program.
感谢您通过Visual Studio反馈程序向我们提出此问题。 I am interested in helping investigate the issue you've described.
我有兴趣帮助调查您所描述的问题。 After creating a new WPF app in Visual Studio 2013 RTM, I was able to reproduce the issue you've described.
在Visual Studio 2013 RTM中创建新的WPF应用程序后,我能够重现您所描述的问题。 By default, .xaml files do not have the “Open in Blend…” command enabled in the context menu in the Solution Explorer.
默认情况下,.xaml文件没有在解决方案资源管理器的上下文菜单中启用“打开混合...”命令。 However, I was able to successfully add this command in both VB and C# WPF projects in VS 2013. It sounds like you might have also tried this method, but please try the steps below and see if you are able to successfully add the command.
但是,我能够在VS 2013中的VB和C#WPF项目中成功添加此命令。听起来您可能也尝试过这种方法,但请尝试以下步骤,看看是否能够成功添加命令。 I hope that step #6 might be the trick in successfully enabling the command for you.
我希望第6步可能是成功为您启用命令的技巧。 In order to add this command, I followed these steps:
为了添加此命令,我按照以下步骤操作:
- Tools > Customize
工具>自定义
- Select Context Menu radio button
选择上下文菜单单选按钮
- From the Dropdown, choose “Project and Solution Context Menus |
从下拉列表中,选择“项目和解决方案上下文菜单| Item”
项目”
- Click the “Add Command…” button
单击“添加命令...”按钮
- Select View category
选择查看类别
- Select the third (bottom-most) “Open in Blend…” command (there should be three available)
选择第三个(最底部)“Open in Blend ...”命令(应该有三个可用)
- Close dialogs
关闭对话框
- Right click MainWindow.xaml
右键单击MainWindow.xaml
- Select “Open in Blend…” (it should not be grayed out)
选择“在混合中打开...”(它不应该变灰)
Of the three “Open in Blend…” commands available, the third one is the only one which successfully worked on .xaml files in WPF projects.
在三个“Open in Blend ...”命令中,第三个是在WPF项目中成功处理.xaml文件的唯一命令。 The other two would be grayed out when I tried to use them.
当我尝试使用它们时,另外两个会变灰。 Please contact me to let me know if you are able to successfully add the command or if you still see the issue.
如果您能够成功添加命令或者仍然看到问题,请与我联系告诉我。 I look forward to your response, and I hope that this will successfully resolve your issue!
我期待着您的回复,我希望这能成功解决您的问题!
Thank you,
谢谢,
Scott Rick
斯科特里克
I am impressed by the fact that he gave much consideration to this issue and actually tested several methods. 他对这个问题给予了很多考虑并实际测试了几种方法,这让我印象深刻。 In my case, there were two "Open in Blend..." items, so I chose the second one and it worked flawlessly.
在我的情况下,有两个“Open in Blend ......”项目,所以我选择了第二个,它完美无缺。
Hope it works for you as well. 希望它也适合你。
You can customize it: 你可以自定义它:
Keyboard Shortcut: how to 键盘快捷键: 如何
Integration in context menu: 在上下文菜单中集成:
You get this context menu option now for every item but that should not hurt... 你现在可以为每个项目获得这个上下文菜单选项但不应该受到伤害......
When working on a Silverlight, Windows Phone or Windows Store app project, you can use the View -> Open in Blend command to open your current active tab/code XAML window in Blend. 在处理Silverlight,Windows Phone或Windows应用商店应用项目时,您可以使用视图 - >打开混合命令在Blend中打开当前活动的选项卡/代码XAML窗口。
The above menu choice is not available for WPF apps only. 以上菜单选项仅适用于WPF应用程序。 No idea why.
不知道为什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.