为什么设计师空白? [英] Why is the designer blank?
问题描述
我的项目运行,它在运行时显示它的面,但在设计时,它是空白的(没有GUI)。这是为什么?这是我的xaml: < Window x:Class =" MC_Proctor.MainWindow" 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" 这篇关于为什么设计师空白?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
span
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>
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>推荐答案