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

Finding a View with IViewFor from a class VM that implements InterfaceClass?

I have the following class which is my view model (this is very simple right now, but it will contain a chunk more logic eventually): public class IndicoTalk : ITalk { private Talk _talk; public IndicoTalk(Talk t) { …
Gordon
  • 3,012
  • 2
  • 26
  • 35
0
votes
1 answer

Binding to a non class variable fails in ReactiveUI

Given a sample ContentPage public class MyPage : ContentPage, IViewFor //ReactiveContentPage { Entry input; //Entry input2; Label displayLabel; Slider _slider; Button _button; ListView _listView; …
ritcoder
  • 3,274
  • 10
  • 42
  • 62
0
votes
3 answers

ReactiveList.AddRange not working for large collections

I have a simple TableView that displays a list of strings downloaded from the network. The list is very large (~140k strings). Using AddRange and nothing is happening, but if I statically code a small 2-item list, it works fine. Code for reload…
Cory Juhlin
  • 364
  • 4
  • 9
0
votes
1 answer

How to use sub classes of NSTextField and NSTableCellView with ReactiveUI

I'm currently converting the SideBarDemo to C# and MonoMac in combination with ReactiveUI. I have two subclasses of NSTextField and NSTableCellView that are views for a common view model class. My problem is that I do not know how to implement these…
drvj
  • 355
  • 1
  • 4
  • 9
0
votes
1 answer

ReactiveUI 6 with listview not updating

Been tinkering with reactiveui and trying to get a simple example working in a universal app and having some diffs. I have viewmodel as: public class Rooms : ReactiveObject { private RoomsService roomService; private…
Marty Henderson
  • 105
  • 3
  • 9
0
votes
1 answer

ReactiveCommand CanExecute reacting to changes in a collection

I have a ReactiveCollection filled with Items (that are ReactiveObjects as well). I want to create a ReactiveCommand that should be enabled only when any of the items in the collection has some property set to true, something like: MyCommand =…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
0
votes
1 answer

ReactiveUI routing on Windows Phone (Universal App)

I'm working on moving some WPF code to Windows Universal app and I'm using ReactiveUI. From the ReactiveUI 6 migration guide: Several Routing classes that never worked properly have been removed, and routing is Generally Discouraged from being…
Skrymsli
  • 5,173
  • 7
  • 34
  • 36
0
votes
1 answer

Using ReactiveUI InvokeCommand Extension with Changing Targets

While the below code works, I'm not sure it is the best practice. I'm wondering if I am over-thinking the situation. Situation: The below code is in my main ViewModel constructor. The ViewModel has a property MessageHandler that has a…
Jon Comtois
  • 1,824
  • 1
  • 22
  • 29
0
votes
1 answer

CreateAsyncObservable not raising OnComplete

Still playing around with ReactiveUi. I'm currently having trouble determining when a sequence has ended. I have the following code : public RxTest() { DownloadDocument = ReactiveCommand.CreateAsyncObservable(_ =>…
enomam
  • 89
  • 5
0
votes
1 answer

ReactiveList does not update in the GUI

I'm trying to make good use of ReactiveList and I think I'm close. My expectation is that only "toyota" is shown after the user presses the filter button XAML (yes, quick n dirty, no command for the Filter)
buckley
  • 13,690
  • 3
  • 53
  • 61
0
votes
1 answer

How to use NSOutlineView with ReactiveUI?

I want to convert a small MonoMac application that I created so that it uses the MVVM pattern (especially to port in easily to Windows). I want to use the ReactiveUI framework. The current application uses an NSOutlineView control with a…
drvj
  • 355
  • 1
  • 4
  • 9
0
votes
1 answer

ReactiveObject OnDeserialized throws security exception

I have ReactiveObject as my ModelBase class, I am using silverlight client and WCF service built on .net 4.0 at server side. My ReactiveUI_SL5 assembly version is 4.0.2, when making service call I am getting runtime exception that Can't…
Rajnikant
  • 2,176
  • 24
  • 23
0
votes
2 answers

How should I expose a list from a ViewModel using reactive UI?

how should I expose a list from a ViewModel using reactive UI? I want a grid in the view to bind to the list. Should I use ObservableCollection or something in the reactiveUI framework? public class BooksViewModel : ReactiveObject { …
CodingHero
  • 2,865
  • 6
  • 29
  • 42
0
votes
1 answer

ReactiveUI RaiseAndSetIfChanged hit when lose focus on textbox

I'm using ReactiveCommand: LoginCommand = new ReactiveCommand(this.WhenAny(x => x.UserName, x => x.Password, (r, g) => !string.IsNullOrEmpty(r.Value) &&!string.IsNullOrEmpty(g.Value))); LoginCommand.Subscribe(async _ => { var user =…
Ozan Yurtseven
  • 810
  • 8
  • 17
0
votes
0 answers

ReactiveCommand CanExecute is not updating button

I´ve set up business logic handling a connection of a clientsoftware to a serversoftware. That BL is encapsulated in this interface: public interface IServerConnectionLogic { IObservable Connected { get; } Task Connect(); …
emvoll
  • 99
  • 7