wabbajack/Wabbajack.App.Wpf/Messages/NavigateTo.cs
2022-03-13 16:47:30 -06:00

21 lines
347 B
C#

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));
}
}