本文讲解C#WPF属性触发器的实例
在属性触发器中,当一个属性发生更改时,它将立即或动画更改另一个属性
实例
- <Window
- x:Class="TriggerDemo.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:TriggerDemo"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="MainWindow"
- Width="400"
- Height="250"
- mc:Ignorable="d">
- <Window.Resources>
- <Style x:Key="ButtonStyle" TargetType=