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
6
votes
3 answers

ContentControl not updating

I'm trying to have a MainWindow that is bound to the a view. I change that view in code and expect it to update in the Main Window, however that is not happening. I have this code in my XAML
Rumel
  • 917
  • 1
  • 9
  • 21
6
votes
1 answer

Asynchronous command execution with user confirmation

I need to execute async delete operation with user confirmation. Something like this: public ReactiveAsyncCommand DeleteCommand { get; protected set; } ... DeleteCommand = new…
elshev
  • 1,164
  • 3
  • 16
  • 30
5
votes
1 answer

How to bind ReactiveCommand from view constructor to Button inside ItemTemplate

I am using ReactiveUI and Avalonia with C#. I have problem with executing command on a Button inside ItemTemplate of MyItemsControl. MyView and MyItemsControl are correctly displayed but when I click a Button generated inside ItemsTemplate, nothing…
Miljac
  • 2,045
  • 4
  • 19
  • 28
5
votes
3 answers

WPF Toggle Combo Box Item Text Colour MVVM ReactiveUI

OK so this is definitely a newbie question that unfortunately could not figure/find the answer to. Essentially binding a list of objects to a Combobox, when the Disabled property on the object is set to true I want the text colour of the Combobox…
ree6
  • 383
  • 2
  • 13
5
votes
1 answer

How to use WhenActivated with properties in avalonia

I am trying to use ReactiveUI along with Avalonia. Due to initialization order in Avalonia 0.10 preview following code fails: class ViewModel : IActivatableViewModel { public ViewModel(){ this.WhenActivated(disposables => { …
Shadow
  • 2,089
  • 2
  • 23
  • 45
5
votes
1 answer

Is it possible to use ReactiveUI bindings in WPF for validating user input with only INotifyDataErrorInfo?

We're using ReactiveUI.WPF 11.0.1 in our .Net Core WPF application. We're looking into replacing all XAML-based bindings with ReactiveUI-based bindings. There is a ViewModel for the domain type that implements INotifyPropertyChanged and…
K. Voroncov
  • 189
  • 1
  • 11
5
votes
2 answers

State of the Art navigation & routing with Xamarin Forms and ReactiveUI

Every year or so, I've got an mobile app to do, and I choose Xamarin Forms to do it. Before starting with a blank project, I'm trying to see what frameworks and patterns are "trending" and I'm trying to build something solid. On my last app, my…
5
votes
3 answers

Manually executing a command in ReactiveUI 7.2

I'm trying to execute a command so that a function I have runs asynchronously in from within the constructor of my view. I understand that running something asynchronously in a constructor isn't necessarily good practice, but I need to load a…
jewnbug97
  • 327
  • 7
  • 14
5
votes
2 answers

ReactiveUI - why is simple ReactiveList.Changed -> ToProperty not working?

I tried many different modifications but nothing helps. When I dig into sources it's a bunch of deep magic involving static state like ConditionalWeakTable etc. private readonly ReactiveList _list = new ReactiveList(); private decimal…
Den
  • 1,827
  • 3
  • 25
  • 46
5
votes
5 answers

Binding to ComboBox using ReactiveUI and Windows Forms

I would like to bind a property in my viewmodel to a ComboBox in a Windows Forms application, using ReactiveUI. I found several examples with WPF but no examples with Windows Forms. EDIT: Part 1: Bind the selected value to Following example from…
AIDANDan
  • 93
  • 1
  • 7
5
votes
1 answer

ReactiveUI - testing subscribe when using throttle

I have a problem when trying to unit test a view model that uses WhenAnyValue to listen for changes in a property, and populate a list based on the new value of the property. I need to use Throttle when listening to changes on the property due to…
larsjr
  • 665
  • 7
  • 17
5
votes
3 answers

ReactiveUI Dependency Injection Constructor

I am using the built in dependency injector/splat injector inside ReactiveUI. I have constructors where I want to pass along their applicable data repository. In other frameworks it just uses reflections with the interfaces, and uses the GetServices…
Glenn Watson
  • 2,758
  • 1
  • 20
  • 30
5
votes
0 answers

Why don't Bind and OneWayBind always use the main UI thread?

In my ViewModel I'll often have code like the following: public bool IsDownloading { get { return _isDownloading.Value; } } private ObservableAsPropertyHelper _isDownloading; ... FileDownloader.WhenAny(x => x.IsDownloading, x => x.Value) …
Gordon
  • 3,012
  • 2
  • 26
  • 35
5
votes
1 answer

ListView SelectedItem Binding with Xamarin Forms and ReactiveUI Issue

I have a basic list of items that display a name. I need to navigate to a new screen upon one of the list items being clicked. Super simple, right? I can't figure out where this is going wrong. The list is displaying its items properly. Upon…
Magnetic Llama
  • 154
  • 2
  • 11
5
votes
2 answers

ReactiveUI - View Locator performance

In my WPF application which makes use of ReactiveUI, I've noticed an area of poor performance. I have a view-model which contains a lot of other lightweight view-models (think 30ish). These nested view-models are simple, usually representing a…
BlackBox
  • 2,223
  • 1
  • 21
  • 37