You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.
Note: This will need to wait for the IMixinDependency to be implemented in the main code base.
Note: This may also require events to be mixed in.
public class NotifyPropertyChangedMixin : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
}
public class NotifyPropertyChangedAspect : MixinInterceptorBase, IMixinDependency<INotifyPropertyChanged>
{
public INotifyPropertyChanged Target {get;set;}
public override void OnAfterPropertyInvocation(object sender, PropertyEventArgs eventArgs)
{
Target.PropertyChanged(Target, new PRopertyChangedEventArgs(eventArgs.MemberName);
}
}
[pMixins(Mixin = typeof(NotifyPropertyChangedMixin )]
[pMixins(Mixin = typeof(Target.TargetImpl), Interceptors = new []{typeof(NotifyPropertyChangedAspect )]
public partial class Target
{
private class TargetImpl
{
public string SomeProperty {get;set;}
}
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Note: This will need to wait for the IMixinDependency to be implemented in the main code base.
Note: This may also require events to be mixed in.
The text was updated successfully, but these errors were encountered: