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

ReactiveUI.pdb not loaded

I'm using ReactiveUI in my WPF program, the WPF Window can be initialized and show normally, and I'm under Debug Mode, but sometimes When I run some command code binding with button, it shows error below, and there're not more information, so I have…
yu yang Jian
  • 6,680
  • 7
  • 55
  • 80
0
votes
1 answer

Observing a reactive list and property

I have the following ViewModel class MyViewModel { private string _name; public MyViewModel() { CommitChanges = ReactiveCommand.Create(Observable.When( this.ObservableForProperty(x => x.Name) …
Niek Jannink
  • 1,056
  • 2
  • 12
  • 24
0
votes
3 answers

How to observe Immutable List NotifyCollectionChanged?

As we know, we can observe collection changed using ObservableCollection. That's s fine. But how to handle ImmutableList changed? For example:I have IObservable> and sequence of this steam maybe: First: 1, 2, 3, 4, 5 Second: 1,…
chansey
  • 1,266
  • 9
  • 20
0
votes
1 answer

Rx GroupBy: Remove item or Update exising item not trigger regroup

private static void TestGroupBy() { var rxList = new ReactiveList(); Observable.Merge(rxList.ItemsAdded, rxList.ItemChanged.Select(x => x.Sender) ).GroupBy(i => i%3) .Subscribe(group => …
seekle
  • 228
  • 2
  • 7
0
votes
1 answer

How do I tell ReactiveUI to update bindings (i.e. RaiseCanExecuteChanged())?

How do I tell ReactiveUI to update bindings? Normally, I would do something like this: string _instructorNameInput; public string InstructorNameInput { get { return _instructorNameInput; } set { …
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
1 answer

ReactiveCommand.Create throws "NotSupportedException": "Index expressions are only supported with constants."

The following line throws a runtime exception: Accept = ReactiveCommand.Create(this.WhenAnyValue(x => x.Canexecute())); Here's the code: public class InstructionsViewModel : ReactiveObject { public InstructionsViewModel() { Accept =…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
2 answers

How do I bind to the latest version (6.5) of a ReactiveCommand from my XAML page

How do I bind to the latest version of the ReactiveCommand from my XAML page? In ReactiveUI (6.5), The following command property declaration is no longer supported: public ReactiveCommand ClickMe { get; private set; } As a result, can a button…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
1 answer

Do I need to implement my own RelayCommand if I want a sync command in ReactiveUI?

I want to show a straightforward dialog window on pressing a button. In case subscribing is the only option, my follow-up question is whether I need to do .ObserveOn(RxApp.MainThreadScheduler) on commands as well?
Den
  • 1,827
  • 3
  • 25
  • 46
0
votes
1 answer

ReactiveCommand never hooks up the event handler for the canExecute observable

In my test case I can verify that the event handler CollectionChanged gets hooked up correctly. This occurrs when the command is created. In my view model when I do the same thing the event handler is never hooked up. Why is this? If I make an…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
0
votes
1 answer

Master-details using ReactiveUI via WhenAnyValue doesn't work for me

I am implementing a typical master-details GUI pattern using WPF and ReactiveUI. I would like to keep the master viewmodel and the details viewmodel decoupled from each other without resorting to something more fragile and indirect like message bus.…
Den
  • 1,827
  • 3
  • 25
  • 46
0
votes
2 answers

Retrieve omitting object in ReactiveList's Change observable

I have a few objects that contain each a ReactiveList (children), for whose changes I'd like to execute some logic. The parents are dynamic and also in a ReactiveList. Basically I'm doing this: var parents = new…
phreezie
  • 324
  • 2
  • 8
0
votes
1 answer

Where is 'With' method defined. ReactiveUI

I saw here that we can use (new TestScheduler()).With(sched =>{ // Code run in this block will have both RxApp.MainThreadScheduler // and RxApp.TaskpoolScheduler assigned to the new TestScheduler. }); But where is With method defined. I…
Bohdan Zhmud
  • 41
  • 1
  • 6
0
votes
1 answer

RactiveUI-Xamforms for PCL Profile259

Is reactiveui-xamforms available for windows universal project PCL (Profile259)? I am getting the following error when I tried to install the nuget package. Could not install package 'reactiveui-xamforms 6.5.0'. You are trying to install this…
Rajan
  • 121
  • 7
0
votes
1 answer

Combine CollectionChanged and PropertyChanged notifications in ObservableForPropertyHelper with ReactiveUI

I have a ReactiveObject ViewModel that contains an IObservableCollection and a regular property that raises INPC when it is modified (ie, vanilla WPF). I want to implement an ObservableForPropertyHelper backed read-only that will re-evaluate…
Andrew
  • 1,482
  • 9
  • 16
0
votes
1 answer

Is there a way to track if an object has changed with ReactiveUI?

is there a way to track if an object has changed with ReactiveUI? Basically does/can the ReactiveObject base class store the original values for the fields so it can track change? If a property has changed then i need to know. If a property was…
CodingHero
  • 2,865
  • 6
  • 29
  • 42