Visual Studio 2015通用Windows应用程序开发:WYSIWYG问题,无法从工具箱中看到丢弃的控件 [英] Visual Studio 2015 Universal Windows App development: WYSIWYG problem, unable to see dropped controls from the toolbox
问题描述
我是Universal Windows App开发的新手。我在使用Visual Studio 2015 Universal Windows App开发时遇到问题。我无法从工具箱中看到我丢失的控件。例如,当我从MainPage.xaml上的工具箱
中删除Button控件(名为"Mybutton")时,XAML代码将按预期更改:
I'm new to Universal Windows App development. I have a problem using Visual Studio 2015 Universal Windows App development. I can't see my dropped controls from the toolbox. For example, when I drop a Button control (named "Mybutton") from the toolbox on MainPage.xaml, the XAML code will change as expected:
< Button x:Name =" Mybutton"含量="按钮和QUOT;高度= QUOT; 100" Width =" 100" />
虽然XAML代码已更改,但我无法看到我的按钮控件,如下图所示。
Although the XAML code has been changed, I can't see my button control as illustrated in the image below.
另一方面,VS2015中的经典WPF解决方案按预期显示我的按钮:
A classic WPF solution in VS2015 on the other hand is showing my button as expected:
我做错了什么?
推荐答案
嗨!
你没有做错任何事。
您的XAML代码很好。
Your XAML code is good.
因此,XAML设计师有时会遇到一些问题。所以你试过:
Therefore the XAML designer has some problems sometimes. So have you tried to :
- 构建你的项目
- 关闭你的windows设计器并重新打开它。通常它应该工作。
希望它有用。
Hope it wil be useful.
如果它对你有好处,你可以将这个答案标记为你的问题的答案吗?
在twitter上关注我: https://twitter.com/NordineMhoumadi
这篇关于Visual Studio 2015通用Windows应用程序开发:WYSIWYG问题,无法从工具箱中看到丢弃的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!