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

The correct way to raise propertychanged in ReactiveUI

Sometimes I need to raise propertychanged for a related property, like this: public bool IsValid { get { return _isValid; } set { if (value.Equals(_isValid)) return; _isValid = value; …
Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
4
votes
1 answer

Bare minimum to join Views and ViewModels in ReactiveUI

What's the bare minimum to get a View and its associated ViewModel work together? How can ReactiveUI handle when a View is composed of subviews (that can relate to its parent with a cardinality of 1x1 or 1xN)? Like a View with 2 SubViews and each…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
4
votes
2 answers

ReactiveUI 6 Async Command Not Running on Background Thread in WPF app

ViewModel public class MyViewModel:ReactiveObject, IRoutableViewModel{ private ReactiveList _appExtensions; public MyViewModel(IScreen screen){ HostScreen = screen; AppExtensions = new…
rwisch45
  • 3,692
  • 2
  • 25
  • 36
4
votes
1 answer

Using ReactiveCommand

I'm new in WPF trying to use ReactiveUI, I have used ICommand / DelegateCommand one time before, but now I want to use ReactiveCommand What I'm trying to do is really simple. Click a button in the view, and have that execute a method apply in the…
user3106005
  • 179
  • 3
  • 20
4
votes
3 answers

Bind Visibility to ReactiveCommand CanExecute

I have several Tiles (TileLayoutControl Class) in my xaml (only shown 2 in this example) whose Visibility are binded to Boolean Properties and converted through BooleanToVisibilityConverter. This works just fine. My question is Can I bind the…
Butters
  • 947
  • 5
  • 16
  • 25
4
votes
2 answers

How can I bind a command to a local event?

I have a form that should capture KeyDown/KeyUp events. This code fails with NRE, because it looks for KeyDown control on my current view: this.BindCommand(ViewModel, vm => vm.KeyDown, "KeyDown"); What I've done is created wrapper class that has…
ionoy
  • 975
  • 6
  • 19
4
votes
2 answers

How do I merge several observables using WhenAny(...) in ReactiveUI?

I have a question which is an extension of the following question raised on this site. Is there a more elegant way to merge observables when return type is unimportant? I have an IObservable (lets say X), a reactive collection (Y) and a…
nDev
  • 97
  • 2
  • 9
4
votes
2 answers

Focus on control using ReactiveUI?

In WPF, I started using ReactiveUI a short space of time is a question that came to me, it would be possible to put the focus on a specific control through my MainViewModel, it would be possible also use conditions? Examples are welcome, thanks.
Fernando Vellozo
  • 6,195
  • 2
  • 14
  • 12
4
votes
1 answer

ReactiveList and WhenAny

I have a number of check lists held in ReactiveLists that have ChangeTrackingEnabled = true. I want to only enable my OkCommand when there is at least one item checked in each list. In addition there are various other properties that I want to…
Grokys
  • 16,228
  • 14
  • 69
  • 101
4
votes
3 answers

Why does ReactiveUI's ToProperty on an ObservableForProperty cause a FailInit in F#

In ReactiveUI 5.2.0 and F# 3.1, the following F# code causes an InvalidOperationException when constructing the object (from a C# WPF app) The message is "The initialization of an object or value resulted in an object or value being accessed…
marklam
  • 5,346
  • 1
  • 24
  • 26
4
votes
2 answers

Resharper Create Custom Refactor for ReactiveUI's ReactiveObject

So I have a ton of viewmodels and models in my code that require each property to use the ReactiveUI way of observing their changes: private bool _myProperty; public Boolean MyProperty { get { return _myProperty; } set {…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
4
votes
2 answers

UICollectionView - too many update animations on one view

Update: Solved! See my answer below for the solution. My app displays a number of images in a UICollectionView. And I'm currently experiencing a problem with insertItemsAtIndexPaths when new items are getting inserted too fast for the collection…
Oliver Weichhold
  • 10,259
  • 5
  • 45
  • 87
4
votes
1 answer

Task ToObservable Error Handling

I have the following method which is responsible for calling my service class and passing the results off to another method for saving them in my db: public IObservable SyncSessions() { var subject = new ReplaySubject(); try …
JFoulkes
  • 2,429
  • 1
  • 21
  • 24
3
votes
1 answer

ReactiveUI Maui: ReactiveTabbedPage Tab name appears twice

Using ReactiveTabbedPage in a MAUI project and on UWP Platform, the name of selected tab appears twice, one on tab section and the second one on top right side of the screen as shown in picture into red circle. . Is possible to remove or hide the…
user3132789
  • 151
  • 1
  • 5
3
votes
1 answer

ReactiveUi: How can I replace the default IViewLocator when using AutoFac?

High! I am trying to replace the default IViewLocator of ReactiveUi/Splat in WPF. I am using AutoFac as container. My goal is very simple: ReactiveUi/Splat should use my custom implementation of IViewLocator when resolving a view for view model. I…
Michael
  • 938
  • 1
  • 10
  • 34