Is it possible to use a multiTrigger to evaluate properties on multiple elements? That don't reside within a template, but are within the Usercontrol/Window.
Example:
<CheckBox x:Name="checkBox1" />
<CheckBox x:Name="checkBox2" />
<CustomControl>
<CustomControl.ContentTemplate>
<DataTemplate>
<DataTemplate.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition
SourceName="checkBox1"
Property="IsChecked"
Value="False" />
<Condition
SourceName="checkBox2"
Property="IsChecked"
Value="True" />
</MultiTrigger.Conditions>
<MultiTrigger.Setters>
<Setter
Property="Visibility"
Value="Collapsed" />
</MultiTrigger.Setters>
</MultiTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</CustomControl.ContentTemplate>
In a normal Trigger we can use the sourceName to trigger against properties on either of those checkbox controls, but with a multiTrigger I get build errors when it attempts to find those controls.
Note: The reason I'm using a DataTemplate as opposed to a Style is mentioned here