Adjust project structure
This commit is contained in:
1 parent
d38912f5da
commit
e3c436f939
2111 files changed
+14028
-47199
No files matched your search
@@ -0,0 +1,21 @@
|
||||
namespace HandyControl.Interactivity
|
||||
{
|
||||
public abstract class EventTriggerBase<T> : EventTriggerBase where T : class
|
||||
{
|
||||
protected EventTriggerBase() : base(typeof(T))
|
||||
{
|
||||
}
|
||||
|
||||
protected virtual void OnSourceChanged(T oldSource, T newSource)
|
||||
{
|
||||
}
|
||||
|
||||
internal sealed override void OnSourceChangedImpl(object oldSource, object newSource)
|
||||
{
|
||||
base.OnSourceChangedImpl(oldSource, newSource);
|
||||
OnSourceChanged(oldSource as T, newSource as T);
|
||||
}
|
||||
|
||||
public new T Source => (T)base.Source;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user