设计视图 Xaml 显示 phone 的正文且不显示黑屏
Design View Xaml shows body of phone and not showing the black screen
我对 MainPage.xaml 的 XAML 设计器有疑问,它不显示 phone 的黑屏。相反,它显示了不可见的背景。这意味着只有 phone 的主体可见,但屏幕与 phone 背景匹配。
将 Button 添加到 Grid 时,只能看到用于更改 Button 大小的轮廓,而不是 Button 的内容。
此答案适用于 Visual Studio 中的任何项目,而不仅仅是 windows phone。
将 Page
或 Grid
或特定控件的背景设置为所需的颜色。
Background="Green"
如果这只是设计时问题...可以将设计器的背景颜色更改为备用颜色。
转到选项 -> Fonts and Colors
和 select XAML Designer
显示 的设置下拉列表。 Artboard Background
中的 将两种颜色更改为适合您的颜色。混合颜色会创建棋盘视图,因此通常最好使用黑色或白色。
我对 MainPage.xaml 的 XAML 设计器有疑问,它不显示 phone 的黑屏。相反,它显示了不可见的背景。这意味着只有 phone 的主体可见,但屏幕与 phone 背景匹配。
将 Button 添加到 Grid 时,只能看到用于更改 Button 大小的轮廓,而不是 Button 的内容。
此答案适用于 Visual Studio 中的任何项目,而不仅仅是 windows phone。
将 Page
或 Grid
或特定控件的背景设置为所需的颜色。
Background="Green"
如果这只是设计时问题...可以将设计器的背景颜色更改为备用颜色。
转到选项 -> Fonts and Colors
和 select XAML Designer
显示 的设置下拉列表。 Artboard Background
中的 将两种颜色更改为适合您的颜色。混合颜色会创建棋盘视图,因此通常最好使用黑色或白色。