简体   繁体   中英

How to know when the ViewPort3D finishes render?

After moving a perspective camera of the ViewPort3D, the rendering of the 3D visuals takes some seconds to fully render.

There's no "Rendered" event or anything like that.

Is there any way to detect when the render finishes?

Currently you cannot do that because there's no property in ViewPort3D to serve what you want.

The nearest one is using the inherited property of ViewPort3D, the IsInitialized property. This property will tell you whether a FrameworkElement such as ViewPort3D is completing EndInit (finishing init) or not.

Since you aren't mentioning about which platform do you use, I assume you are using .NET Framework 4.7 and later instead of .NET Core.

Here's the official documentation on IsInitialized property: https://docs.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.isinitialized?view=netframework-4.7

Did you get any further on this topic, detecting when the render finishes?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM