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

ReactiveUI OneWayBind leaks handles

I have a simple ViewModel: public class MeetingPageViewModel : ReactiveObject, IRoutableViewModel { public MeetingPageViewModel(IScreen hs, IMeetingRef mRef) { HostScreen = hs; _backing = "hi there"; } public IScreen…
Gordon
  • 3,012
  • 2
  • 26
  • 35
3
votes
1 answer

Reactive UI Merging Observables to a ObservableAsPropertyHelper

I am trying to merge several Observables on a couple of ReactiveLists to create an ObservableAsPropertyHelper. public class Model : ReactiveObject { ReactiveList IngredientsEntities; // ... public int CostOfIngredients(...) { ...…
Lawliet
  • 131
  • 1
  • 7
3
votes
2 answers

How works IViewFor Bind extension method?

Simple question, but I dons see solution. Or may be dont understand how Bind method works. The goal is two way binding between ViewModel and DataContext properties. public MainWindow() { InitializeComponent(); …
3
votes
2 answers

What is the ReactiveUI way to handle exceptions when executing inferior ReactiveCommands?

Here is a (over) simplified version of what I am trying to demonstrate: var reactiveCommandA = ReactiveCommand.CreateAsyncTask(_ => CanPossiblyThrowAsync()); reactiveCommandA.ThrownExceptions .Subscribe(ex => UserError.Throw("Oh no…
Jon Comtois
  • 1,824
  • 1
  • 22
  • 29
3
votes
2 answers

"Hello World" with ReactiveUI, Xamarin Forms and XAML locking up

I'm trying to do a hello world with Reactive UI and Xamarin Forms. I have created a ViewModel (based on ReactiveObject), a custom page (based on ReactiveContentPage) and some XAML markup. The page has an entry and a Label, bound together. When I…
Damien Sawyer
  • 5,323
  • 3
  • 44
  • 56
3
votes
3 answers

How to bind a ReactiveCommand to a control in a Xamarin.Forms ListView?

I am using ReactiveUI, Xamarin.Forms and XAML. I am trying to implement a simple scenario with a ListView where each row has a delete button. Here is the ListView XAML:
Paul Batum
  • 8,165
  • 5
  • 40
  • 45
3
votes
1 answer

ReactiveUI: Can't get code to run on background thread

Just dabbling with RxUI and trying to get a noddy example to work... I've got a WPF view with a ListBox and a button. When I press the button (Go) I want to run a method on a background thread and have the results it produces be added to the…
Matt Cotton
  • 732
  • 9
  • 23
3
votes
1 answer

ReactiveList.AddRange(IEnumerable collection) fires for each item in collection

Using ReactiveUI 6.0.0 and having var myReactiveList = new ReactiveList(); // [...] later I subscribe to the list: myReactiveList.Changed.Subsribe(_ => { // this will be invoked 10 times, once for each item // in "myList"…
codeclash
  • 2,053
  • 19
  • 17
3
votes
1 answer

ReactiveUI 6.0 and WinForms binding

Now that ReactiveUI 6.0 has been released, I have a question to the commuity: what is the best or most efficient way to bind ReactiveObject(s) and Windows Form(s). Here is what I have so far: My Model namespace WindowsFormsApplication1 { …
Darek
  • 4,687
  • 31
  • 47
3
votes
2 answers

Cancellation of async Task in ReactiveUI ViewModel (ReactiveObject)

I'm currently experimenting with ReactiveUI (5.5.1) and I've created a ViewModel (subclass of ReactiveObject) which works as an autocomplete for a location search (adapted from mikebluestein/ReactiveUIDemo on github). Each time the query text…
codeclash
  • 2,053
  • 19
  • 17
3
votes
1 answer

ReactiveList problems

We are relatively new to ReactiveUI so this may explain why we are having some issues with getting a view model working. In our view model we have a ReactiveList of a class , for which there is a 'selected' in the class. In the view model we want to…
jamie
  • 1,224
  • 1
  • 11
  • 19
3
votes
1 answer

ReactiveUI + Portable Class Library?

I'm porting a WPF app over to Windows Store app. I have some view models that I would like to put into a Portable Class Library. That code uses reactiveui framework. I created the library and I use nuget package manager to add reactiveui to the…
Skrymsli
  • 5,173
  • 7
  • 34
  • 36
3
votes
1 answer

ReactiveUI/Reactive Extensions: how to clear ObservableAsPropertyHelper

I am using the ReactiveUI framework to do searching for a list of airports in the world. I have setup the ObservableAsPropertyHelper that is the output of the suggested airports from a SearchTerm property in the ViewModel. The following is the…
icube
  • 2,578
  • 1
  • 30
  • 63
3
votes
2 answers

Observing changes only within a window that commits successfully

Suppose I have the following class: public class Person : ReactiveObject, IEditableObject { private string name; private string nameCopy; public string Name { get { return this.name; } set {…
Kent Boogaart
  • 175,602
  • 35
  • 392
  • 393
3
votes
1 answer

ReactiveUI 5.1 stackoverflowexception when doing anything with ReactiveObject

According to this question, using ReactiveUI and CM should be a walk in the park: ReactiveUI and Caliburn Micro together? however I am having difficulties at the baby steps already. I am going with my usual setup: ShellViewModel + ShellView and…
Manuel Schweigert
  • 4,884
  • 4
  • 20
  • 32