Questions tagged [reactiveui]

ReactiveUI is a MVVM framework that integrates with the Reactive Extensions

ReactiveUI is a framework for the .Net platform built on top of for any mobile or desktop platform.

Supports , , , , , and .

1093 questions
10
votes
3 answers

Does ReactiveUI leak subscriptions?

I've looked at the examples of ReactiveUi from the blogs and I am left wondering if ReactiveUI has some sort of subscription management facility underneath or are the examples ignoring the fact that they might leak subscriptions? Any time I call a…
Damian
  • 2,709
  • 2
  • 29
  • 40
10
votes
1 answer

How do I make a direct call to ReactiveCommand.Execute() in ReactiveUI 7 correct?

I'm trying to convert my project from ReactiveUI 6.5 to version 7. In the old version I called // var command = ReactiveCommand.Create...; // ... if(command.CanExecute(null)) command.Execute(null); in order to execute a command from my code…
Mirko
  • 743
  • 1
  • 7
  • 18
10
votes
2 answers

Can't add ReactiveUI to a NUnit Test Project

I am currently trying to setup Unit to unittest our ReactiveUI ViewModels using NUnit and Moq. However I can't get it working. I can't add ReactiveUI to a NUnit test library (Unable to resolve dependency 'Rx-Xaml (≥ 2.2.5)'), and I can't add Moq to…
MichielDeRouter
  • 426
  • 4
  • 21
10
votes
2 answers

`` doesn't databind in designtime

I have a view model that inherits from ReactiveObject from reactiveui.net, something like public sealed class TestViewModel : ReactiveObject { public sealed class NestedViewModel { private string _property; public string…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
10
votes
2 answers

Is there a pattern for subscribing to hierarchical property changes with Reactive UI?

Suppose I have the following view models: public class AddressViewModel : ReactiveObject { private string line; public string Line { get { return this.line; } set { this.RaiseAndSetIfChanged(x => x.Line, ref this.line,…
Kent Boogaart
  • 175,602
  • 35
  • 392
  • 393
9
votes
1 answer

"Couldn't find an IPlatformOperations. This should never happen, your dependency resolver is broken" on WPF

I'm writing a program that is container for other, smaller programs. It loads it's modules via Assembly.Load, finds types implementing IModule and makes instances of them. In WPF MainWindow I have a RoutedViewHost, which will display everything. In…
Krzysztof Skowronek
  • 2,796
  • 1
  • 13
  • 29
9
votes
1 answer

Does ViewModelViewHost work at design time for WPF? (ReactiveUI)

I cannot get a ViewModelViewHost to work at design time in Visual Studio. Is this by design or have I set something up wrong? In my view's ctor I have: Locator.CurrentMutable.InitializeSplat(); Locator.CurrentMutable.InitializeReactiveUI(); …
Jack Ukleja
  • 13,061
  • 11
  • 72
  • 113
9
votes
1 answer

Why does ReactiveUI have a dependency on an old version of System.Reactive?

I have a multi-project Visual Studio solution targeting .Net 4.5.2 . In one of the projects (a WPF application), I've used nuget to add the System.Reactive version 3.0.1000.0 package followed by the ReactiveUI 7.0.0.0 package. In another project…
NeilMacMullen
  • 3,339
  • 2
  • 20
  • 22
9
votes
1 answer

How to use ReactiveUI with a Hierarchical Data Source (Tree view)

I've figured out a way to bind user controls inside a tree view dynamically with ReactiveUI. But ... The top level binding to the HierachicalDataSource is in the XAML not the code behind, and I need to set the ItemsSource directly and not use…
CCondron
  • 1,926
  • 17
  • 27
9
votes
2 answers

Getting prior value on change of property using ReactiveUI in WPF MVVM

I'm using Reactive UI for an MVVM WPF project, and when a property changes I need to know: The value prior to change The new value (i.e. the change) I have a viewmodel (Deriving from ReactiveObject) with a property declared on it such: private…
Clint
  • 6,133
  • 2
  • 27
  • 48
9
votes
2 answers

Binding to ReactiveCommand.IsExecuting

I'm would like to know the recommended way to bind to ReactiveCommand's IsExecuting. The problem is the initial command execution (started at the end of the constructor) is not updating the WPF control using IsLoading as a binding, although…
8
votes
1 answer

Generic ReactiveUserControl "cannot be edited in Design view"

I changed my UserControl to be a ReactiveUserControl and now I can't view the Design View. Is there anything I can do to get the designer to work with ReactiveUserControl?
8
votes
1 answer

How to encapsulate the creation of long reactive chains of observables

Currently I have the following block of Rx/ReactiveUI code: this.WhenAnyValue(x => x.Listras) .Where(item => item != null) .Throttle(TimeSpan.FromMilliseconds(millis)) …
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
8
votes
1 answer

InvokeCommand arguments with ReactiveUI 7

I'm switching to the latest version of ReactiveUI (7.0) and I'm running into some incompatibilities and would like to know the suggested way to handle this: ReactiveUI 6.x Texts.Events().MouseUp .InvokeCommand(ViewModel, x =>…
Niek Jannink
  • 1,056
  • 2
  • 12
  • 24
8
votes
2 answers

WhenActivated is called twice when used in Views and ViewModels hosted in ViewModelViewHost control

My app uses views, which implement IViewFor interface. The views are registered with the dependency resolver in AppBootstrapper. The app displays the views using ViewModelViewHost control by assigning a corresponding view model to control's…
dimiboi
  • 163
  • 1
  • 7
1
2
3
72 73