September 2012
Intermediate to advanced
464 pages
10h 55m
English
An active trigger can execute actions, but sometimes a trigger needs to be composed of multiple conditions that activate the entire trigger if all conditions are met. This is exactly what the MultiTrigger and MultiDataTrigger types are capable of. Let's see how to create a MultiTrigger.
Make sure Visual Studio is up and running.
We'll create a simple application that changes the way a button appears by using multiple properties set up inside a MultiTrigger:
CH08.MultiTriggerDemo.MainWindow.xaml. Replace the existing Grid with a StackPanel.StackPanel:<Button Content="Move mouse over me" FontSize="20" HorizontalAlignment="Center" ...
Read now
Unlock full access