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
2 answers

ReactiveCommand pass Command Parameter

I want to use command to realize the KeyDown Event in textbox, I wnat to let the command can recognize which key input such as KeyEventArgs do in KeyDown Event and do some other things, So I want to pass command parameter into ReactiveCommand (just…
yu yang Jian
  • 6,680
  • 7
  • 55
  • 80
3
votes
3 answers

How do I implement a Countdown Timer Using ReactiveUI?

I'm new to the world of reactive and I'm still trying to learn. To practice, I decided to write a very simple WPF countdown timer application. Basically, this is what I'm trying to do: Have a TextBlock that displays the current remaining…
ASanch
  • 10,233
  • 46
  • 32
3
votes
3 answers

How to make the transition from "traditional" to reactive MVVM

I want to make a transition to a reactive view model / model. I've used 3 scenarios so far: "ValueA": The model value is only accessed from one view model at a time and the value is only changed through the view model => simple property in model,…
Onur
  • 5,017
  • 5
  • 38
  • 54
3
votes
1 answer

Using Prism v5 with Reactive UI

Just wondering if any has successfully managed to make use of PRISM v5 composition features like Regions, and View-Based navigation? These features, seem complementary to ReactiveUI in their scope but I am wondering if their any any gotchas one…
underwater
  • 191
  • 1
  • 11
3
votes
1 answer

Is WhenActivated supposed to be called on deactivation?

I have implemented ISupportsActivation and added calls to this.WhenActivated for both the view model and the view. It seems to me that the delegate gets called twice. Both for activation and deactivation. Is this by design or am I doing something…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
3
votes
1 answer

How to catch exception from ReactiveCommand?

I know how to handle exceptions thrown by async tasks called by ReactiveCommand but how do I handle an exception that is thrown before the task is returned? In the following example ThrowAndHandle command will throw an exception from the async…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
3
votes
1 answer

Proper way to provide feedback from long-running command using ReactiveUI in WPF

I have a C#/WPF/.NET 4.5 app that users will use to open certain files. The app will then go through a lot of motions - read the file, pass it trough a number of plugins and parsers. The files are potentially fairly big (>100MB) so this could take a…
Rune Jacobsen
  • 9,907
  • 11
  • 58
  • 75
3
votes
0 answers

WPF Datagrid UI shows rows only after window resize

I ran into a very weird scenario while updating the datagrid contents based on dropdown selection I have a combobox and a datagrid and based on the selected combobox item the grids contents will be displayed dynamically. Problem: Initially the…
navule
  • 3,212
  • 2
  • 36
  • 54
3
votes
1 answer

Single ObservableAsPropertyHelper with multiple ReactiveCommand IsExecuting

From the sample here, I'm trying to change the _SpinnerVisibility to multiple reactivecommand objects. So below snippet shows what I did.. public ReactiveCommand ExecuteSearch { get; protected set; } public ReactiveCommand>…
navule
  • 3,212
  • 2
  • 36
  • 54
3
votes
1 answer

ObserveOnDispatcher dose not invoke the handler in UI thread

I have a message bus class which use Rx to push multiple threads events in WPF application. My problem ObserveOnDispatcher does not invoke the event handler in the UI thread. Code: private void button_Click(object sender, RoutedEventArgs e) { var…
Bassam Alugili
  • 16,345
  • 7
  • 52
  • 70
3
votes
3 answers

Get Selected Items collection from a ReactiveList using ReactiveUI

I have bound a ReactiveList Orders to a datagrid in a wpf. I succeeded in obtaining a single selected order by following syntax private Order _selectedOrder; public Order SelectedOrder { get { return _selectedOrder; } set {…
navule
  • 3,212
  • 2
  • 36
  • 54
3
votes
0 answers

Is there a way to synchronize binding in ReactiveUI for WinForms?

Let's have a simple binding in ReactiveUI for WinForms. using System; using System.Threading; using System.Windows.Forms; using ReactiveUI; namespace WindowsFormsApplication1 { public partial class Form1 : Form, IViewFor { …
Rexxowski
  • 160
  • 10
3
votes
2 answers

Binding textbox enter press to reactive command

I have a textbox bound to a view model with the following XAML:
John
  • 3,296
  • 2
  • 24
  • 36
3
votes
1 answer

How do you use UserError handlers asynchronously

Most (if not all) of the examples online register a handler, but then return a discrete Observable value (i.e. Observable.Return(RecoveryOptionResult.CancelOperation)). For a proper implementation, it would be best to present the RecoveryOptions…
pjs
  • 2,601
  • 1
  • 20
  • 24
3
votes
1 answer

Observe for ItemChanged on two ReactiveLists

I have a ViewModel in which I would like to listen for changes to items in two ReactiveLists, Payments and AccountPayments. The Lists are instantiated and the ChangeTrackingEnabled is set to true: this.Payments = new…
Stuart
  • 65
  • 5