Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 xaml设计不起作用_Visual Studio 2012_Winrt Xaml_Xaml Designer - Fatal编程技术网

Visual studio 2012 xaml设计不起作用

Visual studio 2012 xaml设计不起作用,visual-studio-2012,winrt-xaml,xaml-designer,Visual Studio 2012,Winrt Xaml,Xaml Designer,我在xaml设计器中看不到任何控件,我可以单击它们并转到后台代码,但看不到,我重新安装了VS 2012,但运气不佳,即使我创建了新项目,它也会这样做,blend也会出现这种情况。为了解决这个问题,我搜索了很多,但是运气不好,请帮帮我 PS:我安装了vs 2010 sp1,vs 2012更新1 下面是一个按钮的空白windows应用商店应用程序的基本代码 <Page x:Class="App6.MainPage" xmlns="http://schemas.microsoft.com/win

我在xaml设计器中看不到任何控件,我可以单击它们并转到后台代码,但看不到,我重新安装了VS 2012,但运气不佳,即使我创建了新项目,它也会这样做,blend也会出现这种情况。为了解决这个问题,我搜索了很多,但是运气不好,请帮帮我 PS:我安装了vs 2010 sp1,vs 2012更新1 下面是一个按钮的空白windows应用商店应用程序的基本代码

<Page
x:Class="App6.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App6"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

</Grid>
</Page>

这只是猜测,但通常必须为网格提供某种行或列定义。以下是定义两行的网格:

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Button Content="hello world"></Button>
</Grid>

上述方法对我有效,但以下方法无效:

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Button Content="hello world"></Button>
</Grid>

经过5天的搜索,终于找到了。我发现了问题,它来自我的视频卡:
我有hp probook 4540s笔记本电脑,它有intel和amd视频卡,因此我自定义设置以提供完整的图形功能,因此我打开Catalyst Control Center并使该功能提供最大的性能(问题开始了)。我将其更改为优化性能,并恢复正常(OMG)

我在那里没有看到任何
按钮。您的XAML原样将为空。与最近发布的VS 2012更新2相比。它还包含一些针对XAML Designer的修复程序,可能也会修复您的问题。很抱歉,我忘了添加按钮..将项目上载到SkyDrive/Dropbox上,这样我就可以知道您的代码或VS的问题在哪里,即使创建新项目。。问题仍然存在。。除此之外:一切正常,但由于某种原因,它只是崩溃或被窃听了。它不会显示任何设计。。我所能看到的是每个控件的布局,这就是全部,非常感谢。我有一个4740的问题,和你回答的问题完全一样!