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

ReactiveUI: Return value from a custom dialog

I have a window that uses a ReactiveUI Interaction to open a second window as a modal dialog, then return data from a ListBox in the second window. The problem is that when .ShowDialog() completes, the ViewModel's SelectedItem always evaluates to…
Freddy The Horse
  • 335
  • 2
  • 12
6
votes
2 answers

ReactiveUI - Model object with many related properties

I have a WPF MVVM application. My model objects are POCOs that I have full control over. Some properties in these objects have a relationship between them. For example: let's say that I have public class Model { public…
samirem
  • 125
  • 2
  • 9
6
votes
1 answer

iOS launch error when referencing ReactiveUI 7.4

I have a Xamarin Forms project with a .Net Standard 1.4 core library which holds all the code. I have a reference to ReactiveUI 7.4 in both the core and iOS projects. But when I compile and run on an iOS emulator, I get the following error when the…
Maximus
  • 1,441
  • 14
  • 38
6
votes
1 answer

ReactiveUI: How to pass a parameter to ReactiveCommand.CreateFromTask correctly

I want to pass a parameter from my View to my ViewModel when a ReactiveCommand is executed that is bound to a Control. The parameter should be of type IJcUser So I define the Command like this: public ReactiveCommand
Thomas
  • 8,397
  • 7
  • 29
  • 39
6
votes
1 answer

ReactiveTabbedPage Data Binding

I have been using ReactiveUI for a while with Xamarin Forms, but I've hit a brick wall when trying to use a ReactiveTabbedPage. I can't figure out how the ViewModel will get bound to the ReactiveContentPage's that are the children of the…
6
votes
3 answers

How do I implement IActivationForViewFetcher for a child UserControl?

I've just added ReactiveUI to an existing code base. Of course, for the first control I tried it with I hit a snag. I'm using it with a UserControl embedded in a TabControl. The code looks something like this: public partial class TabPageControl :…
Mitkins
  • 4,031
  • 3
  • 40
  • 77
6
votes
2 answers

ReactiveUI - Should I use {Binding } or this.Bind(...)?

When using ReactiveUI, one can set the bindings in xaml ... or in code behind this.Bind(ViewModel, vm.SomeProperty, v => v.SomeProperty.Text); There seem to be certain circumstances…
6
votes
2 answers

ReactiveUI, WPF and Validation

I've seen that ReactiveUI had validation features in the past. Currently, with version 6.5, I cannot find anything related to it. Do you know if there's a more or less official way to deal with validation tasks in WPF using ReactiveUI?
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
6
votes
2 answers

Showing a Confirmation on window close in a reactive way

I have an observable that I use for displaying a confirmation dialog, roughly of signature: IObservable ShowDialog(string title, string message); This shows the user the dialog, with a yes / no button combo. In my main window, I'm…
Clint
  • 6,133
  • 2
  • 27
  • 48
6
votes
3 answers

The difference between Rx Throttle(...).ObserveOn(scheduler) and Throttle(..., scheduler)

I have the following code: IDisposable subscription = myObservable.Throttle(TimeSpan.FromMilliseconds(50), RxApp.MainThreadScheduler) .Subscribe(_ => UpdateUi()); As expected, UpdateUi() will always execute on…
larsmoa
  • 12,604
  • 8
  • 62
  • 85
6
votes
2 answers

Binding ReactiveList to ListView in Xamarin Forms

I feel like I am doing this the right way, but am unsure. I am loading objects into a ReactiveList in my ViewModel asynchronously. Through Xamarin Forms, I have bound the List to the ItemSource property of a ListView in Xamarin Forms. I also have a…
kmc059000
  • 2,937
  • 1
  • 23
  • 27
6
votes
1 answer

How to bind ReactiveList to WPF ListBox or ListView using code-behind?

I have a problem to display the contents of a ReactiveList in a ListBoxcontrol in my view. When I try to bind it via code-behind bindings (using this.OneWayBind(...)) the list stays empty. I am using the latest ReactiveUI version (6.1.0). If I…
Mirko
  • 743
  • 1
  • 7
  • 18
6
votes
1 answer

Bind data inside ListBox using code-behind in ReactiveUI

I have WPF listbox: I like the ability…
Zelid
  • 6,905
  • 11
  • 52
  • 76
6
votes
2 answers

is there a way to subscribe to all hierachical property changes with Reactive UI?

Referring to question: (Is there a pattern for subscribing to hierarchical property changes with Reactive UI?) I currently have a child reactiveobject in my parent reactiveobject. public class Child : ReactiveObject { private string propertyX …
JugheadNY
  • 61
  • 3
6
votes
1 answer

ReactiveUI ObservableAsPropertyHelper / Reactive Extensions Memory Leak?

I noticed that in my .NET 3.5 application, which uses ReactiveUI, I have a significant memory leak that seems to originate in ObservableAsPropertyHelper. I created a test project to demonstrate it here. It seems that every change notification…
Udi Bar-On
  • 791
  • 1
  • 7
  • 20