<UserControl x:Class="QuoteWpf.UcMain"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QuoteWpf"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
//这里使用Height="450 Width="800"就正常
<Grid>
<DataGrid Name="project" AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding Projects}" RowHeight="23">
<DataGrid.Columns>
<DataGridTextColumn Header="编号" Binding="{Binding Identity}"/>
<DataGridTextColumn Header="名称" Binding="{Binding Name}"/>
<DataGridTextColumn Header="金额" Binding="{Binding Amount}"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</UserControl>
使用以上代码导致内存升到2+G,请高手帮忙解答一下什么原因导致的