As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [reactiveui]

ReactiveUI is a MVVM framework that integrates with the Reactive Extensions

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

AvaloniaUI - access ViewModel from code behind

I’m trying to port an old WPF application to Avalonia UI (Reactive MVVM) and thereby learn a bit of Avalonia. In my old app I used a pattern in which I had the code for events (mostly just button ...
Hatzegopteryx's user avatar
1 vote
0 answers
45 views

How to prevent UTC conversion when using Akavache in Xamarin.Forms with local time zone?

I'm developing a Xamarin.Forms project and utilizing Akavache as a caching solution. In my code, I have set the localBlobCache instance to BlobCache.LocalMachine to ensure it uses the time zone of my ...
SarPa's user avatar
  • 35
1 vote
2 answers
68 views

How to sum a property from each element in an ObservableCollection Based on a filter property on each element?

I'm working on a system that has a list of Records displayed in a list. Each item has the following properties: Name Id Size A Boolean indicating if this item should be included or not - ...
ProbablePrime's user avatar
1 vote
0 answers
79 views

Ambiguous Invocation on WhenActivated

I have a viewmodel where I'm trying to use WhenActivated to dispose: this.WhenActivated(disposables => { this.WhenAnyValue(x => x.Selected) ...
FinalFortune's user avatar
0 votes
0 answers
13 views

System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it [duplicate]

When trying to add a new user, this error appears. <Window x:Class="ListUsers.View.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
Shre K's user avatar
  • 1
1 vote
0 answers
34 views

Command prompt appears in background when i deploy published .NET 6.0 application

I am trying to publish an application on cross platform i.e, on mac and Windows. I successfully developed and deployed for mac but when I publish and deploy it for win-x64 (Windows), the application ...
Gani's user avatar
  • 11
0 votes
0 answers
62 views

Avalonia ReactiveUI RoutedViewHost ignores RoutableViewModel

Trying to implement a login page for Avalonia with an app using ReactiveUI, and for some reason after logging in, the router await HostScreen.Router.Navigate.Execute(App.Services.GetRequiredService<...
Bagroy's user avatar
  • 65
-3 votes
1 answer
68 views

Gold-standard Uno + ReactiveUI starter project on NET 7.0 that works

This is day 2 and I am trying to get a working starter app with Reactive UI and the Uno platform. I have been struggling with myriads of compatibility issues, runtime issues, and installation issues. ...
kyurkchyan's user avatar
  • 2,248
5 votes
1 answer
305 views

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 ...
Miljac's user avatar
  • 2,033
0 votes
0 answers
163 views

Avalonia OpenFolderDialog causes "Call from Invalid Thread" when used in ReactiveCommand

When using a ReactiveUI ReactiveCommand to launch an OpenFolderDialog, it throws an InvalidOperationException "Call from invalid thread". It launches fine if the button command binds ...
Zac Jackson's user avatar
0 votes
0 answers
37 views

Filtering DynamicData source by ObservableCollection

I have a Vehicle entity as follows public class Vehicle { public string Name { get; } public int Id { get; } public Vehicle(int id, string name) { ...
James B's user avatar
  • 8,853
0 votes
1 answer
51 views

ReactiveUI and CanExecute: How to validate boolean variables

Because of AvaloniaUI I am confronted with ReactiveCommands. While the excecution part is quite easy, I would like to manage the canexecute part. In particular, I need to check some boolean properties ...
Bob_Foo's user avatar
  • 23
0 votes
0 answers
15 views

How to pipe `ReactiveCommands`?

I've got a UI that executes a search when the user types text. When he presses enter, I execute an execute command that will process the first result. The problem is that user can press enter when the ...
JiBéDoublevé's user avatar
0 votes
1 answer
38 views

Why is my Child View not displayed when I show my Container View in the MainWindow with WPF ReactiveUI?

I am currently learning my way around WPF and ReactiveUI. I try to explain my problem with a simplified example. I have a ContainerView that contains a ChildView and is bound to a ContainerViewModel. ...
dba12's user avatar
  • 1
0 votes
0 answers
45 views

Using ReactiveUI to bind to WPF TreeView

I am trying to bind to a TreeView with ReactiveUI in WPF, but nothing is being displayed. Can anyone tell me where I am going wrong, or give me some advice on how to debug it? Binding in View ...
Peter's user avatar
  • 1,334
0 votes
1 answer
173 views

ReactiveUI and PRISM.MVVM

I'm new to ReactiveUI. I'm trying to combine PRISM.MVVM with ReactiveUI. In particular, I'd like to use PRISM for its navigation utilities and ReactiveUI for creating the UI. I'm not sure about using ...
w4rcT's user avatar
  • 180
0 votes
0 answers
53 views

How exactly does binding work for list of ViewModels in ReactiveUI

I am currently learning ReactiveUI for WPF. I have rebuilt the following example project and tried to understand it: https://www.reactiveui.net/docs/getting-started/compelling-example I could ...
dba12's user avatar
  • 1
0 votes
0 answers
84 views

How to cause a delay with ReactiveUI.Validation in a ValidationRule

I am doing the following: this.ValidationRule(vm => vm.UserEntry, this.WhenAnyValue(vm => vm.UserEntry, IsEntryValidOrEmpty).Delay(TimeSpan.FromSeconds(5)), "Invalid entry.") Expecting ...
Xecrets's user avatar
0 votes
0 answers
30 views

Winforms User Control that implements RUI IViewFor leads to an Error in VS Designer

I've developed an VB Library .Net 4.8 Any CPU with some User Controls and Reactive UI. I did not use the Lib for a Year. No i reopened the project and updated all Nuget Packages. I have the following ...
Rene Rose's user avatar
0 votes
1 answer
169 views

Reactive.UI: How to return to main UI thread from an async command

I' exploring ReactiveUI (with WPF) and made a minimal example which I don't get to work. The Command Command creates a string which should be assigned to the property Result. The property is bound in ...
W.G.'s user avatar
  • 3
0 votes
0 answers
98 views

TargetInvocationException when trying to bind an image using WPF, ReactiveUI and Akavache

Currently I'm re-writing an WPF APP with .NET7 and ReactiveUI. I love the ReactiveUI framework and how easy async stuff can be achieved. However I'm struggling to binding an image. I keep getting a ...
Jens Eisenbach's user avatar
0 votes
1 answer
90 views

Getting Issue with Source Cache in ReactiveUI

I have one issue in subscribing to source cache. Let me describe the problem. Lets say I have Test Class public class Test { public bool feature1 {get; set;} = false; public bool feature2 {get;...
Ritesh Kumar's user avatar
0 votes
0 answers
37 views

Issue with VSTO add-ins compiling with Reactive UI

When attempting to use ReactiveUI + ReactiveUI.Winforms with VSTO addins i get the compile time error below I have tried all the different versions of ReactiveUI as far down as v11 with no success. ...
Kofi HBSmiffington's user avatar
0 votes
0 answers
34 views

More concise way to time ReactiveCommand execution

I'm trying to put a timer on my ReactiveCommand (TestTime is the number of seconds since StartTest begins execution). This is what I have, and it does work, but I'm wondering if there is a more ...
sdijoseph's user avatar
0 votes
1 answer
53 views

how to detect two property in reactiveui

I am using reactiveui. I want to run a some task based on the state of 2 properties. How can I make the task run when sw1 is true and sw2 is false? I tried as below but it doesn't work. private ...
playground's user avatar
0 votes
1 answer
57 views

Reacting to ReactiveCommand in DynamicData collection

As I am trying to remove old implementations of ReactiveList, I find myself trying to implement a way to remove an item from a DynamicData collection when a ReactiveCommand in the said item is ...
vipirtti's user avatar
  • 1,058
-1 votes
1 answer
28 views

C# WPF ReactiveUI Toggle Layout - Method is called but it has no effect on the screen

In my XAML I have a ContextMenu where the MenuItems are associated with commands: <ToolBarTray Background="Black" Width="180" Height="25" VerticalAlignment="Top&...
Aura4's user avatar
  • 35
0 votes
1 answer
102 views

Grouping data in a collection-view using DynamicData Xamarin forms prism

I'm working on a Xamarin forms app using Prism. I'm trying to manipulate(Sort, filter, etc..) and display grouped data using Dynamic data. I'm following this https://www.xamboy.com/2021/01/20/using-...
Java_Dude's user avatar
1 vote
0 answers
75 views

How to generate a list with ReactiveUI?

I'm trying to trigger the generation of a random sub-selection of items from a list, triggered when a boolean becomes true. After a lot of frustration, I eventually got to this code which works, but ...
Jamey's user avatar
  • 813
0 votes
0 answers
91 views

DynamicData binded ReadonlyObservableCollection change event emit Reset instead of Add

I need to publish NotifyCollectionChangedEventArgs via some kind of messaging whenever there is a change to SourceList, instead of transforming the changeset to NotifyCollectionChangedEventArgs myself,...
techhero's user avatar
  • 1,054
1 vote
0 answers
418 views

How to two way bind a sourcecache to a datagrid in Avalonia so that the update event is triggered?

I would like to bind an Avalonia UI Datagrid with a dynamicdata sourcecache. I would like to be able to use a backend service that will be updated as soon as a change is made in the datagrid. So far I ...
addtc's user avatar
  • 26
3 votes
1 answer
256 views

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 ...
user3132789's user avatar
0 votes
0 answers
110 views

ExcelDNA WPF task pane and ReactiveUI RxApp.MainThreadScheduler

I'm building an Excel-DNA addin with a WPF task pane. The WPF control is hosted within an ElementHost, similar to this example. The UI code is also using ReactiveUI. The user control has a viewmodel ...
MarkNS's user avatar
  • 3,751
0 votes
0 answers
97 views

MVVM and Multi-threading

We are using Avalonia and ReactiveUI but have run into an issue. Our Model will be updated by an asynchronous thread and we're trying to figure out how to tie it (bind it) correctly to the View. It ...
Bo Ellis's user avatar
5 votes
3 answers
248 views

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 ...
ree6's user avatar
  • 385
0 votes
0 answers
21 views

Interaction is not handled immediately

I have an ReactiveCommand in a VM and subscribed to exceptions: var configuration = new Configuration(); var vm = new ConfigurationViewModel(configuration, true, false); ...
Yesname's user avatar
  • 13
0 votes
0 answers
30 views

C# calling Reactive/ReactiveUI extension methods via reflection

I'm trying to call the equivalent of this code via reflection: prop.WhenAnyValue(s => s.Value).Skip(1).Subscribe(...); This is the reflection code I use to "solve" the WhenAnyValue part: ...
mfranke's user avatar
2 votes
0 answers
42 views

Reactive UI, Implement Custom Control that run SearchCommand after typing ang waiting for 500ms

XAML <?xml version="1.0" encoding="UTF-8" ?> <yummy:PancakeView x:Class="Endeavor.App.Mobile.Controls.SearchControlWithDelay" xmlns="http://xamarin....
Endeavor's user avatar
0 votes
1 answer
88 views

Subscribe to any changes in a SourceCache?

There are two SourceCache as root sources: SourceCache1 and SourceCache2. I also have two ReadOnlyObservableCache derived from SourceCache1 and SourceCache2: DerivedReadOnlyObservableCache1 and ...
Yesname's user avatar
  • 13
0 votes
1 answer
489 views

How do I use a Reactive User Control as a template for displaying a list of View Models in a List Box using Avalonia and ReactiveUI?

I'm trying to use Avalonia and ReactiveUI to display a list box of images pulled from a local data base. My implementation is based off of ReactiveUI's example on their docs: here. I go about it by ...
Artemis Venatrix's user avatar
0 votes
1 answer
96 views

Adding rules that aren't properties themselves in ReactiveUI.Validation

I would like to know if a validation rule can be added to a non-property. Like this.AddRule(booleanObs). This makes sense in scenarios where the property is not exposed as a property. Something like ...
SuperJMN's user avatar
  • 12.9k
0 votes
1 answer
103 views

ReactiveUI.Validations and nested validation

I would like to know if ReactiveUI.Validation supports nested validations. Eg. a parent ViewModel that is valid only when its children ViewModels are valid. Something like this: public class ...
SuperJMN's user avatar
  • 12.9k
0 votes
0 answers
31 views

Duplicate type System.ObservableExtensions from System.Reactive.dll, was also present in System.Reactive.Core

Adding ReactiveUI to my WinForm project, it fails to compile due to the below error. I have removed unnecessary packages as well checked their version to not differ from each other. Even it conflicts ...
Anup Shah's user avatar
  • 157
0 votes
0 answers
88 views

ReactiveUI.XamForms ViewModel not initialized

I'm trying to bind View elements to a ViewModel, but for some reasons the ViewModel is not initialized when the form loaded. The code is based on the Visual Studio 2022 "Mobile App (Xamarin....
Chu Bun's user avatar
  • 501
1 vote
2 answers
1k views

Show dialog from ViewModel in ReactiveUI Avalonia (MVVM)

I have Window, inheriting from ReactWindow, and it's connected to its Viewmodel . Everything is working as expected (binding, clicking stuff, hitting commands). So it's working. (code is below) When ...
Gil Sand's user avatar
  • 5,762
0 votes
2 answers
259 views

Data from view model not binding to view - Xamarin Forms, Reactive UI

Welcome, I'm trying to bind array of strings to collection view item source, but it seems like my view model can't pass data, or isn't activated at all. I'm stuck at this moment. I tried to search on ...
Assynu's user avatar
  • 1
0 votes
1 answer
63 views

In ReactiveUI the same code behaves differently depending on how observable is subscribed

The code: StartOperation = ReactiveCommand.CreateFromObservable(() => Observable.Start(() => { SelectedOperation.State = OperationState.ACTIVE....
Philip Kaare Løventoft's user avatar
1 vote
1 answer
310 views

MaterialDesignInXaml ComboBox - Clear button issue

I'm building WPF application using MaterialDesignInXaml together with ReactiveUI. I have the following XAML code: <ItemsControl ItemsSource="{Binding Filters}"> <ItemsControl....
Signum's user avatar
  • 845
0 votes
1 answer
306 views

Reactive UI / Blazor: Why is a View that inherits from ReactiveInjectableComponentBase<T> rendered twice?

When I inherit a View from ReactiveInjectableComponentBase<T> the body of the View will be "rendered" twice. I noticed this because a @foreach loop was executed twice on activation of ...
Letho's user avatar
  • 48
0 votes
1 answer
190 views

ObserableCollection not triggering Change when Items are added/removed from list

I have a problem with ReactiveUI ObservableCollection. I am trying to update the UI based on a list that changes in a ReactiveObject, but for some reason my list change is not triggered and I am not ...
CiucaS's user avatar
  • 1,990

1
2 3 4 5
22