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

How to disable the ViewModelViewHost transition

I am using a ViewModelViewHost in my ReactiveUI WPF application to display a view for an arbitrary viewmodel. When changing the viewmodel, the control fades in/out the view as a transition. I would like to disable this animation. I have found a…
Wouter
  • 538
  • 6
  • 15
4
votes
1 answer

How to bind Combobox to a command in ReactiveUI?

I was wondering what is the best way to bind the control properties to the CommandParameter in ReactiveUI? The BindCommand below does not provide a way to pass the parameter. The overload either takes a property in view model or an IObservable
resp78
  • 1,414
  • 16
  • 37
4
votes
1 answer

ReactiveUI Command concurrency (WebClient)

I'm using the latest prerelease of RxUI 8, but I think this would happen in prior versions. I have defined this ReactiveCommand in my WPF application: GetWebsiteCommand = ReactiveCommand.CreateFromTask(DownloadString); private async Task
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
4
votes
3 answers

How to execute a command only once using ReactiveUI in Xamarin.Forms?

Using RxUI for Xamarin.Forms, how would you create a command that is meant to be executed only once automatically (when a page initially appears) but that te user can request its execution later on (like from a pull to refresh kind of event)? I've…
io_exception
  • 154
  • 1
  • 13
4
votes
0 answers

Pass ReactiveObject ViewModel between Android Activity in Xamarin

I use ReactiveObject as a ViewModel in Xamarin.PCL: public class PlanViewerViewModel : ReactiveObject Inside the ViewModel, there are a lot of ReactiveUI logic such as: FilterIssueTypeCommand = ReactiveCommand.Create
currarpickt
  • 2,290
  • 4
  • 24
  • 39
4
votes
2 answers

What's the appropriate way to use schedulers in derived properties to have a responsive UI?

I'm having a hard time trying to figure the proper way to schedule long-running reactive property "getters" in my ViewModel. This excerpt from Intro to RX describes exactely what I want to do: respond to some sort of user action do work on a…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
4
votes
4 answers

Trouble with showing a Mahapps.Metro Dialog with a ReactiveUi Command

I am trying to use the Mahapps dialog boxes in my project but have been unable to get them to work when trigger from a ReactivUI command in my ViewModel.In the view's XAML, I have registered the dialog. …
TheAquam
  • 43
  • 1
  • 4
4
votes
1 answer

Retry async Task code using Reactive Extensions

Having the code below in my data access class. public async Task> QueryAsync(string sql, object param = null, CommandType commandType = CommandType.Text, int? commandTimeout = null, IDbTransaction transaction =…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
4
votes
2 answers

ReactiveCommand.Execute not triggering IsExecuting

I'm subscribed to the IsExecuting of a command: LoginCommand.IsExecuting.Subscribe(x => Log("Logging in")); and it works fine when my Command is invoked by InvokeCommand but when I call it by: LoginCommand.Execute(); The IsExecuting observable is…
Justin Horst
  • 201
  • 1
  • 9
4
votes
1 answer

ReactiveUI - Using a Scheduler in a Interaction handler

I want to display an alert dialog with two buttons when an error occurs. To my best knowledge, this is how to do it, using an Interaction property: this.ViewModel.ConnectionError.RegisterHandler(interaction => { var retry = await…
Antao Almada
  • 445
  • 5
  • 12
4
votes
1 answer

Xamarin PCL Refit 3.0.1 , Doesn't look like a Refit interface

I recently started working on a Xamarin Android/iOS project with a PCL class where I want to put all the logic in. Like my Refit interfaces, ReactiveUI ViewModels et cetera, but every time when trying to execute my code I get a error saying that my…
4
votes
5 answers

Binding to several RadioButtons using ReactiveUI and Windows Forms

I would like to bind a property in my viewmodel to several RadioButtons (in the same group) in a Windows Forms application, using ReactiveUI. I found several examples with WPF but no examples with Windows Forms. EDIT: I would like to avoid creating…
AIDANDan
  • 93
  • 1
  • 7
4
votes
0 answers

ReactiveUI and observing nested properties

My problem is that my subscription to a nested property isn't responding. Here's my XAML: The property in the view model (extract): private…
ericdes
  • 612
  • 1
  • 6
  • 12
4
votes
1 answer

RxUI ObservableAsPropertyHelper not working for XAML bindings

I have the following view model class (based on RxUI design guidelines): public class SomeViewModel : ReactiveObject { private readonly ObservableAsPropertyHelper m_count; public ReactiveCommand AddItem { get; set; } …
bugged87
  • 3,026
  • 2
  • 26
  • 42
4
votes
1 answer

Setting up the first view/vm in a windows store/wp reactiveui app

I am having trouble figuring out how to properly navigate to the first View in a Windows Store 8.1 app using Reactive UI. In my app.xaml.cs I have the following: protected override void OnLaunched(LaunchActivatedEventArgs e) { Frame…
Gordon
  • 3,012
  • 2
  • 26
  • 35