Multi-Triggers
Learn how to use multi-triggers in .NET MAUI.
We'll cover the following...
Multi-triggers are fired when multiple conditions are met. We'll cover how to use them in .NET MAUI with the aid of the following project setup and some examples:
<?xml version = "1.0" encoding = "UTF-8" ?> <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:MultiTriggersDemo" x:Class="MultiTriggersDemo.App"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources/Styles/Colors.xaml" /> <ResourceDictionary Source="Resources/Styles/Styles.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>
.NET MAUI project example with multi-triggers demonstration