Browse Source

Register auto data template binding hook

pull/2560/head
artyom 8 years ago
parent
commit
72fe95272a
  1. 5
      src/Avalonia.ReactiveUI/AppBuilderExtensions.cs

5
src/Avalonia.ReactiveUI/AppBuilderExtensions.cs

@ -21,9 +21,8 @@ namespace Avalonia.ReactiveUI
return builder.AfterSetup(_ => return builder.AfterSetup(_ =>
{ {
RxApp.MainThreadScheduler = AvaloniaScheduler.Instance; RxApp.MainThreadScheduler = AvaloniaScheduler.Instance;
Locator.CurrentMutable.Register( Locator.CurrentMutable.RegisterConstant(new AvaloniaActivationForViewFetcher(), typeof(IActivationForViewFetcher));
() => new AvaloniaActivationForViewFetcher(), Locator.CurrentMutable.RegisterConstant(new AutoDataTemplateBindingHook(), typeof(IPropertyBindingHook));
typeof(IActivationForViewFetcher));
}); });
} }
} }

Loading…
Cancel
Save