Structure binding to compound widget, create individuals bindings to each properties during build time

Do you work with setting widgets visible / invisible a lot?

If so, bindings of invisible widgets are still operating and updated in the background. To avoid this it can be helpful to use multiple contents and place them in the ContentControl widget. The ContentControl widget has a property deactivate which fully deactivates the contained content when not visible.

Using a ContentControl within a TabControl or just show / hide contents with the visible property of the ContentControl can bring a big performance boost.

Of course this approach does not fit well for all use cases, but maybe you can structure your UI in a way to at least partially use it.

1 Like