wabbajack/Wabbajack.App.Wpf/Messages/NavigateTo.cs

21 lines
347 B
C#
Raw Normal View History

using ReactiveUI;
using Wabbajack;
namespace Wabbajack.Messages;
public class NavigateTo
{
public ViewModel ViewModel { get; }
private NavigateTo(ViewModel vm)
{
ViewModel = vm;
}
public static void Send<T>(T vm)
where T : ViewModel
{
MessageBus.Current.SendMessage(new NavigateTo(vm));
}
}