How To Bind Style Classes
This guide will show you how to apply style classes to a control depending on the Boolean value of a data binding.
To do this, you will need some classes defined in a <Styles>
collection that target the control class you are using.
You can then conditionally apply the classes to a control using special classes syntax and a data binding. The syntax is like this:
<SomeControl Classes.class1="{Binding IsClass1Active}">