You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application will run on Windows 7-based kiosks that are located indoors and outdoors. The kiosk displays have a photo sensor that will update the application with the current ambient luminosity.
You need to ensure that the user interface (UI) of the application dynamically changes the application theme based on the ambient luminosity.
What should you use?
A.
a visual state manager to add VisualStateGroup objects
B.
a VisualBrush control to paint the UI
C.
a RenderTransform control applied to the root canvas
D.
an attached behavior to change a merged resource dictionary