Tag: datatrigger

DataTrigger不会更改Text属性

我试图在样式上使用数据触发器来更改属性。 符合“ 最小,完整和可validation的示例 ”要求…… 要重现,首先在Visual Studio中创建一个WPF应用程序。 在App.xaml.cs中: using System.ComponentModel; using System.Windows; namespace Foo{ /// /// Interaction logic for App.xaml /// public partial class App : Application, INotifyPropertyChanged { private bool _clicked; public bool Clicked { get { return this._clicked; } set { this._clicked = value; this.PropertyChanged?.Invoke( this, new PropertyChangedEventArgs( “Clicked” ) ); } } public […]