Replies: 4 comments 3 replies
-
With Avalonia it's worth also highlighting it to their team. They have gitter chat. They produce their own rxui plugin so having both teams eyes on the problem can be worthwhile. |
Beta Was this translation helpful? Give feedback.
-
Tried this scenario for WPF. Got the same behavior. |
Beta Was this translation helpful? Give feedback.
-
Hm, it may be related reactiveui/Splat.DI.SourceGenerator#137 |
Beta Was this translation helpful? Give feedback.
-
Any solution found? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm writing Avalonia desktop app and I have VM that looks like:
public class SampleViewModel<T> : ReactiveObject, IRoutableViewModel, ISampleViewModel {...}
interface ISampleViewModel is not generic:
also I have view for
ISampleViewModel
:public partial class SampleView : ReactiveUserControl<ISampleViewModel>
in
app.axaml.cs
I register View for VM class:Locator.CurrentMutable.Register<IViewFor<ISampleViewModel>>(() => new SampleView());
Then I try to navigate to it from my MainViewModel:
But I don't see my view inside
RoutedViewHost
inMainWindow
(there is onlyDefaultContent
there).If I remove generic part from VM class
SampleViewModel
then navigation works as expected.Is it possible to use generic view models for navigation somehow?
Beta Was this translation helpful? Give feedback.
All reactions