dalance / d2dcontrol Goto Github PK
View Code? Open in Web Editor NEWWPF Control for Direct2D with SharpDX
License: MIT License
WPF Control for Direct2D with SharpDX
License: MIT License
The memory usage will increase absurdly without stopping while you resize the window.
I created a WPF C# project in Visual Studio 2015 Update 3, using .NET Framework 4.5.2 on Windows 10 x64
This is a great project and I know most dx11 under WPF implementations have this issue, but is there a way to fix any of these two issues:
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"を削除すると例外は出なくなりました。
<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>
Null reference exception is thrown in this situation because CreateAndBindTargets() is called before StartD3d() because of a resize event. A simple null check fixed this issue: PR #5
Hey, in order to load textures and render bitmaps in 2D need to make the device accessible in your control.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.