0

xamdatagrid の最適化に問題があります。これを使用しようとしてい ます http://www.infragistics.com/community/blogs/kiril_matev/archive/2010/10/26/optimizing-xamdatagrid-performance.aspx

しかし、コントロールのスタイルをダウンロードすると、オブジェクト参照がオブジェクトのインスタンスに設定されていないというエラーが表示されます。

これはスクリーンショットで確認できます。 ここに画像の説明を入力

またはこれ。ライン:336

<Setter Property="TemplateCardView">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type igDP:DataRecordPresenter}">
                <igWindows:CardPanel x:Name="baseGrid" Background="{TemplateBinding Background}">
                    <!-- Record Content -->
                    <Rectangle Fill="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, CardBackground}}" />
                    <ContentPresenter x:Name="PART_RecordContentSite" Content="{TemplateBinding DataContext}" ContentTemplate="{TemplateBinding {ComponentResourceKey {x:Type igDP:DataRecordPresenter}, RecordContentAreaTemplate}}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                </igWindows:CardPanel>
            </ControlTemplate>
        </Setter.Value>
    </Setter>

エラーが示す<ControlTemplate..>

そして、私が削除した場合

Fill="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, CardBackground}}"

エラーは発生しません

何が悪いのか教えてください。

4

1 に答える 1