Let's say I have a large XAML page. On this page are dozens of text boxes, buttons, etc, and these controls need to be shown/hidden/modified based on various conditions (permissions, view-model states, whatever). Two possible approaches to set up the visual transitions are:
- Use a visual state manager; bind the state transitions to properties in the view-model
- Bind the control properties to their respective view-model properties, using converters where applicable (bool-to-visibility, string-to-color, etc)
My question: purely from the perspective of performance (speed and memory footprint), is one or the other approach clearly better? Is the second approach, loading up the page with bindings, liable to weigh it down? Or is the difference likely to be negligible?