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
8
votes
0 answers

ReactiveUI 6.5 - When ReactiveObject is inherited in class I get a build error Splat.dll could not be found

I'm using Visual Studio 13 Community. Created a simple WinForms project, created an empty class and inherited ReactiveObject. I've installed reactivui-winforms 6.5.0 using NuGet. I can see ver 1.0.0 was installed and Splat in references. The…
rreynolds
  • 81
  • 3
8
votes
1 answer

What is the best way to call async methods using reactiveui + throttle

I'm trying to solve my first task using Rx + ReactiveUI and am looking for best practices to solve a task, showing a input box that will show up suggestions as soon as the user starts typing. According to the following code sample, what is the best…
road242
  • 2,492
  • 22
  • 30
8
votes
2 answers

ReactiveUI How to use WhenAnyObservable properly

I am attempting to use WhenAnyObservable for the first time. When a ReactiveList Count == 0 and a tipText length is > 0 then I want to set a local value to true in the subscribe, or the opposite. this.ViewModel.WhenAnyObservable( …
Glenn Watson
  • 2,758
  • 1
  • 20
  • 30
8
votes
1 answer

ReactiveUI - Confused about Routing

I'm in the process of comparing MvvmCross with ReactiveUI for a major pharma project on Win Store, WP8, iOS, Droid. We've already selected Xamarin. I'm totally new to ReactiveUI. I really like what I see in principle, and I think Paul is a genius.…
Steve Macdonald
  • 1,745
  • 2
  • 20
  • 34
8
votes
1 answer

Does anyone know a good example of ReactiveCommand for ReactiveUI?

I'm inexperienced, especially at MVVM, but trying to use ReactiveUI, and I'm not understanding the examples that I'm finding that demonstrate ReactiveCommand. I have used ICommand / DelegateCommand one time before, but this is different, and I'm…
Rich Hopkins
  • 1,861
  • 15
  • 29
7
votes
2 answers

Is there a more elegant way to merge observables when return type is unimportant?

I have a ReactiveUI-like view model. It has several properties of different types which fire NotifyPropertyChanged events and I want to subscribe a method that will be called when any is fired, but I am not interested in actual values. My current…
Valentin Kuzub
  • 11,703
  • 7
  • 56
  • 93
7
votes
1 answer

Create derrived collection of ViewModels with DynamicData which updates existing item instead of creating a new one on source item change

For example, I have an observable of some collections which indicates statuses of objects (I get it periodically through REST API). class User { int Id { get; } string Name { get; } string Status { get; } } IObservable source; I…
Paboka
  • 422
  • 1
  • 5
  • 15
7
votes
1 answer

ReactiveUI WPF - The calling thread cannot access this object because a different thread owns it

Thanks to @GlennWatson for pointing out that I needed to add a reference to the Nuget Package ReactiveUI.WPF, in addition to the ReactiveUI package. I have a ReactiveObject view model, within which I would like to use an OpenFileDialog to set the…
7
votes
1 answer

ReactiveCommand.CreateFromTask vs ReactiveCommand.CreateFromObservable

I've seen some discussion going on around using Observables instead of tasks with async/await. I currently make use of CreateFromTask almost exclusively. I've been trying to understand the reasoning behind using CreateFromObservable instead of…
7
votes
2 answers

Using ReactiveUI's BindTo() to update a XAML property generates a warning

I'm trying to update a property of an element in the XAML of a view: this.WhenAnyValue(x => x.ViewModel.IsEnabled).BindTo(this, x => x.MyButton.IsEnabled); This works as expected, however, it generates a warning at…
reijerh
  • 779
  • 1
  • 7
  • 16
7
votes
0 answers

ReactiveUI memory usage

I have recently refactored an MVVM application to use ReactiveUI. Basically, I have changed a lot of the code in the ViewModels to use ReactiveLists, derived lists and ObservableAsPropertyHelpers. Once I was done, I noticed that the memory usage of…
Damien Chaib
  • 401
  • 3
  • 14
6
votes
3 answers

How to Separate IObservable and IObserver

Update: check out the example at the bottom I need to message between classes. The publisher will loop indefinitely, call some method to get data, and then pass the result of that call into OnNext. There can be many subscribers, but there should…
6
votes
2 answers

Xamarin Forms : can Prism and ReactiveUI be used in the same project ? If so, is it a good idea?

I have been working on a mobile application for one week, for personal education and enhancement. I have some experience with WPF and MVVM, I have no experience with mobile development. The idea is to make a cross platform application, while testing…
David Khuu
  • 937
  • 3
  • 10
  • 21
6
votes
1 answer

ReactiveUI 9: binding lists to a WPF view

In ReactiveUI 9, ReactiveList has been deprecated in favor of DynamicData (Blog post). I am currently in the process of trying to update my code to use SourceList. I was able to get the ViewModel to work, however it seems that using SourceList as a…
Wouter
  • 538
  • 6
  • 15
6
votes
1 answer

ReactiveUI ObservableAsPropertyHelper vs. normal backing variable

I'm struggling with ReactiveUI's learning curve so this question might be naive. Please help me understand the difference between: ObservableAsPropertyHelper _input public string Input {get {return _input.Value;}} and a normal backing…
JPtheK9
  • 275
  • 2
  • 12
1 2
3
72 73