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
Copy file name to clipboardExpand all lines: README.md
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,14 +115,12 @@ public static AppBuilder BuildAvaloniaApp() => AppBuilder
115
115
withResolver: sp=>
116
116
{
117
117
// Optional: access ServiceProvider
118
-
},
119
-
withReactiveUIBuilder: rxui=>
120
-
{
121
-
// Optional ReactiveUI customizations
122
118
})
123
-
.RegisterReactiveUIViewsFromEntryAssembly();
119
+
;
124
120
```
125
121
122
+
Note: `UseReactiveUIWithMicrosoftDependencyResolver(...)` builds the `ServiceProvider` during setup, so make sure you register all services (including any `IViewFor<T>` views) in the `services => { ... }` callback.
123
+
126
124
With Ninject:
127
125
128
126
```csharp
@@ -149,7 +147,7 @@ Notes
149
147
---
150
148
## Manual setup (without container mixins)
151
149
152
-
You can configure a custom container using the generic `UseReactiveUIWithDIContainer` if you don’t use one of the provided integrations:
150
+
You can configure a custom container using the generic `UseReactiveUIWithDIContainer` if you don’t use one of the provided integrations:
153
151
154
152
```csharp
155
153
AppBuilder
@@ -222,12 +220,12 @@ public partial class MainView : ReactiveUserControl<MyViewModel>
222
220
### ReactiveUI.Avalonia (core)
223
221
224
222
Key extension methods on `AppBuilder`:
225
-
-`UseReactiveUI()` — initialize ReactiveUI for Avalonia (scheduler, activation, bindings)
226
-
-`UseReactiveUI(Action<ReactiveUIBuilder>)` — initialize with the `ReactiveUIBuilder` for additional configuration
227
-
-`RegisterReactiveUIViews(params Assembly[])` — scan and register views implementing `IViewFor<T>`
228
-
-`RegisterReactiveUIViewsFromEntryAssembly()` — convenience overload to scan the entry assembly
229
-
-`RegisterReactiveUIViewsFromAssemblyOf<TMarker>()` — scan a specific assembly
230
-
-`UseReactiveUIWithDIContainer<TContainer>(...)` — bring-your-own container integration via an `IDependencyResolver`
223
+
-`UseReactiveUI()` — initialize ReactiveUI for Avalonia (scheduler, activation, bindings)
224
+
-`UseReactiveUI(Action<ReactiveUIBuilder>)` — initialize with the `ReactiveUIBuilder` for additional configuration
225
+
-`RegisterReactiveUIViews(params Assembly[])` — scan and register views implementing `IViewFor<T>`
226
+
-`RegisterReactiveUIViewsFromEntryAssembly()` — convenience overload to scan the entry assembly
227
+
-`RegisterReactiveUIViewsFromAssemblyOf<TMarker>()` — scan a specific assembly
228
+
-`UseReactiveUIWithDIContainer<TContainer>(...)` — bring-your-own container integration via an `IDependencyResolver`
0 commit comments