为什么设计师空白? [英] Why is the designer blank?

查看:66
本文介绍了为什么设计师空白?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目运行,它在运行时显示它的面,但在设计时,它是空白的(没有GUI)。这是为什么?这是我的xaml:
span

< Window x:Class =" MC_Proctor.MainWindow"
xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x =" http://schemas.microsoft.com/winfx/2006/xaml "
Title =" MC Proctor"高度= QUOT; 350"宽度="525">
<网格>
< StackPanel>
< Expander Margin =" 5"填充= QUOT; 5英寸标题="收到的消息" >
< ScrollViewer Height =" 50" >
< ListView Name =" lvMsgs" >
< / ListView>
< / ScrollViewer>
< / Expander>
< DataGrid
ItemsSource =" {Binding Path =。} "
边距="10"
x:Name =" _dataGrid"
ColumnHeaderHeight =" 30"的AutoGenerateColumns = QUOT;真"
AlternatingRowBackground =" Cyan" CanUserSortColumns =" False">
< / DataGrid>
<按钮>显示最高分数< / Button>
< / StackPanel>
< / Grid>
< / Window>

My project runs, and it shows its face at runtime, but at design time, it's blank (no GUI). Why is that? Here is my xaml:

<Window x:Class="MC_Proctor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MC Proctor" Height="350" Width="525">
    <Grid>
        <StackPanel>
            <Expander Margin="5" Padding="5" Header="Received Messages" >
                <ScrollViewer Height="50" >
                    <ListView Name="lvMsgs" >
                    </ListView>
                </ScrollViewer>
            </Expander>
            <DataGrid
            ItemsSource="{Binding Path=.}"   
                         Margin="10" 
                         x:Name="_dataGrid"   
                         ColumnHeaderHeight="30" AutoGenerateColumns="True"   
                             AlternatingRowBackground="Cyan" CanUserSortColumns="False">
            </DataGrid>
            <Button>Show Highest Scores</Button>
        </StackPanel>
    </Grid>
</Window>

推荐答案




这篇关于为什么设计师空白?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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