黄色三角警告图标出现在设计视图中。警告消息显示:“此文档包含一个或多个已修改的控件。请重建项目以使更改显示在设计视图中“ [英] Yellow triangle warning icon shows up in design view. Warning message reads: "This document contains one or more controls that have been modified. Please rebuild the project for the changes to display in design view"

查看:78
本文介绍了黄色三角警告图标出现在设计视图中。警告消息显示:“此文档包含一个或多个已修改的控件。请重建项目以使更改显示在设计视图中“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目构建并运行得很好,但在XAML设计视图中,有一个奇怪的黄色警告图标,并且在构建解决方案时,标题中的警告消息显示在错误列表窗格中。

My project builds and runs just fine, but in the XAML design view, there's this weird yellow warning icon and the warning message in the title shows up in the Error List pane when the solution is built.

这是我的XAML: 

Here's my XAML: 

<Window x:Name="Window_Main" x:Class="RefGraph.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:RefGraph"
        mc:Ignorable="d"
        Title="RefGraph" Height="509" Width="863" BorderBrush="Black" BorderThickness="0" ResizeMode="NoResize">
    <Grid Background="#FFF1F1F1">
        <DockPanel x:Name="DockPanel_Menu" Height="20" LastChildFill="False" VerticalAlignment="Top">
            <Menu x:Name="Menu_Main" Width="{Binding ElementName=DockPanel_Menu,Path=ActualWidth}" Height="20" VerticalAlignment="Top">
                <MenuItem x:Name="Menu_File" Header="_File">
                    <MenuItem x:Name="MenuItem_Exit" Header="_Exit" VerticalAlignment="Top" HorizontalAlignment="Left" Click="MenuItem_Exit_Click" />
                </MenuItem>
                <MenuItem x:Name="Menu_Misc" Header="_Misc">
                    <MenuItem x:Name="MenuItem_About" Header="_About" Click="MenuItem_About_Click"/>
                </MenuItem>
            </Menu>
        </DockPanel>
        <DockPanel HorizontalAlignment="Left" Height="460" LastChildFill="False" Margin="0,20,0,0" VerticalAlignment="Top" Width="857">
            <TabControl Height="460" VerticalAlignment="Top" Width="857">
                <TabItem Header="Single Phase">
                    <Grid Background="#FFE5E5E5">
                        <local:SinglePhase/>
                    </Grid>
                </TabItem>
                <TabItem Header="TabItem">
                    <Grid Background="#FFE5E5E5"/>
                </TabItem>
            </TabControl>
        </DockPanel>
    </Grid>
</Window>

我会包含我所看到的截图,但我不被允许,因为我的帐户显然未经过验证。我不确定这意味着什么......

I would include a screenshot of what I'm seeing, but I'm not allowed to, as my account apparently isn't verified. I'm not sure what that means...

我尝试过清洁,重建,关闭解决方案,重新打开解决方案,然后再次清理和重建。如果我删除构建文件夹(/ bin中的Debug和Release文件夹),图标就会消失,但是一旦我再次构建,它就会回来。

I've tried cleaning, rebuilding, closing the solution, reopening the solution, then cleaning and rebuilding again. The icon goes away if I delete the build folders (Debug and Release folders in /bin), but then as soon as I build again, it comes back.

推荐答案

嗨尼古拉斯,

我创建新项目并使用你的代码,但我没有任何黄色三角形我构建项目后的警告图标。

I create new project and use your code, but I don't have any yellow triangle warning icon after I build my project.

一般情况下,只要你的项目启动并运行,你就不需要关心黄色三角形警告图标了。原因,请通过以下链接验证您的帐户:

In general, you don't need to care yellow triangle warning icon, as long as your project is up and running, if you still want to the reason, please verify your account from this link:

https://social.technet.microsoft.com/Forums/en-US/2d316856-d95f-440c-a63f-90cf685ed578/verify-your-account -20?forum = reportabug

然后在这里提供一些黄色三角形警告图标的截图。

Then providing some screenshot about your yellow triangle warning icon here.

最好的问候,

Cherry


这篇关于黄色三角警告图标出现在设计视图中。警告消息显示:“此文档包含一个或多个已修改的控件。请重建项目以使更改显示在设计视图中“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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