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

I can't get ReactiveUI MessageBus to work on Windows Phone 7

I'm trying to implement messaging between my ViewModels My Proof of Concept Code is the following: RxApp.MessageBus.Listen("test") .Subscribe(i => MessageBox.Show(i.ToString())); RxApp.MessageBus.SendMessage(42, "test"); My unit…
3
votes
1 answer

ReactiveUI ViewModel memory leak

I am having really weird issues with memory leak and I cannot find source after long hours of testing, debugging and trial/error attempts. The source of memory leak is reloading object base on push from subject. On which part I load current database…
Tomáš Filip
  • 727
  • 3
  • 6
  • 23
3
votes
1 answer

How to use Autofac as DI container in Avalonia.ReactiveUI?

I am trying to override the DI container used in Avalonia and ReactiveUI with Autofac. So far I have tried following the instructions in the Splat.Autofac repository, but I can't get Avalonia to work. As a working example, I took the HelloWorld…
JAD
  • 2,035
  • 4
  • 21
  • 35
3
votes
1 answer

ReactiveUI WhenAnyValue ToPropertyEx to a nullable decimal

Using a nullable decimal as a variable, [Reactive] public decimal? CustomPrice { get; set; }, I am trying to update it with the following: this.WhenAnyValue(x => x.DiscountPercent, x => x.DiscountFlat, x=>x.UnitPriceOriginal, (percent, flat,…
CodyC
  • 33
  • 4
3
votes
1 answer

C# DynamicData/ReactiveUI - Unexpected clear change when adding items to cache

I am making multiple updates to a SourceCache using the Edit method. But when observing the changes for the resulting collection, the updates are returned one at a time. Furthermore, when the update threshold limit of 25 is reached, then the entire…
Alex
  • 2,033
  • 1
  • 24
  • 40
3
votes
1 answer

How to properly cancel a Task on ViewModel-deactivation with ReactiveUI?

In my MVVM application, when a ViewModel gets activated, a Task gets started that establishes a network connection and could take some time to complete. This Task is cancalable: private async Task ConnectAsync(CancellationToken cancellationToken =…
Marcus Wichelmann
  • 762
  • 1
  • 6
  • 18
3
votes
1 answer

Avalonia UI Pop-Up Overlay

My question is pretty straight forward: How do I achieve an Overlay Pop-Up effect using avalonia? What I mean by this is I want to darken the whole Panel that contains my UI elements a little bit (tried the opacity attribute, but it didn't look good…
Frederik Hoeft
  • 1,177
  • 1
  • 13
  • 37
3
votes
1 answer

ReactiveUI: IObservable.Transform() does not forward Notifications

In the sniplet below, it seems like transform(x => x.Bar.Baz) only forwards changes if items in sl2 are added or removed, but not if th value of Baz is changed. Is this expected behaviour? How to change it, that all modifications are found in…
BerndGit
  • 1,530
  • 3
  • 18
  • 47
3
votes
1 answer

Are there any real benefits in adopting reactive programming for UI elements on Android?

I'm trying to adopt reactive observer pattern in my project and came across RxBinding library. Some claim the benefits of reactive UI implementation pattern as the following: Less boilerplate code Consistent pattern And a more readable code But I…
HumbleBee
  • 1,212
  • 13
  • 20
3
votes
1 answer

ReactiveUI messagebus

I'm testing ReactiveUI, it seems very nice. However, I am a bit puzzled by the MessageBus. Sample code : var bus = new MessageBus(); int result = -1; bus.Listen().Subscribe(x => result = x); bus.SendMessage(42); It does work when calling an…
fabien
  • 2,041
  • 1
  • 16
  • 19
3
votes
2 answers

Splat.Locator Multiple views for one ViewModel

I use the following code Splat.Locator.Current.GetService(...) to get view for view model. But this method allows to use only one view for one view model. But I have to show 1 data (view model) in multiple views. Is it possible by Splat.Locator?
3
votes
0 answers

DynamicData - How to use a SourceList<> with a DataGrid

I'm trying to use DynamicData SourceList<> as a datasource for a DataGrid. All of the documentation I've read states that I should implement something along the lines of ... private readonly SourceList Things; public…
3
votes
0 answers

Binding options with Reactiveui

I'm trying to setup validation for some form fields and bind any errors to the UI elements provided by materialdesign-in-xaml. The question is how can I use reactive's Bind method to set the required parameters (not sure if parameters is the correct…
alpha07
  • 31
  • 1
3
votes
1 answer

Activation/Deactivation with ObservableAsPropertyHelper

What is the proper usage of Activation/Deactivation in conjunction with ObservableAsPropertyHelper? Given a view and viewmodel that reflects long lived (hot) observables, the subscription would need to be disposed when the view and viewmodel is…
Dom
  • 31
  • 2
3
votes
1 answer

How do I chain SourceList observation using ReactiveUI and DynamicData?

Apologies if the terminology is off; I'm an iOS developer having to use Xamarin.iOS to develop an app. I'm using ReactiveUI with DynamicData and an MVVM architecture. I'm fairly happy with RxSwift, and FRP concepts in general. I have a Model that…