mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
18 lines
508 B
C#
18 lines
508 B
C#
using System;
|
|
using System.Reactive.Disposables;
|
|
using Avalonia.ReactiveUI;
|
|
using ReactiveUI;
|
|
|
|
namespace Artemis.UI.Screens.Workshop.Plugins;
|
|
|
|
public partial class PluginDetailsView : ReactiveUserControl<PluginDetailsViewModel>
|
|
{
|
|
public PluginDetailsView()
|
|
{
|
|
InitializeComponent();
|
|
this.WhenActivated(d => ViewModel.WhenAnyValue(vm => vm.Screen)
|
|
.WhereNotNull()
|
|
.Subscribe(screen => RouterFrame.NavigateFromObject(screen))
|
|
.DisposeWith(d));
|
|
}
|
|
} |