Skip to content

VirtualizingMode="Recycling"なListViewのアイテムでの使用でNPE発生 #4

Description

@rakka74

ListViewのアイテムとして使用したところ、スクロールするとD2dControlの中でNullReferenceExceptionが発生しました。

  • スタックトレース
D2dControl.dll!D2dControl.D2dControl.CreateAndBindTargets()	不明
D2dControl.dll!D2dControl.D2dControl.OnRenderSizeChanged(System.Windows.SizeChangedInfo sizeInfo)	不明
PresentationCore.dll!System.Windows.ContextLayoutManager.fireSizeChangedEvents()	不明
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout()	不明
PresentationCore.dll!System.Windows.UIElement.UpdateLayout()	不明
PresentationFramework.dll!System.Windows.Controls.VirtualizingStackPanel.InitializeViewport.AnonymousMethod__0()	不明

ListViewのVirtualizingPanel.VirtualizationMode="Recycling"を削除すると例外は出なくなりました。

  • 動作環境
    • OS: Windows 7 Home Premium
    • Microsoft Visual Studio Community 2015 Update3
    • 使用パッケージ
<packages>
  <package id="D2dControl" version="1.1.6.0" targetFramework="net452" />
  <package id="SharpDX" version="3.0.0" targetFramework="net452" />
  <package id="SharpDX.Direct2D1" version="3.0.0" targetFramework="net452" />
  <package id="SharpDX.Direct3D11" version="3.0.0" targetFramework="net452" />
  <package id="SharpDX.Direct3D9" version="3.0.0" targetFramework="net452" />
  <package id="SharpDX.DXGI" version="3.0.0" targetFramework="net452" />
</packages>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions