Switch out dotnet ctk messenger for source gen Meditor
This commit is contained in:
@@ -1,24 +1,31 @@
|
||||
using Avalonia.Controls.Primitives;
|
||||
using CommunityToolkit.Mvvm.Messaging.Messages;
|
||||
|
||||
namespace Toolkit.Foundation.Avalonia
|
||||
{
|
||||
public class NavigationRouteRequest<TTarget> : AsyncRequestMessage<bool> where TTarget : TemplatedControl
|
||||
{
|
||||
public NavigationRouteRequest(TTarget target, object? data, object? template, IDictionary<string, object>? parameters = null)
|
||||
{
|
||||
Target = target;
|
||||
Data = data;
|
||||
Template = template;
|
||||
Parameters = parameters;
|
||||
}
|
||||
//public class NavigationRouteRequest<TTarget> : AsyncRequestMessage<bool> where TTarget : TemplatedControl
|
||||
//{
|
||||
// public NavigationRouteRequest(TTarget target, object? content, object? template, IDictionary<string, object>? parameters = null)
|
||||
// {
|
||||
// Target = target;
|
||||
// Content = content;
|
||||
// Template = template;
|
||||
// Parameters = parameters;
|
||||
// }
|
||||
|
||||
public TTarget Target { get; }
|
||||
// public TTarget Target { get; }
|
||||
|
||||
public object? Data { get; }
|
||||
// public object? Content { get; }
|
||||
|
||||
public object? Template { get; }
|
||||
// public object? Template { get; }
|
||||
|
||||
public IDictionary<string, object>? Parameters { get; }
|
||||
}
|
||||
// public IDictionary<string, object>? Parameters { get; }
|
||||
//}
|
||||
|
||||
//public class NavigationRouteRequest
|
||||
//{
|
||||
// public static NavigationRouteRequest<TTarget> Create<TTarget>(TTarget target, object? content, object? template, IDictionary<string, object>? parameters = null) where TTarget : TemplatedControl
|
||||
// {
|
||||
// return new NavigationRouteRequest<TTarget>(target, content, template, parameters);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user