D2dControl icon indicating copy to clipboard operation
D2dControl copied to clipboard

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

Open rakka74 opened this issue 7 years ago • 0 comments

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()	不明
  • サンプルアプリのコード https://gist.github.com/rakka74/759019690cc4936be88f606fa02733b0

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>

rakka74 avatar Dec 02 '16 15:12 rakka74