-
Notifications
You must be signed in to change notification settings - Fork 0
API
Marco Milani edited this page Nov 20, 2016
·
4 revisions
#API Summary
##MvbBase API.
MvBinder Binder { get; private set; }
protected void InitBinder();
void Send<TSender, TArgs>(TSender sender, string message, TArgs args);
void Send<TSender>(TSender sender, string message);
void Subscribe<TSender, TArgs>(object subscriber, string message, Action<TSender, TArgs> callback, TSender source = null);
void Subscribe<TSender>(object subscriber, string message, Action<TSender> callback, TSender source = null);
void Unsubscribe<TSender, TArgs>(object subscriber, string message);
void Unsubscribe<TSender>(object subscriber, string message);
void Reset();
##MvBinder API
void AddAction(string id, Action action);
void AddAction<TSource>(Expression<Func<TSource, object>> property, Action action)
void AddActionForCollection<TSource>(Expression<Func<TSource, object>> property,
Action<MvbCollectionUpdateArgs> action)
void AddActionForCollection(string propertyName, Action<MvbCollectionUpdateArgs> action);
void Run<TSource>(Expression<Func<TSource, object>> property);
void Run(string property);
void RunCollection<TSource>(Expression<Func<TSource, object>> property, MvbCollectionUpdateArgs args);
void RunCollection(string property, MvbCollectionUpdateArgs args);
void ClearActions();
##MvbActions
void AddAction(Action action)
void Invoke()
##MvbActions<
T>
void AddAction<T>(Action<T> action)
void Invoke(T args)
##MvbCollection<
T>
void AddRange(IEnumerable<T> range);
void Reset(IEnumerable<T> range);
##MvbMessenger
void Send<TSender, TArgs>(TSender sender, string message, TArgs args);
void Send<TSender>(TSender sender, string message);
void Subscribe<TSender, TArgs>(object subscriber, string message, Action<TSender, TArgs> callback, TSender source = null);
void Subscribe<TSender>(object subscriber, string message, Action<TSender> callback, TSender source = null);
void Unsubscribe<TSender, TArgs>(object subscriber, string message);
void Unsubscribe<TSender>(object subscriber, string message);
void Reset();
##UiRunnerDispenser
static void RegisterRunner(Func<IUiRunner> theRunner);
#Args
##MvbPropertyChanged
string PropertyName { get; }
object OldValue { get; }
object NewValue { get; }
##MvbCollectionItemChanged : MvbPropertyChanged
int Index { get; }
##MvbCollectionUpdateArgs
MvbUpdateAction MvbUpdateAction { get; set; }
NotifyCollectionChangedEventArgs NotifyCollectionChangedEventArgs { get; set; }
MvbCollectionItemChanged MvbCollectionItemChanged { get; set; }