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
3
votes
1 answer

WPF - ReactiveUI InvokeCommand not working

I'm trying to learn ReactiveUI so I'm making example app, but I'm having problem with InvokeCommand. Basically every time SearchPhrase property is changed my ShowSearchPhraseCommand should be invoked. Here is my View:
Michal
  • 803
  • 2
  • 9
  • 26
3
votes
1 answer

Bind TextBox with ReactiveUI and maintain Currency Format

Is there a way to bind a decimal to a WPF TextBox and specify a StringFormat (in this case Currency)? I've tried doing this with a property in the View Model, but editing in the TextBox becomes a little quirky as it tries to apply the formatting…
Mitkins
  • 4,031
  • 3
  • 40
  • 77
3
votes
0 answers

ReactiveUI's ReactiveCommand Exception handling

I'm trying to handle Exception thrown inside ReactiveUI (7.4.0.0)'s commands, but everything seems to be swllowed somehwere inside and never comes out but in Visual Studio's Output window. My test code is this: class Program { static void…
Sergio
  • 2,078
  • 3
  • 24
  • 41
3
votes
1 answer

How to execute WhenAnyValue delegate asynchronously?

I have this code generating a "Calculated" or "Output" property every time another property changes. The derived property is generated correctly, but since CreateBlurImage is a bit long-running, the UI gets frozen as it runs. What would be the…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
3
votes
1 answer

ReactiveUI 7.0 interaction handler never called

So, I am learning to use ReactiveUI 7.4 with winforms and I thing I got a pretty good experience with it until I tried to include Interactions for displaying an error popup : ViewModel public class ViewModel : ReactiveObject { [...] public…
MrLuje
  • 637
  • 6
  • 15
3
votes
0 answers

Unable to use ReactiveUI

I've developed a UWP and would like to use ReactiveUI but it introduces incompatibility when I install the 7.4.0 Nuget package. I target Universal Windows Anniversary edition and get the following when I build: Error CS0433 The type 'Unit' exists…
3
votes
0 answers

ReactiveUI 6.5 ReactiveList.ItemChanged not triggering in UnitTest

I have a ReactiveList with view models with a 'Selected' property. When I try to set this property from a unit-test, the subscription on ReactiveList.ItemChanged is not invoked. It works, however, when running the application and triggering the…
atlemann
  • 173
  • 1
  • 7
3
votes
1 answer

Recommended way to test Scheduler/Throttle

I'm in the process of rewriting one little WPF-App I wrote to make use of ReactiveUI, to get a feeling about the library. I really like it so far! Now I've stumbled upon the Throttle method and want to use it when applying a filter to a…
Markus A.
  • 41
  • 4
3
votes
1 answer

Passing EventArgs to ReactiveCommand in ReactiveUI Windows Forms

I'm using ReactiveUI with Windows Forms and c#. I am not sure how to access the EventArgs from within a ReactiveCommand. My view: this.BindCommand(ViewModel, vm => vm.FileDragDropped, v => v.listViewFiles,…
Michael C.
  • 93
  • 7
3
votes
1 answer

Cancelling and re-executing ReactiveCommand

I'm struggling with a ReactiveUI use case that I feel is so simple there must be "out-of-the-box" support for it. But I cannot find it. The scenario is a basic search interface with these features: A search string TextBox where the user enters the…
Fredrik Hall
  • 308
  • 3
  • 5
3
votes
2 answers

ReactiveUI - Cancel a command from another - Unit Test of code from documentation fails

I take the code from ReactiveUi website documentation and try to unit test it but it fails. It is about invoking a command to cancel another one. Below is the class to test. public class SomeViewModel : ReactiveObject { public…
François
  • 3,164
  • 25
  • 58
3
votes
0 answers

ReactiveUI Xamarin-Android - ReactiveListAdapter performance issue

I've recently started to use ReactiveUI for my Xamarin-Android and -iOS projects. It works pretty well regarding to separation of concerns etc and I like it really much but unfortunately I've discovered a performance issue when using the…
tobi_b
  • 1,218
  • 1
  • 12
  • 21
3
votes
1 answer

How to display new modal form in ReactiveUI 6.5

I am one of a team of developers currently maintaining a large suite of applications written using the WinForms UI. In order to improve testability of our applications, we are wanting to move to an MVVM style, to separate the UI from the business…
idarroch
  • 33
  • 3
3
votes
1 answer

Reactive UI and Two Way Binding

I think I'm missing something with how bindings and reactive ui work together. Here's an example. I have a ToggleSwitch which is bound two way to an observable property in my View Model: When…
Justin Horst
  • 201
  • 1
  • 9
3
votes
1 answer

ReactiveUI: Why do I have to specify the scheduler explicitly in "...Throttle..."when using the TestScheduler

I'm new to ReactiveUI. I have the following simple setup: a path to a csv can be specified and the containing datapoints will be displayed to the user (using oxyplot). Now I'm trying to test the following subscription: public GraphViewModel(IScreen…