Add project files.

This commit is contained in:
Daniel Clark
2022-11-01 15:26:08 +00:00
parent daa7b59f22
commit 7e4f880821
408 changed files with 16863 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using System.Windows;
namespace TheXamlGuy.UI.WPF;
public class StateTrigger : StateTriggerBase
{
public static readonly DependencyProperty IsActiveProperty =
DependencyProperty.Register(nameof(IsActive),
typeof(bool), typeof(StateTrigger),
new PropertyMetadata(false, OnIsActivePropertyChanged));
public bool IsActive
{
get => (bool)GetValue(IsActiveProperty);
set => SetValue(IsActiveProperty, value);
}
private static void OnIsActivePropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
{
(dependencyObject as StateTrigger)?.SetActive((bool)args.NewValue);
}
}