Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rakka74 opened this issue Dec 2, 2016 · 0 comments

Comments

@rakka74
Copy link

rakka74 commented Dec 2, 2016

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant