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

ReactiveUI vs. ICollectionView

I have a .Net 4.5 app that is moving to WPF-based RxUI (kept up to date, 6.0.3 as of this writing). I have a text field that should function as a filter field with the fairly common throttle etc. stuff that was part of the reason for going reactive…
Rune Jacobsen
  • 9,907
  • 11
  • 58
  • 75
5
votes
1 answer

What is the difference between ReactiveUI's BindTo and ToProperty methods?

ToProperty() appears to be used for read-only properties that are based on observables but when would I want to use BindTo()?
kthompson
  • 803
  • 6
  • 16
5
votes
1 answer

Howto let ReactiveCommands observe their own IsExecuting observable

I have several commands in my ViewModel and I want to have the CanExecute of each button to be bound to an observable busy which is defined as none of the buttons is currently executing. The following is what I came up with, but obviously it runs…
Wouter
  • 2,170
  • 1
  • 28
  • 58
5
votes
1 answer

Structuring tests (or property) for this reactive ui scenario

I'm not sure the correct way to structure this test. I've got a view model here: public class ViewModel { public ReactiveCommand PerformSearchCommand { get; private set; } private readonly ObservableAsPropertyHelper _IsBusy; public bool…
Clyde
  • 8,017
  • 11
  • 56
  • 87
5
votes
1 answer

Reactive Extensions / Reactive UI Observe collection, group it, and display it

I have a specific data set that requires storing data that is both grouped and ordered. Each row then needs to be able to recalculate it's sums whenever any individual item changes. This is the basic look of the end result: The object structure is…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
5
votes
3 answers

Cannot find all types required by the async modifier

I get the following two compiler errors (Resharper 7.0.1 reports no errors): Predefined type 'System.Runtime.CompilerServices.IAsyncStateMachine' is not defined or imported Cannot find all types required by the 'async' modifier. Are you…
5
votes
3 answers

Unit test IObservable with ObserveOnDispatcher

I need to test piece of code var watcher = new FakeIFileSystemWatcher(); watcher.FilesToBeImported .ObserveOnDispatcher() .Subscribe(list.Add); so I created this little unit test but I can't make it pass…
jitidea
  • 294
  • 1
  • 13
4
votes
2 answers

In AvaloniaUI, how to display an image from a web URL?

I'm developing an Avalonia App using ReactiveUI and MVVM. I want to display an image from a web URL, what would be the best course of action to achieve this ? I have setup the following Binding : this.OneWayBind( …
Ombrelin
  • 547
  • 1
  • 8
  • 27
4
votes
2 answers

How do you update the CanExecute value after the ReactiveCommand has been declared

I am using ReactiveUI with AvaloniaUI and have a ViewModel with several ReactiveCommands namely Scan, Load, and Run. Scan is invoked when an Observable is updated (when I receive a barcode from a scanner). Load is triggered from within the…
hackintosh
  • 105
  • 8
4
votes
1 answer

ReactiveUI observing Collection with WhenAny and assigning boolean PropertyHelper

I have an ObservableCollection containing strings that I want to observe. When there is a change in the first index I want to update a ObservableAsPropertyHelper boolean variable and set it to true if the string at that index is not null and not…
TomMaier
  • 131
  • 1
  • 2
  • 9
4
votes
1 answer

Binding to DataGridColumn using ReactiveUI C# based Bindings

I am learning to use ReactiveUI in WPF. I have an application that has an IObservableCollection which I am binding to a DataGrid.
Mike Bynum
  • 763
  • 2
  • 10
  • 22
4
votes
1 answer

Updating Xamarin Forms causes System.IO.FileNotFoundException - ReactiveUI.Winforms when using ReactiveUI

After updating the Xamarin Forms package in my project to 3.4.0.1009999 I have started getting a System.IO.FileNotFoundException when using WhenAnyValue from the ReactiveUI package. The API instructions only say to include ReactiveUI,…
Sev
  • 883
  • 1
  • 14
  • 34
4
votes
0 answers

How to handle exceptions globally in ReactiveUI 9.3.5?

I recently upgraded to ReactiveUI 9.3.5, the documentation suggests to handle errors globally via RxApp.DefaultExceptionHandler: // set at startup RxApp.DefaultExceptionHandler = new GlobalErrorHandler(); public class GlobalErrorHandler :…
thumbmunkeys
  • 20,606
  • 8
  • 62
  • 110
4
votes
1 answer

Avoiding binding errors when doing Xaml binding with ReactiveUI

I like ReactiveUI's code-based binding mechanisms. However, there are times when you need to use XAML bindings. In these cases, the DataContext needs to be set up properly between the View and ViewModel. I’ve been doing this in the View…
4
votes
2 answers

DynamicData: Sorting of bound list reloads on every change

I'm using the excellent dynamicdata for bridging my data layer to my UI (using RxUI). The dynamic data part boils down to the following typical piece of code. There is a SourceCache of ItemViewModels ("_sourceCache") which gets bound to a…