ReactiveUI.Uno integrates ReactiveUI with the Uno Platform so the same MVVM code can run on Windows, desktop, WebAssembly, Android, and Apple targets. It provides Uno-aware view bases, activation, routing hosts, dependency-property observation, binding hooks, boolean visibility conversion, scheduler integration, resource dictionaries, and suspension storage.
The package family has two variants:
| Package | Use when | Reactive foundation |
|---|---|---|
ReactiveUI.Uno |
Uno applications or libraries that use ReactiveUI with ReactiveUI.Primitives. |
ReactiveUI, ReactiveUI.Primitives, ReactiveUI.Primitives.Blazor on browser WebAssembly targets. |
ReactiveUI.Uno.Reactive |
Existing ReactiveUI/System.Reactive applications that need Rx-compatible Unit, IScheduler, and Rx operators while sharing the same Uno integration code. |
ReactiveUI.Reactive, ReactiveUI.Primitives.Reactive, ReactiveUI.Primitives.Blazor.Reactive on browser WebAssembly targets. |
Both packages use the same source code. ReactiveUI.Uno.Reactive compiles it with the REACTIVE_SHIM symbol and publishes the public types under ReactiveUI.Uno.Reactive.
The packages are built as Uno single-project libraries. The solution currently targets:
| Target family | Target frameworks |
|---|---|
| Cross-platform .NET | net10.0, net10.0-desktop, net10.0-browserwasm, net11.0, net11.0-desktop, net11.0-browserwasm |
| Windows desktop | net10.0-windows10.0.19041.0, net11.0-windows10.0.19041.0 |
| Android | net10.0-android, net11.0-android |
| iOS | net10.0-ios, net11.0-ios |
Windows targets are added only when building on Windows. Apple mobile targets are added when building on macOS or Windows.
Install one package, not both, into the Uno project that owns your application startup and views.
dotnet add package ReactiveUI.UnoUse the Rx-compatible variant for existing System.Reactive-facing code:
dotnet add package ReactiveUI.Uno.ReactiveThe repository pins the versions used by the libraries and examples in Directory.Packages.props.
| Scenario | Main namespaces |
|---|---|
| Lean package | ReactiveUI, ReactiveUI.Builder, ReactiveUI.Primitives, ReactiveUI.Primitives.Concurrency, ReactiveUI.Uno |
| Rx-compatible package | ReactiveUI.Reactive, ReactiveUI.Builder, ReactiveUI.Reactive.Builder, ReactiveUI.Primitives.Reactive, ReactiveUI.Primitives.Reactive.Concurrency, ReactiveUI.Uno.Reactive |
| XAML namespace | http://reactiveui.net on non-Windows targets, or using:ReactiveUI.Uno / using:ReactiveUI.Uno.Reactive |
ReactiveUI.Uno uses ReactiveUI.Primitives.RxVoid for command completion values and ReactiveUI.Primitives.Concurrency.ISequencer for scheduling. ReactiveUI.Uno.Reactive uses System.Reactive.Unit and System.Reactive.Concurrency.IScheduler through the .Reactive packages.
Call WithUno(Window) during application startup. It registers Uno services, configures the main-thread scheduler, configures the task-pool scheduler, registers binding converters and hooks, and adds the ReactiveUI Uno resource dictionary after the startup window activates.
using ReactiveUI.Builder;
using ReactiveUI.Uno;
public partial class App : Application
{
private Window? _window;
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
_window ??= new Window();
_ = RxAppBuilder.CreateReactiveUIBuilder()
.WithUno(_window)
.WithDefaultIScreen()
.BuildApp();
_window.Content = new MainView
{
ViewModel = new MainViewModel()
};
_window.Activate();
}
}The .Reactive startup shape is the same, but the view and library types come from ReactiveUI.Uno.Reactive.
using ReactiveUI.Builder;
using ReactiveUI.Uno.Reactive;
_ = RxAppBuilder.CreateReactiveUIBuilder()
.WithUno(window)
.WithRegistration(mutable => mutable.RegisterConstant<IScreen>(new AppBootstrapper()))
.BuildApp();| API | Package namespace | Purpose |
|---|---|---|
UnoReactiveUIBuilderExtensions.WithUno(Window startupWindow) |
ReactiveUI.Builder |
Registers Uno services, the platform scheduler, task-pool scheduler, resource dictionary, binding converters, binding hooks, activation, dependency-property observation, and suspension storage. |
UnoReactiveUIBuilderExtensions.WithUnoScheduler() |
ReactiveUI.Builder |
Registers only the current Uno main-thread scheduler. Use this for advanced hosts that manage services and resources separately. |
UnoReactiveUIBuilderExtensions.WithDefaultIScreen() |
ReactiveUI.Builder |
Registers a default IScreen backed by AppBootstrapper. |
UnoReactiveUIBuilderExtensions.UnoMainThreadScheduler |
ReactiveUI.Builder |
Non-Windows scheduler facade that resolves UnoDispatcherScheduler.Current lazily. |
UnoReactiveUIBuilderExtensions.UnoWinUIMainThreadScheduler |
ReactiveUI.Builder |
Windows scheduler facade that resolves UnoWinUIDispatcherScheduler.Current lazily. |
Registrations |
ReactiveUI.Uno or ReactiveUI.Uno.Reactive |
Implements IWantsToRegisterStuff; registers platform services, converters, hooks, and WinRTAppDataDriver. Usually used through WithUno. |
AppBootstrapper |
ReactiveUI.Uno or ReactiveUI.Uno.Reactive |
ReactiveObject and IScreen implementation with a RoutingState Router. |
| API | Members | Purpose |
|---|---|---|
ReactivePage<TViewModel> |
ViewModelProperty, ViewModel, BindingRoot, IViewFor.ViewModel |
Uno Page base class that implements IViewFor<TViewModel> and wires an empty activation block so WhenActivated is available. |
ReactiveUserControl<TViewModel> |
ViewModelProperty, ViewModel, BindingRoot, IViewFor.ViewModel |
Uno UserControl base class that implements IViewFor<TViewModel>. |
RoutedViewHost |
Router, DefaultContent, ViewContract, ViewContractObservable, ViewLocator |
TransitioningContentControl that displays the view for Router.CurrentViewModel. |
ViewModelViewHost |
ViewModel, DefaultContent, ViewContract, ViewContractObservable, ViewLocator |
TransitioningContentControl that displays the view for a single view model object, useful inside data templates. |
TransitioningContentControl |
Inherits ContentControl |
Base content host used by RoutedViewHost and ViewModelViewHost. |
ReactiveUIUnoDictionary |
Preserves ViewModelViewHost for XAML loading |
WithUno(Window) adds this resource dictionary automatically. |
| API | Members | Purpose |
|---|---|---|
ActivationForViewFetcher |
GetAffinityForView(Type), GetActivationForView(IActivatableView) |
Activates FrameworkElement views when they are loading, visible to hit testing, and not unloaded. |
DependencyObjectObservableForProperty |
GetAffinityForObject(...), GetNotificationForProperty(...) |
Observes Uno dependency-property changes for WhenAnyValue, bindings, and property observation. Falls back to POCO observation when needed. |
AutoDataTemplateBindingHook |
DefaultItemTemplate, ExecuteHook(...) |
Automatically assigns a DataTemplate containing ViewModelViewHost when an ItemsControl.ItemsSource binding has no template or display member path. |
BooleanToVisibilityTypeConverter |
GetAffinityForObjects(), TryConvert(bool, object?, out Visibility) |
Converts bool values to Visibility.Visible or Visibility.Collapsed. |
BooleanToVisibilityHint |
None, Inverse |
Optional conversion hint for inverted boolean visibility conversion. |
PlatformOperations |
GetOrientation() |
Supplies the current display orientation for view contract selection where platform APIs are available. |
| API | Platform | Lean package behavior | .Reactive package behavior |
|---|---|---|---|
UnoDispatcherScheduler |
Non-Windows Uno targets using Windows.UI.Core.CoreDispatcher |
Implements ISequencer, exposes Current, Dispatcher, Priority, Now, Timestamp, Schedule(IWorkItem), Schedule(IWorkItem, long), and SchedulePeriodic<TState>(...). |
Implements the Rx scheduler surface through the IScheduler alias, exposing Current, Dispatcher, Priority, Now, Schedule<TState>(...), due-time overloads, and SchedulePeriodic<TState>(...). |
UnoWinUIDispatcherScheduler |
Windows targets using Microsoft.UI.Dispatching.DispatcherQueue |
Implements ISequencer, exposes Current, DispatcherQueue, Priority, Now, Timestamp, Schedule(IWorkItem), Schedule(IWorkItem, long), and SchedulePeriodic<TState>(...). |
Implements the Rx scheduler surface through the IScheduler alias, exposing Current, DispatcherQueue, Priority, Now, Schedule<TState>(...), due-time overloads, and SchedulePeriodic<TState>(...). |
On browser WebAssembly targets, WithUno(Window) uses ReactiveUI.Primitives.Blazor.Concurrency.BlazorRendererSequencer in the lean package and ReactiveUI.Primitives.Blazor.Reactive.Concurrency.BlazorRendererSequencer in the .Reactive package.
| API | Return type in ReactiveUI.Uno |
Return type in ReactiveUI.Uno.Reactive |
Purpose |
|---|---|---|---|
WinRTAppDataDriverUnsafe.LoadState() |
IObservable<object?> |
IObservable<object?> |
Loads DataContract XML state from ApplicationData.Current.RoamingFolder/appData.xmlish. This path is marked RequiresDynamicCode and RequiresUnreferencedCode. |
WinRTAppDataDriverUnsafe.SaveState<T>(T state) |
IObservable<RxVoid> |
IObservable<Unit> |
Saves DataContract XML state to appData.xmlish. This path is marked RequiresDynamicCode and RequiresUnreferencedCode. |
WinRTAppDataDriver.LoadState<T>(JsonTypeInfo<T> typeInfo) |
IObservable<T?> |
IObservable<T?> |
Loads JSON state from appData.json using source-generated JsonTypeInfo<T>. Prefer this for AOT/trimming. |
WinRTAppDataDriver.SaveState<T>(T state, JsonTypeInfo<T> typeInfo) |
IObservable<RxVoid> |
IObservable<Unit> |
Saves JSON state using source-generated JsonTypeInfo<T>. Prefer this for AOT/trimming. |
WinRTAppDataDriver.InvalidateState() |
IObservable<RxVoid> |
IObservable<Unit> |
Deletes both XML and JSON persisted state files when present. |
Use ReactiveObject, RaiseAndSetIfChanged, WhenAnyValue, ObservableAsPropertyHelper, and ReactiveCommand from ReactiveUI. In the lean package, use ReactiveUI.Primitives.RxVoid for command completion values.
using ReactiveUI;
using ReactiveUI.Primitives;
public sealed class DeviceViewModel : ReactiveObject, IDisposable
{
private readonly ObservableAsPropertyHelper<bool> _isCritical;
private string _name = "Pump A17";
private double _pressure;
public DeviceViewModel()
{
_isCritical = this.WhenAnyValue(x => x.Pressure)
.Select(static pressure => pressure > 56)
.ToProperty(this, static x => x.IsCritical);
Refresh = ReactiveCommand.CreateFromTask(RefreshAsync);
}
public string Name
{
get => _name;
set => this.RaiseAndSetIfChanged(ref _name, value);
}
public double Pressure
{
get => _pressure;
set => this.RaiseAndSetIfChanged(ref _pressure, value);
}
public bool IsCritical => _isCritical.Value;
public ReactiveCommand<RxVoid, RxVoid> Refresh { get; }
public void Dispose()
{
_isCritical.Dispose();
Refresh.Dispose();
}
private Task RefreshAsync()
{
Pressure = 42.5;
return Task.CompletedTask;
}
}The .Reactive package uses the same ReactiveUI concepts with System.Reactive.Unit.
using ReactiveUI.Reactive;
using System.Reactive;
public ReactiveCommand<Unit, Unit> Refresh { get; } =
ReactiveCommand.Create(() => Unit.Default);ReactivePage<TViewModel> is the recommended base for page-level views. For Uno XAML, create a non-generic base class and use that base in XAML.
using ReactiveUI;
using ReactiveUI.Uno;
public sealed class MainPageBase : ReactivePage<MainViewModel>
{
}
public sealed partial class MainPage : MainPageBase
{
public MainPage()
{
InitializeComponent();
ViewModel = new MainViewModel();
this.WhenActivated(disposables =>
{
disposables(this.OneWayBind(ViewModel, vm => vm.Title, view => view.TitleText.Text));
disposables(this.BindCommand(ViewModel, vm => vm.Refresh, view => view.RefreshButton));
});
}
}<views:MainPageBase
x:Class="MyApp.Views.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="using:MyApp.Views">
<StackPanel>
<TextBlock x:Name="TitleText" />
<Button x:Name="RefreshButton" Content="Refresh" />
</StackPanel>
</views:MainPageBase>ReactiveUserControl<TViewModel> gives reusable controls the same ViewModel, BindingRoot, and activation pattern.
using ReactiveUI;
using ReactiveUI.Uno;
public sealed class DeviceCardBase : ReactiveUserControl<DeviceViewModel>
{
}
public sealed partial class DeviceCard : DeviceCardBase
{
public DeviceCard()
{
InitializeComponent();
this.WhenActivated(disposables =>
{
disposables(this.OneWayBind(ViewModel, vm => vm.Name, view => view.NameText.Text));
disposables(this.OneWayBind(ViewModel, vm => vm.Pressure, view => view.ValueText.Text));
});
}
}RoutedViewHost displays the view for RoutingState.CurrentViewModel. Register views for routable view models, then bind the host to IScreen.Router.
using ReactiveUI;
using ReactiveUI.Builder;
using ReactiveUI.Primitives;
using ReactiveUI.Uno;
using Splat;
public sealed class ShellViewModel : ReactiveObject, IScreen
{
public RoutingState Router { get; } = new();
public ReactiveCommand<RxVoid, IRoutableViewModel> OpenDashboard { get; }
public ShellViewModel()
{
OpenDashboard = ReactiveCommand.CreateFromObservable(
() => Router.Navigate.Execute(new DashboardViewModel(this)));
}
}
_ = RxAppBuilder.CreateReactiveUIBuilder()
.WithUno(window)
.WithRegistration(mutable =>
{
mutable.Register(() => new DashboardView(), typeof(IViewFor<DashboardViewModel>));
})
.BuildApp();using ReactiveUI.Uno;
var host = new RoutedViewHost
{
Router = shellViewModel.Router,
DefaultContent = new TextBlock { Text = "Choose a route." }
};Use ViewContract or ViewContractObservable when the same view model has different views for different display modes.
var host = new RoutedViewHost
{
Router = shell.Router,
ViewContract = "Compact"
};ViewModelViewHost resolves and displays a view for a single object. It is useful in item templates and dashboards where tiles own their own view models.
using ReactiveUI.Uno;
var host = new ViewModelViewHost
{
ViewModel = selectedDevice,
DefaultContent = new TextBlock { Text = "No device selected." }
};You can override the view lookup with a specific locator.
host.ViewLocator = ReactiveUI.ViewLocator.Current;
host.ViewContract = "Detailed";AutoDataTemplateBindingHook is registered by WithUno(Window). When an ItemsControl binds ItemsSource and does not already have DisplayMemberPath, ItemTemplate, or ItemTemplateSelector, the hook assigns a template that hosts each item in ViewModelViewHost.
this.WhenActivated(disposables =>
{
disposables(this.OneWayBind(ViewModel, vm => vm.Devices, view => view.DeviceList.ItemsSource));
});var list = new ListView();
// No ItemTemplate is required when each item has an IViewFor<T> registration.
list.ItemsSource = viewModel.Devices;Register the view for the item view model.
mutable.Register(() => new DeviceCard(), typeof(IViewFor<DeviceViewModel>));ActivationForViewFetcher integrates Uno FrameworkElement loading, unloading, and hit-test visibility with ReactiveUI activation. Use WhenActivated in views and put subscriptions, bindings, and interaction handlers inside the activation block.
this.WhenActivated(disposables =>
{
disposables(ViewModel!.ConfirmAcknowledge.RegisterHandler(async interaction =>
{
var approved = await ShowAcknowledgeDialogAsync(interaction.Input);
interaction.SetOutput(approved);
}));
disposables(ViewModel.Refresh.Execute().Subscribe());
});DependencyObjectObservableForProperty lets ReactiveUI observe dependency properties when they have a backing DependencyProperty field or property named <PropertyName>Property.
this.WhenAnyValue(view => view.IsHitTestVisible)
.DistinctUntilChanged()
.Subscribe(isVisible => Debug.WriteLine($"Visible to hit testing: {isVisible}"));This is used internally by activation and normal ReactiveUI bindings. If a property is not a dependency property, the integration falls back to POCO observation.
BooleanToVisibilityTypeConverter is registered automatically. It maps true to Visibility.Visible and false to Visibility.Collapsed. Pass BooleanToVisibilityHint.Inverse to invert the result.
using ReactiveUI.Uno;
var converter = new BooleanToVisibilityTypeConverter();
if (converter.TryConvert(viewModel.HasNoResults, BooleanToVisibilityHint.Inverse, out var visibility))
{
ResultsPanel.Visibility = visibility;
}PlatformOperations.GetOrientation() returns the current display orientation where the platform can supply it. RoutedViewHost and ViewModelViewHost use this through ViewContractObservable to re-resolve views when the orientation changes.
var platform = Locator.Current.GetService<IPlatformOperations>();
var orientation = platform?.GetOrientation();
var host = new ViewModelViewHost
{
ViewModel = viewModel,
ViewContract = orientation
};WithUno(Window) adds ReactiveUIUnoDictionary after the startup window activates. Add it manually only when you intentionally bypass WithUno(Window).
Application.Current.Resources.MergedDictionaries.Add(new ReactiveUIUnoDictionary());The dictionary references ms-appx:///ReactiveUI.Uno/Resources/ReactiveUI.Uno.xaml in the lean package and ms-appx:///ReactiveUI.Uno.Reactive/Resources/ReactiveUI.Uno.Reactive.xaml in the .Reactive package.
Use the scheduler registered by WithUno(Window) through ReactiveUI scheduler APIs. In the lean package, the scheduler is an ISequencer; in the .Reactive package, it is Rx-compatible.
using ReactiveUI.Primitives.Concurrency;
using ReactiveUI.Uno;
ISequencer ui = UnoReactiveUIBuilderExtensions.UnoMainThreadScheduler;
var subscription = this.WhenAnyValue(view => view.ViewModel!.StatusMessage)
.ObserveOn(ui)
.Subscribe(message => StatusText.Text = message);On Windows, the concrete scheduler uses DispatcherQueue.
#if WINDOWS
var scheduler = UnoWinUIDispatcherScheduler.Current;
_ = scheduler.SchedulePeriodic(0, TimeSpan.FromSeconds(1), count =>
{
StatusText.Text = $"Tick {count + 1}";
return count + 1;
});
#endifOn non-Windows Uno targets, the concrete scheduler uses CoreDispatcher.
#if !WINDOWS
var scheduler = UnoDispatcherScheduler.Current;
_ = scheduler.SchedulePeriodic(0, TimeSpan.FromSeconds(1), count =>
{
StatusText.Text = $"Tick {count + 1}";
return count + 1;
});
#endifThe .Reactive package supports the System.Reactive scheduler shape.
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using ReactiveUI.Uno.Reactive;
IScheduler scheduler =
#if WINDOWS
UnoWinUIDispatcherScheduler.Current;
#else
UnoDispatcherScheduler.Current;
#endif
var subscription = Observable.Interval(TimeSpan.FromSeconds(1), scheduler)
.Subscribe(_ => ClockText.Text = DateTimeOffset.Now.ToString("T", CultureInfo.CurrentCulture));WinRTAppDataDriver is registered as ISuspensionDriver by WithUno(Window). Prefer the JSON JsonTypeInfo<T> overloads for AOT and trimming because they do not carry the DataContract serializer attributes.
using System.Text.Json.Serialization;
using ReactiveUI.Primitives;
using ReactiveUI.Uno;
public sealed record AppState(string CurrentDevice, bool IsStreaming);
[JsonSerializable(typeof(AppState))]
public sealed partial class AppStateJsonContext : JsonSerializerContext;
public sealed class StateService
{
private readonly WinRTAppDataDriver _driver = new();
public IObservable<RxVoid> Save(AppState state) =>
_driver.SaveState(state, AppStateJsonContext.Default.AppState);
public IObservable<AppState?> Load() =>
_driver.LoadState(AppStateJsonContext.Default.AppState);
public IObservable<RxVoid> Clear() =>
_driver.InvalidateState();
}The .Reactive variant returns System.Reactive.Unit for save and invalidate operations.
using System.Reactive;
using ReactiveUI.Uno.Reactive;
IObservable<Unit> saved = new WinRTAppDataDriver()
.SaveState(state, AppStateJsonContext.Default.AppState);For existing DataContract XML state, reference ReactiveUI.Uno.Unsafe or ReactiveUI.Uno.Unsafe.Reactive to use the legacy driver.
IObservable<object?> loaded = new WinRTAppDataDriverUnsafe().LoadState();Use them only when DataContract serialization is acceptable for your platform and deployment mode.
Choose ReactiveUI.Uno when:
- You are building an app with ReactiveUI.Primitives.
- You want
ReactiveUI.Primitivesscheduler and disposable types. - You do not want to expose
System.Reactive.UnitorSystem.Reactive.Concurrency.ISchedulerin your app APIs. - You target browser WebAssembly and want the Primitives Blazor scheduler without adding
System.Reactive.Wasm.
Choose ReactiveUI.Uno.Reactive when:
- You already have Rx pipelines based on
System.Reactive.Linq.Observable. - Your public APIs already expose
System.Reactive.UnitorIScheduler. - You want a migration path with the same Uno controls and services while keeping existing Rx call sites.
- You are demonstrating or consuming
ReactiveUI.Reactivefeatures.
The source-compatible migration pattern is:
#if REACTIVE_SHIM
namespace MyApp.Uno.Reactive;
#else
namespace MyApp.Uno;
#endifBind neutral names in project files or local aliases when sharing code:
#if REACTIVE_SHIM
using RxUnit = System.Reactive.Unit;
#else
using RxUnit = ReactiveUI.Primitives.RxVoid;
#endifExamples live under src/Examples and are not included in package coverage.
| Example | Package | What it demonstrates |
|---|---|---|
ReactiveUI.Uno.Reactive.IoTDashboard |
ReactiveUI.Uno.Reactive |
Rx-compatible package usage, live local telemetry, Observable.Interval, Publish().RefCount(), ReactiveObject, ReactiveCommand, ObservableAsPropertyHelper, Interaction, WhenActivated, command binding, one-way and two-way binding, main-thread observation, and disposal of subscriptions and commands. |
ReactiveUI.Uno.Reactive.TaskBoard |
ReactiveUI.Uno.Reactive |
A team sprint board over an in-memory backend that answers slowly, rejects stale edits and publishes teammate changes. A ReactiveUI Primitives signal and observable collections keep four bound columns filtered and sorted. The sample shows optimistic moves that roll back or ask the person to resolve a conflict through an Interaction, ReactiveCommand with cancellation, ObservableAsPropertyHelper, WhenActivated with Bind, OneWayBind, BindCommand and BindInteraction, and a seed file read with a source-generated JSON context. |
ReactiveUI.Uno.Reactive.OnboardingWizard |
ReactiveUI.Uno.Reactive |
A five-step workspace sign-up wizard. RoutingState with RoutedViewHost, view contracts that switch every step between a standard and a compact layout, Primitives signals for field validation (including cross-step and asynchronous rules), debounced and cancelled availability lookups with Switch, a resume prompt through an Interaction, and progress saved with WinRTAppDataDriver and a source-generated JSON context. Passwords and card details are never saved. |
The IoT dashboard shows the .Reactive package in a live-data scenario:
_telemetrySubscription = _telemetry.Readings
.Where(_ => IsStreaming)
.ObserveOn(ReactiveUI.Reactive.RxSchedulers.MainThreadScheduler)
.Subscribe(ApplyReading, exception => StatusMessage = exception.Message);It also demonstrates an interaction-backed command:
AcknowledgeAlert = ReactiveCommand.CreateFromObservable(
AcknowledgeAlertObservable,
this.WhenAnyValue(x => x.HasActiveAlert));
private IObservable<Unit> AcknowledgeAlertObservable()
{
var alert = Alerts.FirstOrDefault(static item => !item.IsAcknowledged);
return alert is null
? Observable.Return(Unit.Default)
: ConfirmAcknowledge.Handle(alert.Event)
.Select(approved => CompleteAcknowledge(alert, approved));
}This repository uses src/ReactiveUI.Uno.slnx and Microsoft Testing Platform with TUnit. Run commands from src unless the command includes src/ paths.
cd src
dotnet workload restore
dotnet restore ReactiveUI.Uno.slnxOn Windows, use Visual Studio MSBuild for the full Release solution build:
& 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe' .\ReactiveUI.Uno.slnx /restore /p:Configuration=Release /warnaserror /m /v:minimalRun the focused TUnit/MTP coverage checks for the two package projects:
dotnet test --project .\tests\ReactiveUI.Uno.Tests\ReactiveUI.Uno.Tests.csproj -c Release --coverage --coverage-output-format cobertura -- --report-trx
dotnet test --project .\tests\ReactiveUI.Uno.Reactive.Tests\ReactiveUI.Uno.Reactive.Tests.csproj -c Release --coverage --coverage-output-format cobertura -- --report-trxThe coverage configuration includes ReactiveUI.Uno and ReactiveUI.Uno.Reactive; examples are intentionally excluded.
We want to thank the following contributors and libraries that help make ReactiveUI.Uno possible:
- Uno Platform: Uno Platform - The underlying cross-platform UI framework.
- ReactiveUI: ReactiveUI - The MVVM framework.
- ReactiveUI.Primitives: ReactiveUI.Primitives - The lean observable, disposable, scheduler, and signal foundation used by
ReactiveUI.Uno. - ReactiveUI.Reactive: ReactiveUI.Reactive - The System.Reactive-compatible ReactiveUI package used by
ReactiveUI.Uno.Reactive. - Splat: Splat - Cross-platform service location and utilities.
JetBrains gives ReactiveUI's maintainers licences for its tools through its open source support programme. Anthropic supports them with Claude through Claude for Open Source. OpenAI supports them with Codex through Codex for Open Source. Snyk gives the maintainers access to security tools through its Secure Developer Program.
See our sponsors for more information. JetBrains, Claude, Anthropic, OpenAI and Codex names and logos are trademarks of their respective owners. Snyk and the Snyk logo are trademarks of Snyk Ltd.
Glenn Watson Melbourne, Australia |
Chris Pulman United Kingdom |
Rodney Littles II Texas, USA |
Colt Bauman South Korea |
ReactiveUI.Uno is part of ReactiveUI and is released under the MIT license. We welcome contributions of every size, from bug reports and documentation to features and tests.
- Questions: ask in GitHub Discussions.
- Bugs and feature requests: open a GitHub issue.
- Larger changes: open an issue or discussion first, so we can agree on the approach before you start.
- Contributor guide: read reactiveui.net/contribute for building and testing and pull requests.
Every pull request must meet these standards. The build checks most of them.
- Follow the ReactiveUI C# style guide.
- The repository's
.editorconfigand the StyleSharp, PerformanceSharp and SecuritySharp analyzers run on every build. Fix each finding in the code. Do not suppress it or relax the.editorconfig. - Add tests for every bug fix and new feature.
- Document public APIs with XML documentation comments.
- Write commit messages in the Conventional Commits format.
- Follow the Code of Conduct.
- Sponsor the maintainers on GitHub Sponsors: reactivemarbles, glennawatson and chrispulman.
- Ask your employer to support open source, for example with the balanced employee IP agreement.
ReactiveUI.Uno is licensed under the MIT License.



