Visual Studio Designer不显示UWP应用程序的控件 [英] Visual Studio Designer not showing controls for UWP Apps

查看:161
本文介绍了Visual Studio Designer不显示UWP应用程序的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XAML设计器没有以可见的方式显示控件。如果单击了应该显示轮廓边框的位置,并选择了正确的xaml代码,则控件就在那里。没有选择任何内容,它看起来像是一个空白的托盘,仅勾勒出页面轮廓。我尝试了蓝色,蓝色额外对比度,深色和浅色主题。同一期发行所有主题。我也尝试过在ARM,x86和x64之间切换,而这三个问题都存在。错误列表中没有消息。打开多个解决方案的结果相同。

XAML Designer is not displaying controls in a way they are visble. The controls are there, if you click where one should be the outline borders are highlighted and the proper xaml code is selected. With nothing selected it looks like a blank pallet with just the page outlined. I have tried the blue, blue extra contrast, dark and light color theme. Same issue all themes. I have also tried switching between ARM, x86 and x64 with issue in all three. There are no messages in the Error List. Have opened multiple solutions same result.

推荐答案

在我构建可提供正确输出的代码时

As i build your code which gives correct output

您的代码

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <Ellipse Name="LED" Fill="LightGray" Stroke="White" Height="100" Width="100" Margin="10" />
        <TextBlock Name="DelayText" Text="500ms" Margin="10" TextAlignment="Center" FontSize="26.667"/>
        <TextBlock Name="GpioStatus" Text="Waiting To Initialize GPIO..." Margin="10,50,10,10" TextAlignment="Center" FontSize="26.667" />
    </StackPanel>
</Grid>

输出

建议

您可以使用 RelativePanel 更好地对齐元素,这使开发人员可以在UWP应用中更好地安排元素

For Better Alignment Of Elements You Can Use RelativePanel which allow Developer to better arrangement of elements in UWP apps

进一步在Visual Studio Designer中面临的问题与您的CPU性能有关,可以保护设计人员实时更新,您可以尝试调试您的应用,这可能会给出正确的结果。
并在任务管理器中查找除Visual Studio及其组件以外的任何进程都可能消耗您的CPU和RAM-

Further the problem you face in visual studio Designer is Related to your CPU performance which protect designer to update in real time, you can try Debug your app which may give correct result. And find processes in task manager any process other than visual studio and its components may consume your CPU and RAM-

并查看您的系统配置,这应该足够了,但是您不需要非常高配置的PC来进行应用开发,它应该最小化,可以轻松处理所有可视工作室流程,如果您打算进行游戏开发,则根据您的游戏开发需要更高的游戏水平。

And View Your System Configuration which should be enough but you don't need very high configuration PC for app development it should minimal which can easily handle all visual studio process , if you planning to game development then you need a higher one according to your game development.

这篇关于Visual Studio Designer不显示UWP应用程序的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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