Wpf |
Gets or sets a static Boolean value that specifies if DXEngine optimizes handling the IsVisible property changes.
When this is optimized, the 3D objects are not removed from the scene tree but are just skipped when rendering. This means that all the DirectX resources are preserved and the change from hidden to visible objects is very fast.
A problem with optimized path is that when WPF hit testing is used, the hidden objects will still be part of the WPF objects tree and will receive hit tests. This means that you will need to handle that with filter callback or with skipping that objects in HitTest callback. Another way to solve this is to use EventManager3D that automatically handle that case or to use hit testing from DXEngine. But you can also disable that optimization with setting OptimizeWpfIsVisibleChangeProcessing to false (this must be done before the scene is created).
When false, the objects that are hidden are removed from scene tree.
This property do not have any effect when scene is not rendered with Abd3.DXEngine.
Default value is true.