I have the following controls/views:
- myControl containing a ContentControl and two ControlTemplates in the
UserControl.Resources - Main application (Window) with an instance of myControl and a ToggleButton
I want to switch between my two ControlTemplates via the ToggleButton in the main application.
This should be very easy … but I cannot find a proper way :S
A simpler solution is to bind to the content property of the content control and define datatemplates for each type of content.