1,121 questions
1
vote
3
answers
85
views
How to remove duplicates before Bind (how to run Distinct on IChangeSet<T>)?
Here is repro (very simplified real case).
If I have SourceList<Foo>, each containing SourceList<Bar>, then I can flatten bars from all foos into a single collection using following code, ...
1
vote
1
answer
112
views
ObservableAsProperty properties don't work after update to ReactiveUI.SourceGenerators
I'm trying to change from the deprecated nuget package ReactiveUI.Fody.Helpers to the ReactiveUI.SourceGenerators package.
In the constructor of the class I connect the observable property ...
1
vote
0
answers
99
views
How to populate Avalonia ComboBoxItem from a ViewModel collection so it's not huge?
How do I add combo box items based on a view-model collection in Avalonia so that the combo box auto-sizes to the content? I've tried using a TextBlock inside an ItemRepeater's DataTemplate, but the ...
0
votes
0
answers
40
views
.NET Maui ReactiveUI: JobStateManager with Observable<bool> updates not received by viewmodel in timely manner
Project: .Net 9 Maui
Package: ReactiveUI.Maui, ReactiveUI.Fody, Shiny.Jobs, Shiny.Hosting.Maui
I have a Foreground Job, that runs periodically as a singleton, it injects a singleton of ...
0
votes
1
answer
58
views
ReactiveUI receive notification of property change in element of child collection
I have a viewmodel class which has an observable collection of a child viewmodel class. I want to the parent VM to know when a certain property of the child VM changes (due to user input) and then ...
0
votes
1
answer
81
views
Binding a collection to a WPF ListBox using ReactiveUI
I'm learning ReactiveUI at the moment, and I'm struggling to figure out how to bind a collection to a ListBox in WPF. I already understand the MVVM pattern, and I was able to do this very thing in ...
0
votes
0
answers
151
views
Avalonia/ReactiveUI command doesn't execute. Did I miss something?
this is my code:
public Foo()
{
InitializeComponent();
this.WhenActivated(d =>
{
ViewModel ??= Locator.Current.GetService<FooViewModel>();
...
2
votes
1
answer
56
views
ReactiveUI. Make ReactiveCommand be able to execute when neither of the other ReactiveCommands are executing
I'm currently working on an AvaloniaUI app and faced this problem.
I have 3 ReactiveCommands:
public ReactiveCommand<Unit, Unit> MyCommand1 {get; set;}
public ReactiveCommand<Unit, Unit> ...
2
votes
1
answer
334
views
Why use "WhenAnyValue" instead of "RaisePropertyChanged"?
I've been reading up on Avalonia and this example shows adding a property and then in the viewmodel constructor use "WhenAnyValue" to raise the "RaisePropertyChanged" event.
What ...
0
votes
1
answer
49
views
Accessing Dependency property with WhenAnyValue
Hello I got a dependency property registered for my UserControl
public partial class MyControl: UserControl
public bool IsReadOnly
{
get => (bool)GetValue(IsReadOnlyProperty);
set => ...
0
votes
0
answers
65
views
ReactiveUI subscribe to event and filter list
I have a logger with a OnLog event and want to display these log entries in a Panel.
The panel has some RadioButtons to select the minimum diplayed log level.
private readonly ...
0
votes
1
answer
328
views
ReactiveUI DynamicData: WhenAnyValue, Mult. Filters, Autorefresh, Paging a collection
I cannot find an answer on how to handle a live collection with multiple filters.
The requirement to is to make use of WhenAnyValue(mulitple filters) & AutoRefresh(x=>x.colproperty), bind ...
0
votes
2
answers
2k
views
How to modify an Avalonia WritableBitmap and update the changes as image control on UI?
I have a WritableBitmap object _myBitmap in my MainWindowViewModel class which I want to use to show the live footage from a webcam. But essentially, what I have to do is to write some new values into ...
0
votes
0
answers
133
views
How do I create a ViewModel [ReactiveUI] property in AvaloniaUI with custom getter/setter?
I have a AvaloniaUI WPF application (which uses ReactiveUI).
I'm having difficulty create a [Reactive] property with a custom getter/setter.
Consider the following code snippet:
class SomeValueClass : ...
0
votes
0
answers
170
views
Should ReactiveWindow be available when using ReactiveUI with Uno/WinUI3?
I am struggling with getting started with ReactiveUI in WinUI3 with Uno. I started by going through the "Compelling Example" on the ReactiveUI site but hit a roadblock: ReactiveWindow doesn'...
0
votes
1
answer
44
views
Override non virtual bound method in viewmodel (AvaloniaUI)
I have a core project with a login view and viewmodel, the assembly is published as nuget.
Now in my custom project I want to change some behavior like for example the login.
So I created a ...
1
vote
4
answers
308
views
How to queue WhenAnyValue subscriber calls containing asynchronous code?
What is the correct way to prevent subscribers to be called in parallel, before previous call is completed?
I have kind of race condition atm with code like this
SomeReactive.WhenAnyValue(o => o....
0
votes
1
answer
112
views
How to test ReactiveUI calling async method with SelectMany
I'm trying to write an integration test for a Viewmodel that calls an async method on my model(Foo).
However I can't get the timing/threading/async processing to work.
I've reduced to problem to the ...
0
votes
1
answer
741
views
ReactiveCommand not updating UI
Reactive UI C# IObservable not acting as it should
Windows app, Avalonia UI (using mvvm).I created a register form with some textboxes and a register button.To that register button, i bound a reactive ...
3
votes
0
answers
494
views
How to navigate pages using a child UserControl button using AvaloniaUI
New to AvaloniaUI / ReactiveUI, but not to WPF. I'm trying to play around with AvaloniaUI to see if I want to port my entire WPF project over to it, but I've ran into a little bit of a hurdle. I've ...
0
votes
1
answer
2k
views
UI freezing while executing async command (AvaloniaUI + ReactiveUI)
I am trying to create a MVVM Avalonia app using the ReactiveUi and want to execute a command async in order to keep the user interface working. However this is not the case. After hitting my button, ...
1
vote
0
answers
122
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 ...
1
vote
0
answers
411
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)
...
1
vote
0
answers
83
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 ...
-3
votes
1
answer
275
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. ...