Files
HandyControl/Net35/HandyControl_Net35/Interactivity/TriggerAction!1.cs
T
2019-01-21 00:43:10 +08:00

19 lines
504 B
C#

using System;
using System.Windows;
namespace HandyControl.Interactivity
{
public abstract class TriggerAction<T> : TriggerAction where T : DependencyObject
{
protected TriggerAction() : base(typeof(T))
{
}
#pragma warning disable 108,114
protected T AssociatedObject => (T)base.AssociatedObject;
#pragma warning restore 108,114
protected sealed override Type AssociatedObjectTypeConstraint =>
base.AssociatedObjectTypeConstraint;
}
}