Skip to content

ReactiveUIBuilder.WithViewsFromAssembly(Assembly) method

Defined in

Type: ReactiveUIBuilder Namespace: ReactiveUI.Reactive.Builder Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net9.0, net8.0, net462, net481

Attributes: [RequiresUnreferencedCode("Scans assembly for IViewFor implementations using reflection. For AOT compatibility, use the ReactiveUIBuilder pattern to RegisterView explicitly.")]

public IReactiveUIBuilder WithViewsFromAssembly(Assembly assembly)

View source

Summary: Automatically registers all views that implement IViewFor from the specified assembly.

Parameters

NameTypeDescription
assemblyAssemblyThe assembly to scan for views.

Returns: IReactiveUIBuilder -- The builder instance for method chaining.