sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

RenderLoop.Run with multiple tabs #991

Open sjc9999 opened 6 years ago

sjc9999 commented 6 years ago

I have a multi-tab application. Each tab is a form which has a single control window for sharpDX. I am using RenderLoop.Run(control, someFunc) to update the graphics on each tab. Each tab works correctly when created but the previously created tab no longer updates the graphics window because it appears RenderLoop.Run on that tab is no longer being called. Each new tab when created appears to replace the previous RenderLoop. The tabs are can also be undocked so more than one may be visible at once. Any tab can be closed so I have no guarantee that any one tab will be there. How should I solve the problem? Should I use a Timer instead?