feature: Added Uno support by weitzhandler · Pull Request #2067 · reactiveui/ReactiveUI (original) (raw)
Looks like generic type arguments are not supported.
Opened suggestion.
Anyway the solution I'm thinking of, is having on each view code-behind a dummy class that inherits from ReactiveUserControl<TViewModel>
and is used as the XAML subclass, for example:
<v:ReactiveMainPage
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:v="using:MyProject.Views"
x:Class="MyProject.Views.MainPage"
/>
namespace MyProject.Views { public class ReactiveMainPage : ReactiveUserControl { }
public sealed partial class MainPage : ReactiveMainPage { } }
I'd be happy to hear about any other ideas of course.