Example #1
0
 public NProperty Event <T>(Action <T, NEventAdapter> subscribe) where T : class
 {
     return(Support(typeof(T), (t, v) => NEventAggregator.AssignEvent(this, v, (T)t, subscribe)));
 }
Example #2
0
 public NProperty Event <T>(RoutedEvent routedEvent, Func <NEventAdapter, Delegate> extractor) where T : DependencyObject
 {
     return(Support(typeof(T), (t, v) => NEventAggregator.AssignEvent(this, v, (DependencyObject)t, routedEvent, extractor)));
 }