@@ -186,35 +186,19 @@ namespace ReactiveUI
186186 void RegisterScheduler<T>(System.Reactive.Concurrency.IScheduler scheduler, string contract = null);
187187 void SendMessage<T>(T message, string contract = null);
188188 }
189- public interface INotifyCollectionChanging
190- {
191- public event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanging;
192- }
193- public interface INotifyPropertyChanging
194- {
195- public event ReactiveUI.PropertyChangingEventHandler PropertyChanging;
196- }
197189 public class INPCObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger
198190 {
199191 public INPCObservableForProperty() { }
200192 public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged) { }
201193 public System.IObservable<ReactiveUI.IObservedChange<object, object>> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged, bool suppressWarnings = False) { }
202194 }
203- public class Interaction<TInput, TOutput>
195+ public interface INotifyCollectionChanging
204196 {
205- public Interaction(System.Reactive.Concurrency.IScheduler handlerScheduler = null) { }
206- protected System.Func<, >[] GetHandlers() { }
207- public virtual System.IObservable<TOutput> Handle(TInput input) { }
208- public System.IDisposable RegisterHandler(System.Action<ReactiveUI.InteractionContext<TInput, TOutput>> handler) { }
209- public System.IDisposable RegisterHandler(System.Func<ReactiveUI.InteractionContext<TInput, TOutput>, System.Threading.Tasks.Task> handler) { }
210- public System.IDisposable RegisterHandler<TDontCare>(System.Func<ReactiveUI.InteractionContext<TInput, TOutput>, System.IObservable<TDontCare>> handler) { }
197+ public event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanging;
211198 }
212- public sealed class InteractionContext<TInput, TOutput>
199+ public interface INotifyPropertyChanging
213200 {
214- public TInput Input { get; }
215- public bool IsHandled { get; }
216- public TOutput GetOutput() { }
217- public void SetOutput(TOutput output) { }
201+ public event ReactiveUI.PropertyChangingEventHandler PropertyChanging;
218202 }
219203 public interface IObservedChange<out TSender, out TValue>
220204 {
@@ -248,6 +232,12 @@ namespace ReactiveUI
248232 {
249233 bool ExecuteHook(object source, object target, System.Func<ReactiveUI.IObservedChange<, >[]> getCurrentViewModelProperties, System.Func<ReactiveUI.IObservedChange<, >[]> getCurrentViewProperties, ReactiveUI.BindingDirection direction);
250234 }
235+ public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger
236+ {
237+ public IROObservableForProperty() { }
238+ public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = False) { }
239+ public System.IObservable<ReactiveUI.IObservedChange<object, object>> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = False, bool suppressWarnings = False) { }
240+ }
251241 public interface IReactiveBinding<out TView, out TViewModel, out TValue> : System.IDisposable
252242 where out TView : ReactiveUI.IViewFor
253243 where out TViewModel : class
@@ -289,12 +279,6 @@ namespace ReactiveUI
289279 string PropertyName { get; }
290280 TSender Sender { get; }
291281 }
292- public class IROObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger
293- {
294- public IROObservableForProperty() { }
295- public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = False) { }
296- public System.IObservable<ReactiveUI.IObservedChange<object, object>> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = False, bool suppressWarnings = False) { }
297- }
298282 public interface IRoutableViewModel : ReactiveUI.INotifyPropertyChanging, ReactiveUI.IReactiveObject, Splat.IEnableLogger, System.ComponentModel.INotifyPropertyChanged
299283 {
300284 ReactiveUI.IScreen HostScreen { get; }
@@ -343,6 +327,22 @@ namespace ReactiveUI
343327 ReactiveUI.IViewFor ResolveView<T>(T viewModel, string contract = null)
344328 where T : class;
345329 }
330+ public sealed class InteractionContext<TInput, TOutput>
331+ {
332+ public TInput Input { get; }
333+ public bool IsHandled { get; }
334+ public TOutput GetOutput() { }
335+ public void SetOutput(TOutput output) { }
336+ }
337+ public class Interaction<TInput, TOutput>
338+ {
339+ public Interaction(System.Reactive.Concurrency.IScheduler handlerScheduler = null) { }
340+ protected System.Func<, >[] GetHandlers() { }
341+ public virtual System.IObservable<TOutput> Handle(TInput input) { }
342+ public System.IDisposable RegisterHandler(System.Action<ReactiveUI.InteractionContext<TInput, TOutput>> handler) { }
343+ public System.IDisposable RegisterHandler(System.Func<ReactiveUI.InteractionContext<TInput, TOutput>, System.Threading.Tasks.Task> handler) { }
344+ public System.IDisposable RegisterHandler<TDontCare>(System.Func<ReactiveUI.InteractionContext<TInput, TOutput>, System.IObservable<TDontCare>> handler) { }
345+ }
346346 public class MessageBus : ReactiveUI.IMessageBus, Splat.IEnableLogger
347347 {
348348 public MessageBus() { }
@@ -410,17 +410,17 @@ namespace ReactiveUI
410410 public static System.Collections.Generic.IComparer<T> OrderByDescending<TValue>(System.Func<T, TValue> selector) { }
411411 public static System.Collections.Generic.IComparer<T> OrderByDescending<TValue>(System.Func<T, TValue> selector, System.Collections.Generic.IComparer<TValue> comparer) { }
412412 }
413- public class PlatformRegistrations
414- {
415- public PlatformRegistrations() { }
416- public void Register(System.Action<System.Func<object>, System.Type> registerFunction) { }
417- }
418413 public class POCOObservableForProperty : ReactiveUI.ICreatesObservableForProperty, Splat.IEnableLogger
419414 {
420415 public POCOObservableForProperty() { }
421416 public int GetAffinityForObject(System.Type type, string propertyName, bool beforeChanged = False) { }
422417 public System.IObservable<ReactiveUI.IObservedChange<object, object>> GetNotificationForProperty(object sender, System.Linq.Expressions.Expression expression, string propertyName, bool beforeChanged = False, bool suppressWarnings = False) { }
423418 }
419+ public class PlatformRegistrations
420+ {
421+ public PlatformRegistrations() { }
422+ public void Register(System.Action<System.Func<object>, System.Type> registerFunction) { }
423+ }
424424 public class PropertyBinderImplementation : ReactiveUI.IPropertyBinderImplementation, Splat.IEnableLogger
425425 {
426426 public PropertyBinderImplementation() { }
@@ -486,16 +486,6 @@ namespace ReactiveUI
486486 public static ReactiveUI.ReactiveCommand<TParam, System.Reactive.Unit> CreateFromTask<TParam>(System.Func<TParam, System.Threading.Tasks.Task> execute, System.IObservable<bool> canExecute = null, System.Reactive.Concurrency.IScheduler outputScheduler = null) { }
487487 public static ReactiveUI.ReactiveCommand<TParam, System.Reactive.Unit> CreateFromTask<TParam>(System.Func<TParam, System.Threading.CancellationToken, System.Threading.Tasks.Task> execute, System.IObservable<bool> canExecute = null, System.Reactive.Concurrency.IScheduler outputScheduler = null) { }
488488 }
489- public class ReactiveCommand<TParam, TResult> : ReactiveUI.ReactiveCommandBase<TParam, TResult>
490- {
491- protected internal ReactiveCommand(System.Func<TParam, System.IObservable<TResult>> execute, System.IObservable<bool> canExecute, System.Reactive.Concurrency.IScheduler outputScheduler) { }
492- public override System.IObservable<bool> CanExecute { get; }
493- public override System.IObservable<bool> IsExecuting { get; }
494- public override System.IObservable<System.Exception> ThrownExceptions { get; }
495- protected override void Dispose(bool disposing) { }
496- public override System.IObservable<TResult> Execute(TParam parameter = null) { }
497- public override System.IDisposable Subscribe(System.IObserver<TResult> observer) { }
498- }
499489 public abstract class ReactiveCommandBase<TParam, TResult> : ReactiveUI.IHandleObservableErrors, ReactiveUI.IReactiveCommand, System.IDisposable, System.IObservable<TResult>, System.Windows.Input.ICommand
500490 {
501491 protected ReactiveCommandBase() { }
@@ -520,6 +510,16 @@ namespace ReactiveUI
520510 public static System.IDisposable InvokeCommand<T, TResult, TTarget>(this System.IObservable<T> @this, TTarget target, System.Linq.Expressions.Expression<System.Func<TTarget, ReactiveUI.ReactiveCommandBase<T, TResult>>> commandProperty)
521511 where TTarget : class { }
522512 }
513+ public class ReactiveCommand<TParam, TResult> : ReactiveUI.ReactiveCommandBase<TParam, TResult>
514+ {
515+ protected internal ReactiveCommand(System.Func<TParam, System.IObservable<TResult>> execute, System.IObservable<bool> canExecute, System.Reactive.Concurrency.IScheduler outputScheduler) { }
516+ public override System.IObservable<bool> CanExecute { get; }
517+ public override System.IObservable<bool> IsExecuting { get; }
518+ public override System.IObservable<System.Exception> ThrownExceptions { get; }
519+ protected override void Dispose(bool disposing) { }
520+ public override System.IObservable<TResult> Execute(TParam parameter = null) { }
521+ public override System.IDisposable Subscribe(System.IObserver<TResult> observer) { }
522+ }
523523 public class static ReactiveNotifyPropertyChangedMixin
524524 {
525525 public static System.IObservable<ReactiveUI.IObservedChange<TSender, TValue>> ObservableForProperty<TSender, TValue>(this TSender @this, System.Linq.Expressions.Expression<System.Func<TSender, TValue>> property, bool beforeChange = False, bool skipInitial = True) { }
@@ -908,8 +908,8 @@ namespace ReactiveUI.Legacy
908908 public System.IObservable<T> BeforeItemsAdded { get; }
909909 public System.IObservable<ReactiveUI.Legacy.IMoveInfo<T>> BeforeItemsMoved { get; }
910910 public System.IObservable<T> BeforeItemsRemoved { get; }
911- public System.IObservable<System.Collections.Specialized.NotifyCollectionChangedEventArgs> Changed { get; }
912911 public bool ChangeTrackingEnabled { get; set; }
912+ public System.IObservable<System.Collections.Specialized.NotifyCollectionChangedEventArgs> Changed { get; }
913913 public System.IObservable<System.Collections.Specialized.NotifyCollectionChangedEventArgs> Changing { get; }
914914 public int Count { get; }
915915 public System.IObservable<int> CountChanged { get; }
0 commit comments